Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
gauge.messages.Spec Maven / Gradle / Ivy
// 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);
}
/**
*
*/ Execution Status
*
*
* Protobuf enum {@code gauge.messages.ExecutionStatus}
*/
public enum ExecutionStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOTEXECUTED = 0;
*/
NOTEXECUTED(0),
/**
* PASSED = 1;
*/
PASSED(1),
/**
* FAILED = 2;
*/
FAILED(2),
/**
* SKIPPED = 3;
*/
SKIPPED(3),
UNRECOGNIZED(-1),
;
/**
* NOTEXECUTED = 0;
*/
public static final int NOTEXECUTED_VALUE = 0;
/**
* PASSED = 1;
*/
public static final int PASSED_VALUE = 1;
/**
* FAILED = 2;
*/
public static final int FAILED_VALUE = 2;
/**
* SKIPPED = 3;
*/
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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ExecutionStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
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 {
/**
*
*/ Heading describing the Specification
*
*
* string specHeading = 1;
*/
java.lang.String getSpecHeading();
/**
*
*/ Heading describing the Specification
*
*
* string specHeading = 1;
*/
com.google.protobuf.ByteString
getSpecHeadingBytes();
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
java.util.List
getItemsList();
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
gauge.messages.Spec.ProtoItem getItems(int index);
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
int getItemsCount();
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
java.util.List
getItemsOrBuilderList();
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
gauge.messages.Spec.ProtoItemOrBuilder getItemsOrBuilder(
int index);
/**
*
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
*
*
* bool isTableDriven = 3;
*/
boolean getIsTableDriven();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
java.util.List
getPreHookFailuresList();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
gauge.messages.Spec.ProtoHookFailure getPreHookFailures(int index);
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
int getPreHookFailuresCount();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
java.util.List
getPreHookFailuresOrBuilderList();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailuresOrBuilder(
int index);
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
java.util.List
getPostHookFailuresList();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
gauge.messages.Spec.ProtoHookFailure getPostHookFailures(int index);
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
int getPostHookFailuresCount();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
java.util.List
getPostHookFailuresOrBuilderList();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailuresOrBuilder(
int index);
/**
*
*/ Contains the filename for that holds this specification.
*
*
* string fileName = 6;
*/
java.lang.String getFileName();
/**
*
*/ Contains the filename for that holds this specification.
*
*
* string fileName = 6;
*/
com.google.protobuf.ByteString
getFileNameBytes();
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
java.util.List
getTagsList();
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
int getTagsCount();
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
java.lang.String getTags(int index);
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
com.google.protobuf.ByteString
getTagsBytes(int index);
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
java.util.List
getPreHookMessagesList();
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
int getPreHookMessagesCount();
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
java.lang.String getPreHookMessages(int index);
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
com.google.protobuf.ByteString
getPreHookMessagesBytes(int index);
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
java.util.List
getPostHookMessagesList();
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
int getPostHookMessagesCount();
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
java.lang.String getPostHookMessages(int index);
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
com.google.protobuf.ByteString
getPostHookMessagesBytes(int index);
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getPreHookMessageList();
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated int getPreHookMessageCount();
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated java.lang.String getPreHookMessage(int index);
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getPreHookMessageBytes(int index);
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getPostHookMessageList();
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated int getPostHookMessageCount();
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated java.lang.String getPostHookMessage(int index);
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getPostHookMessageBytes(int index);
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated java.util.List getPreHookScreenshotsList();
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated int getPreHookScreenshotsCount();
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString getPreHookScreenshots(int index);
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated java.util.List getPostHookScreenshotsList();
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated int getPostHookScreenshotsCount();
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString getPostHookScreenshots(int index);
/**
*
*/ meta field to indicate the number of items in the list
* / used when items are sent as individual chunk
*
*
* int64 itemCount = 14;
*/
long getItemCount();
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
java.util.List
getPreHookScreenshotFilesList();
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
int getPreHookScreenshotFilesCount();
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
java.lang.String getPreHookScreenshotFiles(int index);
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index);
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
java.util.List
getPostHookScreenshotFilesList();
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
int getPostHookScreenshotFilesCount();
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
java.lang.String getPostHookScreenshotFiles(int index);
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index);
}
/**
*
*/ A proto object representing a Specification
* / A specification can contain Scenarios or Steps, besides Comments
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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;
preHookFailures_ = java.util.Collections.emptyList();
postHookFailures_ = java.util.Collections.emptyList();
fileName_ = "";
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
preHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
postHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
preHookScreenshots_ = java.util.Collections.emptyList();
postHookScreenshots_ = java.util.Collections.emptyList();
itemCount_ = 0L;
preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(gauge.messages.Spec.ProtoItem.parser(), extensionRegistry));
break;
}
case 24: {
isTableDriven_ = input.readBool();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
preHookFailures_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
preHookFailures_.add(
input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
postHookFailures_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
postHookFailures_.add(
input.readMessage(gauge.messages.Spec.ProtoHookFailure.parser(), extensionRegistry));
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;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
preHookMessages_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000080;
}
preHookMessages_.add(s);
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
postHookMessages_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000100;
}
postHookMessages_.add(s);
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
preHookMessage_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
preHookMessage_.add(s);
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
postHookMessage_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000400;
}
postHookMessage_.add(s);
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
preHookScreenshots_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
preHookScreenshots_.add(input.readBytes());
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
postHookScreenshots_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
postHookScreenshots_.add(input.readBytes());
break;
}
case 112: {
itemCount_ = input.readInt64();
break;
}
case 122: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
preHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00004000;
}
preHookScreenshotFiles_.add(s);
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
postHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00008000;
}
postHookScreenshotFiles_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_ & 0x00000008) == 0x00000008)) {
preHookFailures_ = java.util.Collections.unmodifiableList(preHookFailures_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
postHookFailures_ = java.util.Collections.unmodifiableList(postHookFailures_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = tags_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
preHookMessages_ = preHookMessages_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
postHookMessages_ = postHookMessages_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
preHookMessage_ = preHookMessage_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
postHookMessage_ = postHookMessage_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
preHookScreenshots_ = java.util.Collections.unmodifiableList(preHookScreenshots_);
}
if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
postHookScreenshots_ = java.util.Collections.unmodifiableList(postHookScreenshots_);
}
if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
preHookScreenshotFiles_ = preHookScreenshotFiles_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
postHookScreenshotFiles_ = postHookScreenshotFiles_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpec_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ Heading describing the Specification
*
*
* string specHeading = 1;
*/
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;
}
}
/**
*
*/ Heading describing the Specification
*
*
* string specHeading = 1;
*/
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 items_;
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public java.util.List getItemsList() {
return items_;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public java.util.List
getItemsOrBuilderList() {
return items_;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public int getItemsCount() {
return items_.size();
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public gauge.messages.Spec.ProtoItem getItems(int index) {
return items_.get(index);
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public gauge.messages.Spec.ProtoItemOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
public static final int ISTABLEDRIVEN_FIELD_NUMBER = 3;
private boolean isTableDriven_;
/**
*
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
*
*
* bool isTableDriven = 3;
*/
public boolean getIsTableDriven() {
return isTableDriven_;
}
public static final int PREHOOKFAILURES_FIELD_NUMBER = 4;
private java.util.List preHookFailures_;
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public java.util.List getPreHookFailuresList() {
return preHookFailures_;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public java.util.List
getPreHookFailuresOrBuilderList() {
return preHookFailures_;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public int getPreHookFailuresCount() {
return preHookFailures_.size();
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailures(int index) {
return preHookFailures_.get(index);
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailuresOrBuilder(
int index) {
return preHookFailures_.get(index);
}
public static final int POSTHOOKFAILURES_FIELD_NUMBER = 5;
private java.util.List postHookFailures_;
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public java.util.List getPostHookFailuresList() {
return postHookFailures_;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public java.util.List
getPostHookFailuresOrBuilderList() {
return postHookFailures_;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public int getPostHookFailuresCount() {
return postHookFailures_.size();
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailures(int index) {
return postHookFailures_.get(index);
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailuresOrBuilder(
int index) {
return postHookFailures_.get(index);
}
public static final int FILENAME_FIELD_NUMBER = 6;
private volatile java.lang.Object fileName_;
/**
*
*/ Contains the filename for that holds this specification.
*
*
* string fileName = 6;
*/
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;
}
}
/**
*
*/ Contains the filename for that holds this specification.
*
*
* string fileName = 6;
*/
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_;
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int PREHOOKMESSAGES_FIELD_NUMBER = 8;
private com.google.protobuf.LazyStringList preHookMessages_;
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public java.lang.String getPreHookMessages(int index) {
return preHookMessages_.get(index);
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
public static final int POSTHOOKMESSAGES_FIELD_NUMBER = 9;
private com.google.protobuf.LazyStringList postHookMessages_;
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public java.lang.String getPostHookMessages(int index) {
return postHookMessages_.get(index);
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
public static final int PREHOOKMESSAGE_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList preHookMessage_;
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPreHookMessageList() {
return preHookMessage_;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookMessageCount() {
return preHookMessage_.size();
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getPreHookMessage(int index) {
return preHookMessage_.get(index);
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPreHookMessageBytes(int index) {
return preHookMessage_.getByteString(index);
}
public static final int POSTHOOKMESSAGE_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList postHookMessage_;
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPostHookMessageList() {
return postHookMessage_;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookMessageCount() {
return postHookMessage_.size();
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getPostHookMessage(int index) {
return postHookMessage_.get(index);
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPostHookMessageBytes(int index) {
return postHookMessage_.getByteString(index);
}
public static final int PREHOOKSCREENSHOTS_FIELD_NUMBER = 12;
private java.util.List preHookScreenshots_;
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPreHookScreenshotsList() {
return preHookScreenshots_;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookScreenshotsCount() {
return preHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
public static final int POSTHOOKSCREENSHOTS_FIELD_NUMBER = 13;
private java.util.List postHookScreenshots_;
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPostHookScreenshotsList() {
return postHookScreenshots_;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookScreenshotsCount() {
return postHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPostHookScreenshots(int index) {
return postHookScreenshots_.get(index);
}
public static final int ITEMCOUNT_FIELD_NUMBER = 14;
private long itemCount_;
/**
*
*/ meta field to indicate the number of items in the list
* / used when items are sent as individual chunk
*
*
* int64 itemCount = 14;
*/
public long getItemCount() {
return itemCount_;
}
public static final int PREHOOKSCREENSHOTFILES_FIELD_NUMBER = 15;
private com.google.protobuf.LazyStringList preHookScreenshotFiles_;
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public java.lang.String getPreHookScreenshotFiles(int index) {
return preHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
public static final int POSTHOOKSCREENSHOTFILES_FIELD_NUMBER = 16;
private com.google.protobuf.LazyStringList postHookScreenshotFiles_;
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public java.lang.String getPostHookScreenshotFiles(int index) {
return postHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index) {
return postHookScreenshotFiles_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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_);
}
for (int i = 0; i < preHookFailures_.size(); i++) {
output.writeMessage(4, preHookFailures_.get(i));
}
for (int i = 0; i < postHookFailures_.size(); i++) {
output.writeMessage(5, postHookFailures_.get(i));
}
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));
}
for (int i = 0; i < preHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, preHookMessages_.getRaw(i));
}
for (int i = 0; i < postHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, postHookMessages_.getRaw(i));
}
for (int i = 0; i < preHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, preHookMessage_.getRaw(i));
}
for (int i = 0; i < postHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, postHookMessage_.getRaw(i));
}
for (int i = 0; i < preHookScreenshots_.size(); i++) {
output.writeBytes(12, preHookScreenshots_.get(i));
}
for (int i = 0; i < postHookScreenshots_.size(); i++) {
output.writeBytes(13, postHookScreenshots_.get(i));
}
if (itemCount_ != 0L) {
output.writeInt64(14, itemCount_);
}
for (int i = 0; i < preHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, preHookScreenshotFiles_.getRaw(i));
}
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, postHookScreenshotFiles_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
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_);
}
for (int i = 0; i < preHookFailures_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, preHookFailures_.get(i));
}
for (int i = 0; i < postHookFailures_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, postHookFailures_.get(i));
}
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();
}
{
int dataSize = 0;
for (int i = 0; i < preHookMessages_.size(); i++) {
dataSize += computeStringSizeNoTag(preHookMessages_.getRaw(i));
}
size += dataSize;
size += 1 * getPreHookMessagesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookMessages_.size(); i++) {
dataSize += computeStringSizeNoTag(postHookMessages_.getRaw(i));
}
size += dataSize;
size += 1 * getPostHookMessagesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < preHookMessage_.size(); i++) {
dataSize += computeStringSizeNoTag(preHookMessage_.getRaw(i));
}
size += dataSize;
size += 1 * getPreHookMessageList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookMessage_.size(); i++) {
dataSize += computeStringSizeNoTag(postHookMessage_.getRaw(i));
}
size += dataSize;
size += 1 * getPostHookMessageList().size();
}
{
int dataSize = 0;
for (int i = 0; i < preHookScreenshots_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(preHookScreenshots_.get(i));
}
size += dataSize;
size += 1 * getPreHookScreenshotsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookScreenshots_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(postHookScreenshots_.get(i));
}
size += dataSize;
size += 1 * getPostHookScreenshotsList().size();
}
if (itemCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(14, itemCount_);
}
{
int dataSize = 0;
for (int i = 0; i < preHookScreenshotFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(preHookScreenshotFiles_.getRaw(i));
}
size += dataSize;
size += 1 * getPreHookScreenshotFilesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(postHookScreenshotFiles_.getRaw(i));
}
size += dataSize;
size += 2 * getPostHookScreenshotFilesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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 && getPreHookFailuresList()
.equals(other.getPreHookFailuresList());
result = result && getPostHookFailuresList()
.equals(other.getPostHookFailuresList());
result = result && getFileName()
.equals(other.getFileName());
result = result && getTagsList()
.equals(other.getTagsList());
result = result && getPreHookMessagesList()
.equals(other.getPreHookMessagesList());
result = result && getPostHookMessagesList()
.equals(other.getPostHookMessagesList());
result = result && getPreHookMessageList()
.equals(other.getPreHookMessageList());
result = result && getPostHookMessageList()
.equals(other.getPostHookMessageList());
result = result && getPreHookScreenshotsList()
.equals(other.getPreHookScreenshotsList());
result = result && getPostHookScreenshotsList()
.equals(other.getPostHookScreenshotsList());
result = result && (getItemCount()
== other.getItemCount());
result = result && getPreHookScreenshotFilesList()
.equals(other.getPreHookScreenshotFilesList());
result = result && getPostHookScreenshotFilesList()
.equals(other.getPostHookScreenshotFilesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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 (getPreHookFailuresCount() > 0) {
hash = (37 * hash) + PREHOOKFAILURES_FIELD_NUMBER;
hash = (53 * hash) + getPreHookFailuresList().hashCode();
}
if (getPostHookFailuresCount() > 0) {
hash = (37 * hash) + POSTHOOKFAILURES_FIELD_NUMBER;
hash = (53 * hash) + getPostHookFailuresList().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();
}
if (getPreHookMessagesCount() > 0) {
hash = (37 * hash) + PREHOOKMESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getPreHookMessagesList().hashCode();
}
if (getPostHookMessagesCount() > 0) {
hash = (37 * hash) + POSTHOOKMESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getPostHookMessagesList().hashCode();
}
if (getPreHookMessageCount() > 0) {
hash = (37 * hash) + PREHOOKMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getPreHookMessageList().hashCode();
}
if (getPostHookMessageCount() > 0) {
hash = (37 * hash) + POSTHOOKMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getPostHookMessageList().hashCode();
}
if (getPreHookScreenshotsCount() > 0) {
hash = (37 * hash) + PREHOOKSCREENSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getPreHookScreenshotsList().hashCode();
}
if (getPostHookScreenshotsCount() > 0) {
hash = (37 * hash) + POSTHOOKSCREENSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getPostHookScreenshotsList().hashCode();
}
hash = (37 * hash) + ITEMCOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getItemCount());
if (getPreHookScreenshotFilesCount() > 0) {
hash = (37 * hash) + PREHOOKSCREENSHOTFILES_FIELD_NUMBER;
hash = (53 * hash) + getPreHookScreenshotFilesList().hashCode();
}
if (getPostHookScreenshotFilesCount() > 0) {
hash = (37 * hash) + POSTHOOKSCREENSHOTFILES_FIELD_NUMBER;
hash = (53 * hash) + getPostHookScreenshotFilesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing a Specification
* / A specification can contain Scenarios or Steps, besides Comments
*
*
* Protobuf type {@code gauge.messages.ProtoSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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();
getPreHookFailuresFieldBuilder();
getPostHookFailuresFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
specHeading_ = "";
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
isTableDriven_ = false;
if (preHookFailuresBuilder_ == null) {
preHookFailures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
preHookFailuresBuilder_.clear();
}
if (postHookFailuresBuilder_ == null) {
postHookFailures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
postHookFailuresBuilder_.clear();
}
fileName_ = "";
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000080);
postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
preHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
postHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
preHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
postHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
itemCount_ = 0L;
preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSpec_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoSpec getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoSpec.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoSpec build() {
gauge.messages.Spec.ProtoSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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 (preHookFailuresBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
preHookFailures_ = java.util.Collections.unmodifiableList(preHookFailures_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.preHookFailures_ = preHookFailures_;
} else {
result.preHookFailures_ = preHookFailuresBuilder_.build();
}
if (postHookFailuresBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
postHookFailures_ = java.util.Collections.unmodifiableList(postHookFailures_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.postHookFailures_ = postHookFailures_;
} else {
result.postHookFailures_ = postHookFailuresBuilder_.build();
}
result.fileName_ = fileName_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.tags_ = tags_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
preHookMessages_ = preHookMessages_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000080);
}
result.preHookMessages_ = preHookMessages_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
postHookMessages_ = postHookMessages_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000100);
}
result.postHookMessages_ = postHookMessages_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
preHookMessage_ = preHookMessage_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000200);
}
result.preHookMessage_ = preHookMessage_;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
postHookMessage_ = postHookMessage_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000400);
}
result.postHookMessage_ = postHookMessage_;
if (((bitField0_ & 0x00000800) == 0x00000800)) {
preHookScreenshots_ = java.util.Collections.unmodifiableList(preHookScreenshots_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.preHookScreenshots_ = preHookScreenshots_;
if (((bitField0_ & 0x00001000) == 0x00001000)) {
postHookScreenshots_ = java.util.Collections.unmodifiableList(postHookScreenshots_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.postHookScreenshots_ = postHookScreenshots_;
result.itemCount_ = itemCount_;
if (((bitField0_ & 0x00004000) == 0x00004000)) {
preHookScreenshotFiles_ = preHookScreenshotFiles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00004000);
}
result.preHookScreenshotFiles_ = preHookScreenshotFiles_;
if (((bitField0_ & 0x00008000) == 0x00008000)) {
postHookScreenshotFiles_ = postHookScreenshotFiles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00008000);
}
result.postHookScreenshotFiles_ = postHookScreenshotFiles_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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 (preHookFailuresBuilder_ == null) {
if (!other.preHookFailures_.isEmpty()) {
if (preHookFailures_.isEmpty()) {
preHookFailures_ = other.preHookFailures_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensurePreHookFailuresIsMutable();
preHookFailures_.addAll(other.preHookFailures_);
}
onChanged();
}
} else {
if (!other.preHookFailures_.isEmpty()) {
if (preHookFailuresBuilder_.isEmpty()) {
preHookFailuresBuilder_.dispose();
preHookFailuresBuilder_ = null;
preHookFailures_ = other.preHookFailures_;
bitField0_ = (bitField0_ & ~0x00000008);
preHookFailuresBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPreHookFailuresFieldBuilder() : null;
} else {
preHookFailuresBuilder_.addAllMessages(other.preHookFailures_);
}
}
}
if (postHookFailuresBuilder_ == null) {
if (!other.postHookFailures_.isEmpty()) {
if (postHookFailures_.isEmpty()) {
postHookFailures_ = other.postHookFailures_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensurePostHookFailuresIsMutable();
postHookFailures_.addAll(other.postHookFailures_);
}
onChanged();
}
} else {
if (!other.postHookFailures_.isEmpty()) {
if (postHookFailuresBuilder_.isEmpty()) {
postHookFailuresBuilder_.dispose();
postHookFailuresBuilder_ = null;
postHookFailures_ = other.postHookFailures_;
bitField0_ = (bitField0_ & ~0x00000010);
postHookFailuresBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPostHookFailuresFieldBuilder() : null;
} else {
postHookFailuresBuilder_.addAllMessages(other.postHookFailures_);
}
}
}
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();
}
if (!other.preHookMessages_.isEmpty()) {
if (preHookMessages_.isEmpty()) {
preHookMessages_ = other.preHookMessages_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensurePreHookMessagesIsMutable();
preHookMessages_.addAll(other.preHookMessages_);
}
onChanged();
}
if (!other.postHookMessages_.isEmpty()) {
if (postHookMessages_.isEmpty()) {
postHookMessages_ = other.postHookMessages_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensurePostHookMessagesIsMutable();
postHookMessages_.addAll(other.postHookMessages_);
}
onChanged();
}
if (!other.preHookMessage_.isEmpty()) {
if (preHookMessage_.isEmpty()) {
preHookMessage_ = other.preHookMessage_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensurePreHookMessageIsMutable();
preHookMessage_.addAll(other.preHookMessage_);
}
onChanged();
}
if (!other.postHookMessage_.isEmpty()) {
if (postHookMessage_.isEmpty()) {
postHookMessage_ = other.postHookMessage_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensurePostHookMessageIsMutable();
postHookMessage_.addAll(other.postHookMessage_);
}
onChanged();
}
if (!other.preHookScreenshots_.isEmpty()) {
if (preHookScreenshots_.isEmpty()) {
preHookScreenshots_ = other.preHookScreenshots_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.addAll(other.preHookScreenshots_);
}
onChanged();
}
if (!other.postHookScreenshots_.isEmpty()) {
if (postHookScreenshots_.isEmpty()) {
postHookScreenshots_ = other.postHookScreenshots_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.addAll(other.postHookScreenshots_);
}
onChanged();
}
if (other.getItemCount() != 0L) {
setItemCount(other.getItemCount());
}
if (!other.preHookScreenshotFiles_.isEmpty()) {
if (preHookScreenshotFiles_.isEmpty()) {
preHookScreenshotFiles_ = other.preHookScreenshotFiles_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.addAll(other.preHookScreenshotFiles_);
}
onChanged();
}
if (!other.postHookScreenshotFiles_.isEmpty()) {
if (postHookScreenshotFiles_.isEmpty()) {
postHookScreenshotFiles_ = other.postHookScreenshotFiles_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.addAll(other.postHookScreenshotFiles_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_ = "";
/**
*
*/ Heading describing the Specification
*
*
* string specHeading = 1;
*/
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;
}
}
/**
*
*/ Heading describing the Specification
*
*
* string specHeading = 1;
*/
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;
}
}
/**
*
*/ Heading describing the Specification
*
*
* string specHeading = 1;
*/
public Builder setSpecHeading(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
specHeading_ = value;
onChanged();
return this;
}
/**
*
*/ Heading describing the Specification
*
*
* string specHeading = 1;
*/
public Builder clearSpecHeading() {
specHeading_ = getDefaultInstance().getSpecHeading();
onChanged();
return this;
}
/**
*
*/ Heading describing the Specification
*
*
* string specHeading = 1;
*/
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 items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> itemsBuilder_;
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public gauge.messages.Spec.ProtoItem getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
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;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
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;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
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;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
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;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
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;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
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;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public Builder addAllItems(
java.lang.Iterable values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public gauge.messages.Spec.ProtoItem.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public gauge.messages.Spec.ProtoItemOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public java.util.List
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public gauge.messages.Spec.ProtoItem.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public gauge.messages.Spec.ProtoItem.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ A collection of items that come under this step
*
*
* repeated .gauge.messages.ProtoItem items = 2;
*/
public java.util.List
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_ ;
/**
*
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
*
*
* bool isTableDriven = 3;
*/
public boolean getIsTableDriven() {
return isTableDriven_;
}
/**
*
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
*
*
* bool isTableDriven = 3;
*/
public Builder setIsTableDriven(boolean value) {
isTableDriven_ = value;
onChanged();
return this;
}
/**
*
*/ Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
*
*
* bool isTableDriven = 3;
*/
public Builder clearIsTableDriven() {
isTableDriven_ = false;
onChanged();
return this;
}
private java.util.List preHookFailures_ =
java.util.Collections.emptyList();
private void ensurePreHookFailuresIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
preHookFailures_ = new java.util.ArrayList(preHookFailures_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> preHookFailuresBuilder_;
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public java.util.List getPreHookFailuresList() {
if (preHookFailuresBuilder_ == null) {
return java.util.Collections.unmodifiableList(preHookFailures_);
} else {
return preHookFailuresBuilder_.getMessageList();
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public int getPreHookFailuresCount() {
if (preHookFailuresBuilder_ == null) {
return preHookFailures_.size();
} else {
return preHookFailuresBuilder_.getCount();
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailures(int index) {
if (preHookFailuresBuilder_ == null) {
return preHookFailures_.get(index);
} else {
return preHookFailuresBuilder_.getMessage(index);
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public Builder setPreHookFailures(
int index, gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookFailuresIsMutable();
preHookFailures_.set(index, value);
onChanged();
} else {
preHookFailuresBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public Builder setPreHookFailures(
int index, gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (preHookFailuresBuilder_ == null) {
ensurePreHookFailuresIsMutable();
preHookFailures_.set(index, builderForValue.build());
onChanged();
} else {
preHookFailuresBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public Builder addPreHookFailures(gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookFailuresIsMutable();
preHookFailures_.add(value);
onChanged();
} else {
preHookFailuresBuilder_.addMessage(value);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public Builder addPreHookFailures(
int index, gauge.messages.Spec.ProtoHookFailure value) {
if (preHookFailuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookFailuresIsMutable();
preHookFailures_.add(index, value);
onChanged();
} else {
preHookFailuresBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public Builder addPreHookFailures(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (preHookFailuresBuilder_ == null) {
ensurePreHookFailuresIsMutable();
preHookFailures_.add(builderForValue.build());
onChanged();
} else {
preHookFailuresBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public Builder addPreHookFailures(
int index, gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (preHookFailuresBuilder_ == null) {
ensurePreHookFailuresIsMutable();
preHookFailures_.add(index, builderForValue.build());
onChanged();
} else {
preHookFailuresBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public Builder addAllPreHookFailures(
java.lang.Iterable values) {
if (preHookFailuresBuilder_ == null) {
ensurePreHookFailuresIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookFailures_);
onChanged();
} else {
preHookFailuresBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public Builder clearPreHookFailures() {
if (preHookFailuresBuilder_ == null) {
preHookFailures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
preHookFailuresBuilder_.clear();
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public Builder removePreHookFailures(int index) {
if (preHookFailuresBuilder_ == null) {
ensurePreHookFailuresIsMutable();
preHookFailures_.remove(index);
onChanged();
} else {
preHookFailuresBuilder_.remove(index);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPreHookFailuresBuilder(
int index) {
return getPreHookFailuresFieldBuilder().getBuilder(index);
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailuresOrBuilder(
int index) {
if (preHookFailuresBuilder_ == null) {
return preHookFailures_.get(index); } else {
return preHookFailuresBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public java.util.List
getPreHookFailuresOrBuilderList() {
if (preHookFailuresBuilder_ != null) {
return preHookFailuresBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(preHookFailures_);
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder addPreHookFailuresBuilder() {
return getPreHookFailuresFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance());
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder addPreHookFailuresBuilder(
int index) {
return getPreHookFailuresFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoHookFailure.getDefaultInstance());
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
*/
public java.util.List
getPreHookFailuresBuilderList() {
return getPreHookFailuresFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPreHookFailuresFieldBuilder() {
if (preHookFailuresBuilder_ == null) {
preHookFailuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
preHookFailures_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
preHookFailures_ = null;
}
return preHookFailuresBuilder_;
}
private java.util.List postHookFailures_ =
java.util.Collections.emptyList();
private void ensurePostHookFailuresIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
postHookFailures_ = new java.util.ArrayList(postHookFailures_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder> postHookFailuresBuilder_;
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public java.util.List getPostHookFailuresList() {
if (postHookFailuresBuilder_ == null) {
return java.util.Collections.unmodifiableList(postHookFailures_);
} else {
return postHookFailuresBuilder_.getMessageList();
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public int getPostHookFailuresCount() {
if (postHookFailuresBuilder_ == null) {
return postHookFailures_.size();
} else {
return postHookFailuresBuilder_.getCount();
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailures(int index) {
if (postHookFailuresBuilder_ == null) {
return postHookFailures_.get(index);
} else {
return postHookFailuresBuilder_.getMessage(index);
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public Builder setPostHookFailures(
int index, gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookFailuresIsMutable();
postHookFailures_.set(index, value);
onChanged();
} else {
postHookFailuresBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public Builder setPostHookFailures(
int index, gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (postHookFailuresBuilder_ == null) {
ensurePostHookFailuresIsMutable();
postHookFailures_.set(index, builderForValue.build());
onChanged();
} else {
postHookFailuresBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public Builder addPostHookFailures(gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookFailuresIsMutable();
postHookFailures_.add(value);
onChanged();
} else {
postHookFailuresBuilder_.addMessage(value);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public Builder addPostHookFailures(
int index, gauge.messages.Spec.ProtoHookFailure value) {
if (postHookFailuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookFailuresIsMutable();
postHookFailures_.add(index, value);
onChanged();
} else {
postHookFailuresBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public Builder addPostHookFailures(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (postHookFailuresBuilder_ == null) {
ensurePostHookFailuresIsMutable();
postHookFailures_.add(builderForValue.build());
onChanged();
} else {
postHookFailuresBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public Builder addPostHookFailures(
int index, gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (postHookFailuresBuilder_ == null) {
ensurePostHookFailuresIsMutable();
postHookFailures_.add(index, builderForValue.build());
onChanged();
} else {
postHookFailuresBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public Builder addAllPostHookFailures(
java.lang.Iterable values) {
if (postHookFailuresBuilder_ == null) {
ensurePostHookFailuresIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookFailures_);
onChanged();
} else {
postHookFailuresBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public Builder clearPostHookFailures() {
if (postHookFailuresBuilder_ == null) {
postHookFailures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
postHookFailuresBuilder_.clear();
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public Builder removePostHookFailures(int index) {
if (postHookFailuresBuilder_ == null) {
ensurePostHookFailuresIsMutable();
postHookFailures_.remove(index);
onChanged();
} else {
postHookFailuresBuilder_.remove(index);
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPostHookFailuresBuilder(
int index) {
return getPostHookFailuresFieldBuilder().getBuilder(index);
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailuresOrBuilder(
int index) {
if (postHookFailuresBuilder_ == null) {
return postHookFailures_.get(index); } else {
return postHookFailuresBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public java.util.List
getPostHookFailuresOrBuilderList() {
if (postHookFailuresBuilder_ != null) {
return postHookFailuresBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(postHookFailures_);
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder addPostHookFailuresBuilder() {
return getPostHookFailuresFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance());
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder addPostHookFailuresBuilder(
int index) {
return getPostHookFailuresFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoHookFailure.getDefaultInstance());
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
*
*
* repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
*/
public java.util.List
getPostHookFailuresBuilderList() {
return getPostHookFailuresFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>
getPostHookFailuresFieldBuilder() {
if (postHookFailuresBuilder_ == null) {
postHookFailuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoHookFailure, gauge.messages.Spec.ProtoHookFailure.Builder, gauge.messages.Spec.ProtoHookFailureOrBuilder>(
postHookFailures_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
postHookFailures_ = null;
}
return postHookFailuresBuilder_;
}
private java.lang.Object fileName_ = "";
/**
*
*/ Contains the filename for that holds this specification.
*
*
* string fileName = 6;
*/
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;
}
}
/**
*
*/ Contains the filename for that holds this specification.
*
*
* string fileName = 6;
*/
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;
}
}
/**
*
*/ Contains the filename for that holds this specification.
*
*
* string fileName = 6;
*/
public Builder setFileName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fileName_ = value;
onChanged();
return this;
}
/**
*
*/ Contains the filename for that holds this specification.
*
*
* string fileName = 6;
*/
public Builder clearFileName() {
fileName_ = getDefaultInstance().getFileName();
onChanged();
return this;
}
/**
*
*/ Contains the filename for that holds this specification.
*
*
* string fileName = 6;
*/
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;
}
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePreHookMessagesIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
preHookMessages_ = new com.google.protobuf.LazyStringArrayList(preHookMessages_);
bitField0_ |= 0x00000080;
}
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_.getUnmodifiableView();
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public java.lang.String getPreHookMessages(int index) {
return preHookMessages_.get(index);
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public Builder setPreHookMessages(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessagesIsMutable();
preHookMessages_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public Builder addPreHookMessages(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public Builder addAllPreHookMessages(
java.lang.Iterable values) {
ensurePreHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessages_);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public Builder clearPreHookMessages() {
preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
*/
public Builder addPreHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePostHookMessagesIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
postHookMessages_ = new com.google.protobuf.LazyStringArrayList(postHookMessages_);
bitField0_ |= 0x00000100;
}
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_.getUnmodifiableView();
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public java.lang.String getPostHookMessages(int index) {
return postHookMessages_.get(index);
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public Builder setPostHookMessages(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessagesIsMutable();
postHookMessages_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public Builder addPostHookMessages(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public Builder addAllPostHookMessages(
java.lang.Iterable values) {
ensurePostHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessages_);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public Builder clearPostHookMessages() {
postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
*/
public Builder addPostHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList preHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePreHookMessageIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
preHookMessage_ = new com.google.protobuf.LazyStringArrayList(preHookMessage_);
bitField0_ |= 0x00000200;
}
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPreHookMessageList() {
return preHookMessage_.getUnmodifiableView();
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookMessageCount() {
return preHookMessage_.size();
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getPreHookMessage(int index) {
return preHookMessage_.get(index);
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPreHookMessageBytes(int index) {
return preHookMessage_.getByteString(index);
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPreHookMessage(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessageIsMutable();
preHookMessage_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPreHookMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessageIsMutable();
preHookMessage_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPreHookMessage(
java.lang.Iterable values) {
ensurePreHookMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessage_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPreHookMessage() {
preHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPreHookMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreHookMessageIsMutable();
preHookMessage_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList postHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePostHookMessageIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
postHookMessage_ = new com.google.protobuf.LazyStringArrayList(postHookMessage_);
bitField0_ |= 0x00000400;
}
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPostHookMessageList() {
return postHookMessage_.getUnmodifiableView();
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookMessageCount() {
return postHookMessage_.size();
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getPostHookMessage(int index) {
return postHookMessage_.get(index);
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPostHookMessageBytes(int index) {
return postHookMessage_.getByteString(index);
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPostHookMessage(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessageIsMutable();
postHookMessage_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPostHookMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessageIsMutable();
postHookMessage_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPostHookMessage(
java.lang.Iterable values) {
ensurePostHookMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessage_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPostHookMessage() {
postHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPostHookMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePostHookMessageIsMutable();
postHookMessage_.add(value);
onChanged();
return this;
}
private java.util.List preHookScreenshots_ = java.util.Collections.emptyList();
private void ensurePreHookScreenshotsIsMutable() {
if (!((bitField0_ & 0x00000800) == 0x00000800)) {
preHookScreenshots_ = new java.util.ArrayList(preHookScreenshots_);
bitField0_ |= 0x00000800;
}
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPreHookScreenshotsList() {
return java.util.Collections.unmodifiableList(preHookScreenshots_);
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookScreenshotsCount() {
return preHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPreHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPreHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPreHookScreenshots(
java.lang.Iterable values) {
ensurePreHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshots_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPreHookScreenshots() {
preHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
private java.util.List postHookScreenshots_ = java.util.Collections.emptyList();
private void ensurePostHookScreenshotsIsMutable() {
if (!((bitField0_ & 0x00001000) == 0x00001000)) {
postHookScreenshots_ = new java.util.ArrayList(postHookScreenshots_);
bitField0_ |= 0x00001000;
}
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPostHookScreenshotsList() {
return java.util.Collections.unmodifiableList(postHookScreenshots_);
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookScreenshotsCount() {
return postHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPostHookScreenshots(int index) {
return postHookScreenshots_.get(index);
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPostHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPostHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPostHookScreenshots(
java.lang.Iterable values) {
ensurePostHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshots_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPostHookScreenshots() {
postHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
private long itemCount_ ;
/**
*
*/ meta field to indicate the number of items in the list
* / used when items are sent as individual chunk
*
*
* int64 itemCount = 14;
*/
public long getItemCount() {
return itemCount_;
}
/**
*
*/ meta field to indicate the number of items in the list
* / used when items are sent as individual chunk
*
*
* int64 itemCount = 14;
*/
public Builder setItemCount(long value) {
itemCount_ = value;
onChanged();
return this;
}
/**
*
*/ meta field to indicate the number of items in the list
* / used when items are sent as individual chunk
*
*
* int64 itemCount = 14;
*/
public Builder clearItemCount() {
itemCount_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePreHookScreenshotFilesIsMutable() {
if (!((bitField0_ & 0x00004000) == 0x00004000)) {
preHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList(preHookScreenshotFiles_);
bitField0_ |= 0x00004000;
}
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_.getUnmodifiableView();
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public java.lang.String getPreHookScreenshotFiles(int index) {
return preHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public Builder setPreHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public Builder addPreHookScreenshotFiles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public Builder addAllPreHookScreenshotFiles(
java.lang.Iterable values) {
ensurePreHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshotFiles_);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public Builder clearPreHookScreenshotFiles() {
preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
*/
public Builder addPreHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePostHookScreenshotFilesIsMutable() {
if (!((bitField0_ & 0x00008000) == 0x00008000)) {
postHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList(postHookScreenshotFiles_);
bitField0_ |= 0x00008000;
}
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_.getUnmodifiableView();
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public java.lang.String getPostHookScreenshotFiles(int index) {
return postHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index) {
return postHookScreenshotFiles_.getByteString(index);
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public Builder setPostHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public Builder addPostHookScreenshotFiles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public Builder addAllPostHookScreenshotFiles(
java.lang.Iterable values) {
ensurePostHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshotFiles_);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public Builder clearPostHookScreenshotFiles() {
postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
*/
public Builder addPostHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
*/
int getItemTypeValue();
/**
*
*/ Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
*/
gauge.messages.Spec.ProtoItem.ItemType getItemType();
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
boolean hasStep();
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
gauge.messages.Spec.ProtoStep getStep();
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
gauge.messages.Spec.ProtoStepOrBuilder getStepOrBuilder();
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
boolean hasConcept();
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
gauge.messages.Spec.ProtoConcept getConcept();
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
gauge.messages.Spec.ProtoConceptOrBuilder getConceptOrBuilder();
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
boolean hasScenario();
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
gauge.messages.Spec.ProtoScenario getScenario();
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder();
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
boolean hasTableDrivenScenario();
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
gauge.messages.Spec.ProtoTableDrivenScenario getTableDrivenScenario();
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder getTableDrivenScenarioOrBuilder();
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
boolean hasComment();
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
gauge.messages.Spec.ProtoComment getComment();
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
gauge.messages.Spec.ProtoCommentOrBuilder getCommentOrBuilder();
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
boolean hasTable();
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
gauge.messages.Spec.ProtoTable getTable();
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder();
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
boolean hasTags();
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
gauge.messages.Spec.ProtoTags getTags();
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
gauge.messages.Spec.ProtoTagsOrBuilder getTagsOrBuilder();
/**
*
*/ Holds the Filename that the item belongs to
*
*
* string fileName = 9;
*/
java.lang.String getFileName();
/**
*
*/ Holds the Filename that the item belongs to
*
*
* string fileName = 9;
*/
com.google.protobuf.ByteString
getFileNameBytes();
}
/**
*
*/ Container for all valid Items under a Specification.
*
*
* 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 {
private static final long serialVersionUID = 0L;
// Use ProtoItem.newBuilder() to construct.
private ProtoItem(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ProtoItem() {
itemType_ = 0;
fileName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoItem(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
fileName_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoItem_descriptor;
}
@java.lang.Override
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);
}
/**
*
*/ Enumerates various item types that the proto item can contain. Valid types are: Step, Comment, Concept, Scenario, TableDrivenScenario, Table, Tags
*
*
* Protobuf enum {@code gauge.messages.ProtoItem.ItemType}
*/
public enum ItemType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Item is a Step
*
*
* Step = 0;
*/
Step(0),
/**
*
* Item is a Comment
*
*
* Comment = 1;
*/
Comment(1),
/**
*
* Item is a Concept
*
*
* Concept = 2;
*/
Concept(2),
/**
*
* Item is a Scenario
*
*
* Scenario = 3;
*/
Scenario(3),
/**
*
* Item is a TableDrivenScenario, a special case of Scenario, where there is a Context Step defining a table.
*
*
* TableDrivenScenario = 4;
*/
TableDrivenScenario(4),
/**
*
* Item is a Table
*
*
* Table = 5;
*/
Table(5),
/**
*
* Item is a Tag
*
*
* Tags = 6;
*/
Tags(6),
UNRECOGNIZED(-1),
;
/**
*
* Item is a Step
*
*
* Step = 0;
*/
public static final int Step_VALUE = 0;
/**
*
* Item is a Comment
*
*
* Comment = 1;
*/
public static final int Comment_VALUE = 1;
/**
*
* Item is a Concept
*
*
* Concept = 2;
*/
public static final int Concept_VALUE = 2;
/**
*
* Item is a Scenario
*
*
* Scenario = 3;
*/
public static final int Scenario_VALUE = 3;
/**
*
* Item is a TableDrivenScenario, a special case of Scenario, where there is a Context Step defining a table.
*
*
* TableDrivenScenario = 4;
*/
public static final int TableDrivenScenario_VALUE = 4;
/**
*
* Item is a Table
*
*
* Table = 5;
*/
public static final int Table_VALUE = 5;
/**
*
* Item is a Tag
*
*
* Tags = 6;
*/
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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ItemType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
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_;
/**
*
*/ Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
*/
public int getItemTypeValue() {
return itemType_;
}
/**
*
*/ Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
*/
public gauge.messages.Spec.ProtoItem.ItemType getItemType() {
@SuppressWarnings("deprecation")
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_;
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
public boolean hasStep() {
return step_ != null;
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
public gauge.messages.Spec.ProtoStep getStep() {
return step_ == null ? gauge.messages.Spec.ProtoStep.getDefaultInstance() : step_;
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
public gauge.messages.Spec.ProtoStepOrBuilder getStepOrBuilder() {
return getStep();
}
public static final int CONCEPT_FIELD_NUMBER = 3;
private gauge.messages.Spec.ProtoConcept concept_;
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
public boolean hasConcept() {
return concept_ != null;
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
public gauge.messages.Spec.ProtoConcept getConcept() {
return concept_ == null ? gauge.messages.Spec.ProtoConcept.getDefaultInstance() : concept_;
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
public gauge.messages.Spec.ProtoConceptOrBuilder getConceptOrBuilder() {
return getConcept();
}
public static final int SCENARIO_FIELD_NUMBER = 4;
private gauge.messages.Spec.ProtoScenario scenario_;
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
public boolean hasScenario() {
return scenario_ != null;
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
public gauge.messages.Spec.ProtoScenario getScenario() {
return scenario_ == null ? gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
public gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder() {
return getScenario();
}
public static final int TABLEDRIVENSCENARIO_FIELD_NUMBER = 5;
private gauge.messages.Spec.ProtoTableDrivenScenario tableDrivenScenario_;
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
public boolean hasTableDrivenScenario() {
return tableDrivenScenario_ != null;
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
public gauge.messages.Spec.ProtoTableDrivenScenario getTableDrivenScenario() {
return tableDrivenScenario_ == null ? gauge.messages.Spec.ProtoTableDrivenScenario.getDefaultInstance() : tableDrivenScenario_;
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
public gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder getTableDrivenScenarioOrBuilder() {
return getTableDrivenScenario();
}
public static final int COMMENT_FIELD_NUMBER = 6;
private gauge.messages.Spec.ProtoComment comment_;
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
public boolean hasComment() {
return comment_ != null;
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
public gauge.messages.Spec.ProtoComment getComment() {
return comment_ == null ? gauge.messages.Spec.ProtoComment.getDefaultInstance() : comment_;
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
public gauge.messages.Spec.ProtoCommentOrBuilder getCommentOrBuilder() {
return getComment();
}
public static final int TABLE_FIELD_NUMBER = 7;
private gauge.messages.Spec.ProtoTable table_;
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
public boolean hasTable() {
return table_ != null;
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
public gauge.messages.Spec.ProtoTable getTable() {
return table_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
public gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder() {
return getTable();
}
public static final int TAGS_FIELD_NUMBER = 8;
private gauge.messages.Spec.ProtoTags tags_;
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
public boolean hasTags() {
return tags_ != null;
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
public gauge.messages.Spec.ProtoTags getTags() {
return tags_ == null ? gauge.messages.Spec.ProtoTags.getDefaultInstance() : tags_;
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
public gauge.messages.Spec.ProtoTagsOrBuilder getTagsOrBuilder() {
return getTags();
}
public static final int FILENAME_FIELD_NUMBER = 9;
private volatile java.lang.Object fileName_;
/**
*
*/ Holds the Filename that the item belongs to
*
*
* string fileName = 9;
*/
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;
}
}
/**
*
*/ Holds the Filename that the item belongs to
*
*
* string fileName = 9;
*/
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;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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());
}
if (!getFileNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, fileName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
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());
}
if (!getFileNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, fileName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
}
result = result && getFileName()
.equals(other.getFileName());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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 = (37 * hash) + FILENAME_FIELD_NUMBER;
hash = (53 * hash) + getFileName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoItem parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ Container for all valid Items under a Specification.
*
*
* Protobuf type {@code gauge.messages.ProtoItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
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;
}
fileName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoItem_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoItem getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoItem.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoItem build() {
gauge.messages.Spec.ProtoItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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();
}
result.fileName_ = fileName_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
if (!other.getFileName().isEmpty()) {
fileName_ = other.fileName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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;
/**
*
*/ Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
*/
public int getItemTypeValue() {
return itemType_;
}
/**
*
*/ Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
*/
public Builder setItemTypeValue(int value) {
itemType_ = value;
onChanged();
return this;
}
/**
*
*/ Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
*/
public gauge.messages.Spec.ProtoItem.ItemType getItemType() {
@SuppressWarnings("deprecation")
gauge.messages.Spec.ProtoItem.ItemType result = gauge.messages.Spec.ProtoItem.ItemType.valueOf(itemType_);
return result == null ? gauge.messages.Spec.ProtoItem.ItemType.UNRECOGNIZED : result;
}
/**
*
*/ Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
*/
public Builder setItemType(gauge.messages.Spec.ProtoItem.ItemType value) {
if (value == null) {
throw new NullPointerException();
}
itemType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*/ Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
*/
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_;
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
public boolean hasStep() {
return stepBuilder_ != null || step_ != null;
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
public gauge.messages.Spec.ProtoStep getStep() {
if (stepBuilder_ == null) {
return step_ == null ? gauge.messages.Spec.ProtoStep.getDefaultInstance() : step_;
} else {
return stepBuilder_.getMessage();
}
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
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;
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
public Builder setStep(
gauge.messages.Spec.ProtoStep.Builder builderForValue) {
if (stepBuilder_ == null) {
step_ = builderForValue.build();
onChanged();
} else {
stepBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
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;
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
public Builder clearStep() {
if (stepBuilder_ == null) {
step_ = null;
onChanged();
} else {
step_ = null;
stepBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
public gauge.messages.Spec.ProtoStep.Builder getStepBuilder() {
onChanged();
return getStepFieldBuilder().getBuilder();
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
public gauge.messages.Spec.ProtoStepOrBuilder getStepOrBuilder() {
if (stepBuilder_ != null) {
return stepBuilder_.getMessageOrBuilder();
} else {
return step_ == null ?
gauge.messages.Spec.ProtoStep.getDefaultInstance() : step_;
}
}
/**
*
*/ Holds the Step definition. Valid only if ItemType = Step
*
*
* .gauge.messages.ProtoStep step = 2;
*/
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_;
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
public boolean hasConcept() {
return conceptBuilder_ != null || concept_ != null;
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
public gauge.messages.Spec.ProtoConcept getConcept() {
if (conceptBuilder_ == null) {
return concept_ == null ? gauge.messages.Spec.ProtoConcept.getDefaultInstance() : concept_;
} else {
return conceptBuilder_.getMessage();
}
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
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;
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
public Builder setConcept(
gauge.messages.Spec.ProtoConcept.Builder builderForValue) {
if (conceptBuilder_ == null) {
concept_ = builderForValue.build();
onChanged();
} else {
conceptBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
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;
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
public Builder clearConcept() {
if (conceptBuilder_ == null) {
concept_ = null;
onChanged();
} else {
concept_ = null;
conceptBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
public gauge.messages.Spec.ProtoConcept.Builder getConceptBuilder() {
onChanged();
return getConceptFieldBuilder().getBuilder();
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
public gauge.messages.Spec.ProtoConceptOrBuilder getConceptOrBuilder() {
if (conceptBuilder_ != null) {
return conceptBuilder_.getMessageOrBuilder();
} else {
return concept_ == null ?
gauge.messages.Spec.ProtoConcept.getDefaultInstance() : concept_;
}
}
/**
*
*/ Holds the Concept definition. Valid only if ItemType = Concept
*
*
* .gauge.messages.ProtoConcept concept = 3;
*/
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_;
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
public boolean hasScenario() {
return scenarioBuilder_ != null || scenario_ != null;
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
public gauge.messages.Spec.ProtoScenario getScenario() {
if (scenarioBuilder_ == null) {
return scenario_ == null ? gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
} else {
return scenarioBuilder_.getMessage();
}
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
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;
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
public Builder setScenario(
gauge.messages.Spec.ProtoScenario.Builder builderForValue) {
if (scenarioBuilder_ == null) {
scenario_ = builderForValue.build();
onChanged();
} else {
scenarioBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
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;
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
public Builder clearScenario() {
if (scenarioBuilder_ == null) {
scenario_ = null;
onChanged();
} else {
scenario_ = null;
scenarioBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
public gauge.messages.Spec.ProtoScenario.Builder getScenarioBuilder() {
onChanged();
return getScenarioFieldBuilder().getBuilder();
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
public gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder() {
if (scenarioBuilder_ != null) {
return scenarioBuilder_.getMessageOrBuilder();
} else {
return scenario_ == null ?
gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
}
}
/**
*
*/ Holds the Scenario definition. Valid only if ItemType = Scenario
*
*
* .gauge.messages.ProtoScenario scenario = 4;
*/
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_;
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
public boolean hasTableDrivenScenario() {
return tableDrivenScenarioBuilder_ != null || tableDrivenScenario_ != null;
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
public gauge.messages.Spec.ProtoTableDrivenScenario getTableDrivenScenario() {
if (tableDrivenScenarioBuilder_ == null) {
return tableDrivenScenario_ == null ? gauge.messages.Spec.ProtoTableDrivenScenario.getDefaultInstance() : tableDrivenScenario_;
} else {
return tableDrivenScenarioBuilder_.getMessage();
}
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
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;
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
public Builder setTableDrivenScenario(
gauge.messages.Spec.ProtoTableDrivenScenario.Builder builderForValue) {
if (tableDrivenScenarioBuilder_ == null) {
tableDrivenScenario_ = builderForValue.build();
onChanged();
} else {
tableDrivenScenarioBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
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;
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
public Builder clearTableDrivenScenario() {
if (tableDrivenScenarioBuilder_ == null) {
tableDrivenScenario_ = null;
onChanged();
} else {
tableDrivenScenario_ = null;
tableDrivenScenarioBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
public gauge.messages.Spec.ProtoTableDrivenScenario.Builder getTableDrivenScenarioBuilder() {
onChanged();
return getTableDrivenScenarioFieldBuilder().getBuilder();
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
public gauge.messages.Spec.ProtoTableDrivenScenarioOrBuilder getTableDrivenScenarioOrBuilder() {
if (tableDrivenScenarioBuilder_ != null) {
return tableDrivenScenarioBuilder_.getMessageOrBuilder();
} else {
return tableDrivenScenario_ == null ?
gauge.messages.Spec.ProtoTableDrivenScenario.getDefaultInstance() : tableDrivenScenario_;
}
}
/**
*
*/ Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
*
*
* .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
*/
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_;
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
public boolean hasComment() {
return commentBuilder_ != null || comment_ != null;
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
public gauge.messages.Spec.ProtoComment getComment() {
if (commentBuilder_ == null) {
return comment_ == null ? gauge.messages.Spec.ProtoComment.getDefaultInstance() : comment_;
} else {
return commentBuilder_.getMessage();
}
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
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;
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
public Builder setComment(
gauge.messages.Spec.ProtoComment.Builder builderForValue) {
if (commentBuilder_ == null) {
comment_ = builderForValue.build();
onChanged();
} else {
commentBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
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;
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
public Builder clearComment() {
if (commentBuilder_ == null) {
comment_ = null;
onChanged();
} else {
comment_ = null;
commentBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
public gauge.messages.Spec.ProtoComment.Builder getCommentBuilder() {
onChanged();
return getCommentFieldBuilder().getBuilder();
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
public gauge.messages.Spec.ProtoCommentOrBuilder getCommentOrBuilder() {
if (commentBuilder_ != null) {
return commentBuilder_.getMessageOrBuilder();
} else {
return comment_ == null ?
gauge.messages.Spec.ProtoComment.getDefaultInstance() : comment_;
}
}
/**
*
*/ Holds the Comment definition. Valid only if ItemType = Comment
*
*
* .gauge.messages.ProtoComment comment = 6;
*/
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_;
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
public boolean hasTable() {
return tableBuilder_ != null || table_ != null;
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
public gauge.messages.Spec.ProtoTable getTable() {
if (tableBuilder_ == null) {
return table_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
} else {
return tableBuilder_.getMessage();
}
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
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;
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
public Builder setTable(
gauge.messages.Spec.ProtoTable.Builder builderForValue) {
if (tableBuilder_ == null) {
table_ = builderForValue.build();
onChanged();
} else {
tableBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
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;
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
public Builder clearTable() {
if (tableBuilder_ == null) {
table_ = null;
onChanged();
} else {
table_ = null;
tableBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
public gauge.messages.Spec.ProtoTable.Builder getTableBuilder() {
onChanged();
return getTableFieldBuilder().getBuilder();
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
public gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder() {
if (tableBuilder_ != null) {
return tableBuilder_.getMessageOrBuilder();
} else {
return table_ == null ?
gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
}
}
/**
*
*/ Holds the Table definition. Valid only if ItemType = Table
*
*
* .gauge.messages.ProtoTable table = 7;
*/
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_;
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
public boolean hasTags() {
return tagsBuilder_ != null || tags_ != null;
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
public gauge.messages.Spec.ProtoTags getTags() {
if (tagsBuilder_ == null) {
return tags_ == null ? gauge.messages.Spec.ProtoTags.getDefaultInstance() : tags_;
} else {
return tagsBuilder_.getMessage();
}
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
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;
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
public Builder setTags(
gauge.messages.Spec.ProtoTags.Builder builderForValue) {
if (tagsBuilder_ == null) {
tags_ = builderForValue.build();
onChanged();
} else {
tagsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
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;
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
public Builder clearTags() {
if (tagsBuilder_ == null) {
tags_ = null;
onChanged();
} else {
tags_ = null;
tagsBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
public gauge.messages.Spec.ProtoTags.Builder getTagsBuilder() {
onChanged();
return getTagsFieldBuilder().getBuilder();
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
public gauge.messages.Spec.ProtoTagsOrBuilder getTagsOrBuilder() {
if (tagsBuilder_ != null) {
return tagsBuilder_.getMessageOrBuilder();
} else {
return tags_ == null ?
gauge.messages.Spec.ProtoTags.getDefaultInstance() : tags_;
}
}
/**
*
*/ Holds the Tags definition. Valid only if ItemType = Tags
*
*
* .gauge.messages.ProtoTags tags = 8;
*/
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_;
}
private java.lang.Object fileName_ = "";
/**
*
*/ Holds the Filename that the item belongs to
*
*
* string fileName = 9;
*/
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;
}
}
/**
*
*/ Holds the Filename that the item belongs to
*
*
* string fileName = 9;
*/
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;
}
}
/**
*
*/ Holds the Filename that the item belongs to
*
*
* string fileName = 9;
*/
public Builder setFileName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fileName_ = value;
onChanged();
return this;
}
/**
*
*/ Holds the Filename that the item belongs to
*
*
* string fileName = 9;
*/
public Builder clearFileName() {
fileName_ = getDefaultInstance().getFileName();
onChanged();
return this;
}
/**
*
*/ Holds the Filename that the item belongs to
*
*
* string fileName = 9;
*/
public Builder setFileNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fileName_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Heading of the given Scenario
*
*
* string scenarioHeading = 1;
*/
java.lang.String getScenarioHeading();
/**
*
*/ Heading of the given Scenario
*
*
* string scenarioHeading = 1;
*/
com.google.protobuf.ByteString
getScenarioHeadingBytes();
/**
*
*/ Flag to indicate if the Scenario execution failed
*
*
* bool failed = 2 [deprecated = true];
*/
@java.lang.Deprecated boolean getFailed();
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
java.util.List
getContextsList();
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
gauge.messages.Spec.ProtoItem getContexts(int index);
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
int getContextsCount();
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
java.util.List
getContextsOrBuilderList();
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
gauge.messages.Spec.ProtoItemOrBuilder getContextsOrBuilder(
int index);
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
java.util.List
getScenarioItemsList();
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
gauge.messages.Spec.ProtoItem getScenarioItems(int index);
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
int getScenarioItemsCount();
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
java.util.List
getScenarioItemsOrBuilderList();
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
gauge.messages.Spec.ProtoItemOrBuilder getScenarioItemsOrBuilder(
int index);
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
boolean hasPreHookFailure();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
gauge.messages.Spec.ProtoHookFailure getPreHookFailure();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder();
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
boolean hasPostHookFailure();
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
gauge.messages.Spec.ProtoHookFailure getPostHookFailure();
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder();
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
java.util.List
getTagsList();
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
int getTagsCount();
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
java.lang.String getTags(int index);
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
com.google.protobuf.ByteString
getTagsBytes(int index);
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 8;
*/
long getExecutionTime();
/**
*
*/ Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
*/
@java.lang.Deprecated boolean getSkipped();
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
java.util.List
getSkipErrorsList();
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
int getSkipErrorsCount();
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
java.lang.String getSkipErrors(int index);
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
com.google.protobuf.ByteString
getSkipErrorsBytes(int index);
/**
*
*/ Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
*/
java.lang.String getID();
/**
*
*/ Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
*/
com.google.protobuf.ByteString
getIDBytes();
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
java.util.List
getTearDownStepsList();
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
gauge.messages.Spec.ProtoItem getTearDownSteps(int index);
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
int getTearDownStepsCount();
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
java.util.List
getTearDownStepsOrBuilderList();
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
gauge.messages.Spec.ProtoItemOrBuilder getTearDownStepsOrBuilder(
int index);
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
boolean hasSpan();
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
gauge.messages.Spec.Span getSpan();
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
gauge.messages.Spec.SpanOrBuilder getSpanOrBuilder();
/**
*
*/ Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
*/
int getExecutionStatusValue();
/**
*
*/ Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
*/
gauge.messages.Spec.ExecutionStatus getExecutionStatus();
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
java.util.List
getPreHookMessagesList();
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
int getPreHookMessagesCount();
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
java.lang.String getPreHookMessages(int index);
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
com.google.protobuf.ByteString
getPreHookMessagesBytes(int index);
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
java.util.List
getPostHookMessagesList();
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
int getPostHookMessagesCount();
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
java.lang.String getPostHookMessages(int index);
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
com.google.protobuf.ByteString
getPostHookMessagesBytes(int index);
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getPreHookMessageList();
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated int getPreHookMessageCount();
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated java.lang.String getPreHookMessage(int index);
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getPreHookMessageBytes(int index);
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getPostHookMessageList();
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated int getPostHookMessageCount();
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated java.lang.String getPostHookMessage(int index);
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getPostHookMessageBytes(int index);
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated java.util.List getPreHookScreenshotsList();
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated int getPreHookScreenshotsCount();
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString getPreHookScreenshots(int index);
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated java.util.List getPostHookScreenshotsList();
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated int getPostHookScreenshotsCount();
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString getPostHookScreenshots(int index);
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
java.util.List
getPreHookScreenshotFilesList();
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
int getPreHookScreenshotFilesCount();
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
java.lang.String getPreHookScreenshotFiles(int index);
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index);
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
java.util.List
getPostHookScreenshotFilesList();
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
int getPostHookScreenshotFilesCount();
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
java.lang.String getPostHookScreenshotFiles(int index);
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index);
}
/**
*
*/ A proto object representing a Scenario
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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;
preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
preHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
postHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
preHookScreenshots_ = java.util.Collections.emptyList();
postHookScreenshots_ = java.util.Collections.emptyList();
preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoScenario(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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();
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();
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();
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;
}
case 122: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
preHookMessages_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00004000;
}
preHookMessages_.add(s);
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
postHookMessages_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00008000;
}
postHookMessages_.add(s);
break;
}
case 138: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
preHookMessage_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00010000;
}
preHookMessage_.add(s);
break;
}
case 146: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) {
postHookMessage_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00020000;
}
postHookMessage_.add(s);
break;
}
case 154: {
if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
preHookScreenshots_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00040000;
}
preHookScreenshots_.add(input.readBytes());
break;
}
case 162: {
if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
postHookScreenshots_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00080000;
}
postHookScreenshots_.add(input.readBytes());
break;
}
case 170: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
preHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00100000;
}
preHookScreenshotFiles_.add(s);
break;
}
case 178: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) {
postHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00200000;
}
postHookScreenshotFiles_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_);
}
if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
preHookMessages_ = preHookMessages_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
postHookMessages_ = postHookMessages_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
preHookMessage_ = preHookMessage_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) {
postHookMessage_ = postHookMessage_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
preHookScreenshots_ = java.util.Collections.unmodifiableList(preHookScreenshots_);
}
if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
postHookScreenshots_ = java.util.Collections.unmodifiableList(postHookScreenshots_);
}
if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
preHookScreenshotFiles_ = preHookScreenshotFiles_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) {
postHookScreenshotFiles_ = postHookScreenshotFiles_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoScenario_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ Heading of the given Scenario
*
*
* string scenarioHeading = 1;
*/
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;
}
}
/**
*
*/ Heading of the given Scenario
*
*
* string scenarioHeading = 1;
*/
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_;
/**
*
*/ Flag to indicate if the Scenario execution failed
*
*
* bool failed = 2 [deprecated = true];
*/
@java.lang.Deprecated public boolean getFailed() {
return failed_;
}
public static final int CONTEXTS_FIELD_NUMBER = 3;
private java.util.List contexts_;
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public java.util.List getContextsList() {
return contexts_;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public java.util.List
getContextsOrBuilderList() {
return contexts_;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public int getContextsCount() {
return contexts_.size();
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public gauge.messages.Spec.ProtoItem getContexts(int index) {
return contexts_.get(index);
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public gauge.messages.Spec.ProtoItemOrBuilder getContextsOrBuilder(
int index) {
return contexts_.get(index);
}
public static final int SCENARIOITEMS_FIELD_NUMBER = 4;
private java.util.List scenarioItems_;
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public java.util.List getScenarioItemsList() {
return scenarioItems_;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public java.util.List
getScenarioItemsOrBuilderList() {
return scenarioItems_;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public int getScenarioItemsCount() {
return scenarioItems_.size();
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public gauge.messages.Spec.ProtoItem getScenarioItems(int index) {
return scenarioItems_.get(index);
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
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_;
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
public boolean hasPreHookFailure() {
return preHookFailure_ != null;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
return getPreHookFailure();
}
public static final int POSTHOOKFAILURE_FIELD_NUMBER = 6;
private gauge.messages.Spec.ProtoHookFailure postHookFailure_;
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
public boolean hasPostHookFailure() {
return postHookFailure_ != null;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
return getPostHookFailure();
}
public static final int TAGS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList tags_;
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int EXECUTIONTIME_FIELD_NUMBER = 8;
private long executionTime_;
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 8;
*/
public long getExecutionTime() {
return executionTime_;
}
public static final int SKIPPED_FIELD_NUMBER = 9;
private boolean skipped_;
/**
*
*/ Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
*/
@java.lang.Deprecated public boolean getSkipped() {
return skipped_;
}
public static final int SKIPERRORS_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList skipErrors_;
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public com.google.protobuf.ProtocolStringList
getSkipErrorsList() {
return skipErrors_;
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public int getSkipErrorsCount() {
return skipErrors_.size();
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public java.lang.String getSkipErrors(int index) {
return skipErrors_.get(index);
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
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_;
/**
*
*/ Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
*/
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;
}
}
/**
*
*/ Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
*/
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 tearDownSteps_;
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public java.util.List getTearDownStepsList() {
return tearDownSteps_;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public java.util.List
getTearDownStepsOrBuilderList() {
return tearDownSteps_;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public int getTearDownStepsCount() {
return tearDownSteps_.size();
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public gauge.messages.Spec.ProtoItem getTearDownSteps(int index) {
return tearDownSteps_.get(index);
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
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_;
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
public boolean hasSpan() {
return span_ != null;
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
public gauge.messages.Spec.Span getSpan() {
return span_ == null ? gauge.messages.Spec.Span.getDefaultInstance() : span_;
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
public gauge.messages.Spec.SpanOrBuilder getSpanOrBuilder() {
return getSpan();
}
public static final int EXECUTIONSTATUS_FIELD_NUMBER = 14;
private int executionStatus_;
/**
*
*/ Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
*/
public int getExecutionStatusValue() {
return executionStatus_;
}
/**
*
*/ Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
*/
public gauge.messages.Spec.ExecutionStatus getExecutionStatus() {
@SuppressWarnings("deprecation")
gauge.messages.Spec.ExecutionStatus result = gauge.messages.Spec.ExecutionStatus.valueOf(executionStatus_);
return result == null ? gauge.messages.Spec.ExecutionStatus.UNRECOGNIZED : result;
}
public static final int PREHOOKMESSAGES_FIELD_NUMBER = 15;
private com.google.protobuf.LazyStringList preHookMessages_;
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public java.lang.String getPreHookMessages(int index) {
return preHookMessages_.get(index);
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
public static final int POSTHOOKMESSAGES_FIELD_NUMBER = 16;
private com.google.protobuf.LazyStringList postHookMessages_;
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public java.lang.String getPostHookMessages(int index) {
return postHookMessages_.get(index);
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
public static final int PREHOOKMESSAGE_FIELD_NUMBER = 17;
private com.google.protobuf.LazyStringList preHookMessage_;
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPreHookMessageList() {
return preHookMessage_;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookMessageCount() {
return preHookMessage_.size();
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getPreHookMessage(int index) {
return preHookMessage_.get(index);
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPreHookMessageBytes(int index) {
return preHookMessage_.getByteString(index);
}
public static final int POSTHOOKMESSAGE_FIELD_NUMBER = 18;
private com.google.protobuf.LazyStringList postHookMessage_;
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPostHookMessageList() {
return postHookMessage_;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookMessageCount() {
return postHookMessage_.size();
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getPostHookMessage(int index) {
return postHookMessage_.get(index);
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPostHookMessageBytes(int index) {
return postHookMessage_.getByteString(index);
}
public static final int PREHOOKSCREENSHOTS_FIELD_NUMBER = 19;
private java.util.List preHookScreenshots_;
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPreHookScreenshotsList() {
return preHookScreenshots_;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookScreenshotsCount() {
return preHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
public static final int POSTHOOKSCREENSHOTS_FIELD_NUMBER = 20;
private java.util.List postHookScreenshots_;
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPostHookScreenshotsList() {
return postHookScreenshots_;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookScreenshotsCount() {
return postHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPostHookScreenshots(int index) {
return postHookScreenshots_.get(index);
}
public static final int PREHOOKSCREENSHOTFILES_FIELD_NUMBER = 21;
private com.google.protobuf.LazyStringList preHookScreenshotFiles_;
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public java.lang.String getPreHookScreenshotFiles(int index) {
return preHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
public static final int POSTHOOKSCREENSHOTFILES_FIELD_NUMBER = 22;
private com.google.protobuf.LazyStringList postHookScreenshotFiles_;
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public java.lang.String getPostHookScreenshotFiles(int index) {
return postHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index) {
return postHookScreenshotFiles_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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_);
}
for (int i = 0; i < preHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, preHookMessages_.getRaw(i));
}
for (int i = 0; i < postHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, postHookMessages_.getRaw(i));
}
for (int i = 0; i < preHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, preHookMessage_.getRaw(i));
}
for (int i = 0; i < postHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, postHookMessage_.getRaw(i));
}
for (int i = 0; i < preHookScreenshots_.size(); i++) {
output.writeBytes(19, preHookScreenshots_.get(i));
}
for (int i = 0; i < postHookScreenshots_.size(); i++) {
output.writeBytes(20, postHookScreenshots_.get(i));
}
for (int i = 0; i < preHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 21, preHookScreenshotFiles_.getRaw(i));
}
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, postHookScreenshotFiles_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
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_);
}
{
int dataSize = 0;
for (int i = 0; i < preHookMessages_.size(); i++) {
dataSize += computeStringSizeNoTag(preHookMessages_.getRaw(i));
}
size += dataSize;
size += 1 * getPreHookMessagesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookMessages_.size(); i++) {
dataSize += computeStringSizeNoTag(postHookMessages_.getRaw(i));
}
size += dataSize;
size += 2 * getPostHookMessagesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < preHookMessage_.size(); i++) {
dataSize += computeStringSizeNoTag(preHookMessage_.getRaw(i));
}
size += dataSize;
size += 2 * getPreHookMessageList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookMessage_.size(); i++) {
dataSize += computeStringSizeNoTag(postHookMessage_.getRaw(i));
}
size += dataSize;
size += 2 * getPostHookMessageList().size();
}
{
int dataSize = 0;
for (int i = 0; i < preHookScreenshots_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(preHookScreenshots_.get(i));
}
size += dataSize;
size += 2 * getPreHookScreenshotsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookScreenshots_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(postHookScreenshots_.get(i));
}
size += dataSize;
size += 2 * getPostHookScreenshotsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < preHookScreenshotFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(preHookScreenshotFiles_.getRaw(i));
}
size += dataSize;
size += 2 * getPreHookScreenshotFilesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(postHookScreenshotFiles_.getRaw(i));
}
size += dataSize;
size += 2 * getPostHookScreenshotFilesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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_;
result = result && getPreHookMessagesList()
.equals(other.getPreHookMessagesList());
result = result && getPostHookMessagesList()
.equals(other.getPostHookMessagesList());
result = result && getPreHookMessageList()
.equals(other.getPreHookMessageList());
result = result && getPostHookMessageList()
.equals(other.getPostHookMessageList());
result = result && getPreHookScreenshotsList()
.equals(other.getPreHookScreenshotsList());
result = result && getPostHookScreenshotsList()
.equals(other.getPostHookScreenshotsList());
result = result && getPreHookScreenshotFilesList()
.equals(other.getPreHookScreenshotFilesList());
result = result && getPostHookScreenshotFilesList()
.equals(other.getPostHookScreenshotFilesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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_;
if (getPreHookMessagesCount() > 0) {
hash = (37 * hash) + PREHOOKMESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getPreHookMessagesList().hashCode();
}
if (getPostHookMessagesCount() > 0) {
hash = (37 * hash) + POSTHOOKMESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getPostHookMessagesList().hashCode();
}
if (getPreHookMessageCount() > 0) {
hash = (37 * hash) + PREHOOKMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getPreHookMessageList().hashCode();
}
if (getPostHookMessageCount() > 0) {
hash = (37 * hash) + POSTHOOKMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getPostHookMessageList().hashCode();
}
if (getPreHookScreenshotsCount() > 0) {
hash = (37 * hash) + PREHOOKSCREENSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getPreHookScreenshotsList().hashCode();
}
if (getPostHookScreenshotsCount() > 0) {
hash = (37 * hash) + POSTHOOKSCREENSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getPostHookScreenshotsList().hashCode();
}
if (getPreHookScreenshotFilesCount() > 0) {
hash = (37 * hash) + PREHOOKSCREENSHOTFILES_FIELD_NUMBER;
hash = (53 * hash) + getPreHookScreenshotFilesList().hashCode();
}
if (getPostHookScreenshotFilesCount() > 0) {
hash = (37 * hash) + POSTHOOKSCREENSHOTFILES_FIELD_NUMBER;
hash = (53 * hash) + getPostHookScreenshotFilesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoScenario parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoScenario parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing a Scenario
*
*
* Protobuf type {@code gauge.messages.ProtoScenario}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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();
}
}
@java.lang.Override
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;
preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00008000);
preHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00010000);
postHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00020000);
preHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00040000);
postHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00080000);
preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00100000);
postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00200000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoScenario_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoScenario getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoScenario.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoScenario build() {
gauge.messages.Spec.ProtoScenario result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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_;
if (((bitField0_ & 0x00004000) == 0x00004000)) {
preHookMessages_ = preHookMessages_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00004000);
}
result.preHookMessages_ = preHookMessages_;
if (((bitField0_ & 0x00008000) == 0x00008000)) {
postHookMessages_ = postHookMessages_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00008000);
}
result.postHookMessages_ = postHookMessages_;
if (((bitField0_ & 0x00010000) == 0x00010000)) {
preHookMessage_ = preHookMessage_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00010000);
}
result.preHookMessage_ = preHookMessage_;
if (((bitField0_ & 0x00020000) == 0x00020000)) {
postHookMessage_ = postHookMessage_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00020000);
}
result.postHookMessage_ = postHookMessage_;
if (((bitField0_ & 0x00040000) == 0x00040000)) {
preHookScreenshots_ = java.util.Collections.unmodifiableList(preHookScreenshots_);
bitField0_ = (bitField0_ & ~0x00040000);
}
result.preHookScreenshots_ = preHookScreenshots_;
if (((bitField0_ & 0x00080000) == 0x00080000)) {
postHookScreenshots_ = java.util.Collections.unmodifiableList(postHookScreenshots_);
bitField0_ = (bitField0_ & ~0x00080000);
}
result.postHookScreenshots_ = postHookScreenshots_;
if (((bitField0_ & 0x00100000) == 0x00100000)) {
preHookScreenshotFiles_ = preHookScreenshotFiles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00100000);
}
result.preHookScreenshotFiles_ = preHookScreenshotFiles_;
if (((bitField0_ & 0x00200000) == 0x00200000)) {
postHookScreenshotFiles_ = postHookScreenshotFiles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00200000);
}
result.postHookScreenshotFiles_ = postHookScreenshotFiles_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
if (!other.preHookMessages_.isEmpty()) {
if (preHookMessages_.isEmpty()) {
preHookMessages_ = other.preHookMessages_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensurePreHookMessagesIsMutable();
preHookMessages_.addAll(other.preHookMessages_);
}
onChanged();
}
if (!other.postHookMessages_.isEmpty()) {
if (postHookMessages_.isEmpty()) {
postHookMessages_ = other.postHookMessages_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensurePostHookMessagesIsMutable();
postHookMessages_.addAll(other.postHookMessages_);
}
onChanged();
}
if (!other.preHookMessage_.isEmpty()) {
if (preHookMessage_.isEmpty()) {
preHookMessage_ = other.preHookMessage_;
bitField0_ = (bitField0_ & ~0x00010000);
} else {
ensurePreHookMessageIsMutable();
preHookMessage_.addAll(other.preHookMessage_);
}
onChanged();
}
if (!other.postHookMessage_.isEmpty()) {
if (postHookMessage_.isEmpty()) {
postHookMessage_ = other.postHookMessage_;
bitField0_ = (bitField0_ & ~0x00020000);
} else {
ensurePostHookMessageIsMutable();
postHookMessage_.addAll(other.postHookMessage_);
}
onChanged();
}
if (!other.preHookScreenshots_.isEmpty()) {
if (preHookScreenshots_.isEmpty()) {
preHookScreenshots_ = other.preHookScreenshots_;
bitField0_ = (bitField0_ & ~0x00040000);
} else {
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.addAll(other.preHookScreenshots_);
}
onChanged();
}
if (!other.postHookScreenshots_.isEmpty()) {
if (postHookScreenshots_.isEmpty()) {
postHookScreenshots_ = other.postHookScreenshots_;
bitField0_ = (bitField0_ & ~0x00080000);
} else {
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.addAll(other.postHookScreenshots_);
}
onChanged();
}
if (!other.preHookScreenshotFiles_.isEmpty()) {
if (preHookScreenshotFiles_.isEmpty()) {
preHookScreenshotFiles_ = other.preHookScreenshotFiles_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.addAll(other.preHookScreenshotFiles_);
}
onChanged();
}
if (!other.postHookScreenshotFiles_.isEmpty()) {
if (postHookScreenshotFiles_.isEmpty()) {
postHookScreenshotFiles_ = other.postHookScreenshotFiles_;
bitField0_ = (bitField0_ & ~0x00200000);
} else {
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.addAll(other.postHookScreenshotFiles_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_ = "";
/**
*
*/ Heading of the given Scenario
*
*
* string scenarioHeading = 1;
*/
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;
}
}
/**
*
*/ Heading of the given Scenario
*
*
* string scenarioHeading = 1;
*/
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;
}
}
/**
*
*/ Heading of the given Scenario
*
*
* string scenarioHeading = 1;
*/
public Builder setScenarioHeading(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
scenarioHeading_ = value;
onChanged();
return this;
}
/**
*
*/ Heading of the given Scenario
*
*
* string scenarioHeading = 1;
*/
public Builder clearScenarioHeading() {
scenarioHeading_ = getDefaultInstance().getScenarioHeading();
onChanged();
return this;
}
/**
*
*/ Heading of the given Scenario
*
*
* string scenarioHeading = 1;
*/
public Builder setScenarioHeadingBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
scenarioHeading_ = value;
onChanged();
return this;
}
private boolean failed_ ;
/**
*
*/ Flag to indicate if the Scenario execution failed
*
*
* bool failed = 2 [deprecated = true];
*/
@java.lang.Deprecated public boolean getFailed() {
return failed_;
}
/**
*
*/ Flag to indicate if the Scenario execution failed
*
*
* bool failed = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder setFailed(boolean value) {
failed_ = value;
onChanged();
return this;
}
/**
*
*/ Flag to indicate if the Scenario execution failed
*
*
* bool failed = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearFailed() {
failed_ = false;
onChanged();
return this;
}
private java.util.List contexts_ =
java.util.Collections.emptyList();
private void ensureContextsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
contexts_ = new java.util.ArrayList(contexts_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> contextsBuilder_;
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public java.util.List getContextsList() {
if (contextsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contexts_);
} else {
return contextsBuilder_.getMessageList();
}
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public int getContextsCount() {
if (contextsBuilder_ == null) {
return contexts_.size();
} else {
return contextsBuilder_.getCount();
}
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public gauge.messages.Spec.ProtoItem getContexts(int index) {
if (contextsBuilder_ == null) {
return contexts_.get(index);
} else {
return contextsBuilder_.getMessage(index);
}
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
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;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
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;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
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;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
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;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
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;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
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;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public Builder addAllContexts(
java.lang.Iterable values) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contexts_);
onChanged();
} else {
contextsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public Builder clearContexts() {
if (contextsBuilder_ == null) {
contexts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
contextsBuilder_.clear();
}
return this;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public Builder removeContexts(int index) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.remove(index);
onChanged();
} else {
contextsBuilder_.remove(index);
}
return this;
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public gauge.messages.Spec.ProtoItem.Builder getContextsBuilder(
int index) {
return getContextsFieldBuilder().getBuilder(index);
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public gauge.messages.Spec.ProtoItemOrBuilder getContextsOrBuilder(
int index) {
if (contextsBuilder_ == null) {
return contexts_.get(index); } else {
return contextsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public java.util.List
getContextsOrBuilderList() {
if (contextsBuilder_ != null) {
return contextsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contexts_);
}
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public gauge.messages.Spec.ProtoItem.Builder addContextsBuilder() {
return getContextsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public gauge.messages.Spec.ProtoItem.Builder addContextsBuilder(
int index) {
return getContextsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ Collection of Context steps. The Context steps are executed before every run.
*
*
* repeated .gauge.messages.ProtoItem contexts = 3;
*/
public java.util.List
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 scenarioItems_ =
java.util.Collections.emptyList();
private void ensureScenarioItemsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
scenarioItems_ = new java.util.ArrayList(scenarioItems_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> scenarioItemsBuilder_;
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public java.util.List getScenarioItemsList() {
if (scenarioItemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(scenarioItems_);
} else {
return scenarioItemsBuilder_.getMessageList();
}
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public int getScenarioItemsCount() {
if (scenarioItemsBuilder_ == null) {
return scenarioItems_.size();
} else {
return scenarioItemsBuilder_.getCount();
}
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public gauge.messages.Spec.ProtoItem getScenarioItems(int index) {
if (scenarioItemsBuilder_ == null) {
return scenarioItems_.get(index);
} else {
return scenarioItemsBuilder_.getMessage(index);
}
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
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;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
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;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
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;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
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;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
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;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
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;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public Builder addAllScenarioItems(
java.lang.Iterable values) {
if (scenarioItemsBuilder_ == null) {
ensureScenarioItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, scenarioItems_);
onChanged();
} else {
scenarioItemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public Builder clearScenarioItems() {
if (scenarioItemsBuilder_ == null) {
scenarioItems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
scenarioItemsBuilder_.clear();
}
return this;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public Builder removeScenarioItems(int index) {
if (scenarioItemsBuilder_ == null) {
ensureScenarioItemsIsMutable();
scenarioItems_.remove(index);
onChanged();
} else {
scenarioItemsBuilder_.remove(index);
}
return this;
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public gauge.messages.Spec.ProtoItem.Builder getScenarioItemsBuilder(
int index) {
return getScenarioItemsFieldBuilder().getBuilder(index);
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public gauge.messages.Spec.ProtoItemOrBuilder getScenarioItemsOrBuilder(
int index) {
if (scenarioItemsBuilder_ == null) {
return scenarioItems_.get(index); } else {
return scenarioItemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public java.util.List
getScenarioItemsOrBuilderList() {
if (scenarioItemsBuilder_ != null) {
return scenarioItemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(scenarioItems_);
}
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public gauge.messages.Spec.ProtoItem.Builder addScenarioItemsBuilder() {
return getScenarioItemsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public gauge.messages.Spec.ProtoItem.Builder addScenarioItemsBuilder(
int index) {
return getScenarioItemsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
*
*
* repeated .gauge.messages.ProtoItem scenarioItems = 4;
*/
public java.util.List
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_;
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
public boolean hasPreHookFailure() {
return preHookFailureBuilder_ != null || preHookFailure_ != null;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
if (preHookFailureBuilder_ == null) {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
} else {
return preHookFailureBuilder_.getMessage();
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
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;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
public Builder setPreHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = builderForValue.build();
onChanged();
} else {
preHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
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;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
public Builder clearPreHookFailure() {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
onChanged();
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPreHookFailureBuilder() {
onChanged();
return getPreHookFailureFieldBuilder().getBuilder();
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
if (preHookFailureBuilder_ != null) {
return preHookFailureBuilder_.getMessageOrBuilder();
} else {
return preHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 5;
*/
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_;
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
public boolean hasPostHookFailure() {
return postHookFailureBuilder_ != null || postHookFailure_ != null;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
if (postHookFailureBuilder_ == null) {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
} else {
return postHookFailureBuilder_.getMessage();
}
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
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;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
public Builder setPostHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = builderForValue.build();
onChanged();
} else {
postHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
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;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
public Builder clearPostHookFailure() {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
onChanged();
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
return this;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPostHookFailureBuilder() {
onChanged();
return getPostHookFailureFieldBuilder().getBuilder();
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
if (postHookFailureBuilder_ != null) {
return postHookFailureBuilder_.getMessageOrBuilder();
} else {
return postHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
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;
}
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*/ Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
*/
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_ ;
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 8;
*/
public long getExecutionTime() {
return executionTime_;
}
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 8;
*/
public Builder setExecutionTime(long value) {
executionTime_ = value;
onChanged();
return this;
}
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 8;
*/
public Builder clearExecutionTime() {
executionTime_ = 0L;
onChanged();
return this;
}
private boolean skipped_ ;
/**
*
*/ Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
*/
@java.lang.Deprecated public boolean getSkipped() {
return skipped_;
}
/**
*
*/ Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
*/
@java.lang.Deprecated public Builder setSkipped(boolean value) {
skipped_ = value;
onChanged();
return this;
}
/**
*
*/ Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
*/
@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;
}
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public com.google.protobuf.ProtocolStringList
getSkipErrorsList() {
return skipErrors_.getUnmodifiableView();
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public int getSkipErrorsCount() {
return skipErrors_.size();
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public java.lang.String getSkipErrors(int index) {
return skipErrors_.get(index);
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public com.google.protobuf.ByteString
getSkipErrorsBytes(int index) {
return skipErrors_.getByteString(index);
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public Builder setSkipErrors(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSkipErrorsIsMutable();
skipErrors_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public Builder addSkipErrors(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSkipErrorsIsMutable();
skipErrors_.add(value);
onChanged();
return this;
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public Builder addAllSkipErrors(
java.lang.Iterable values) {
ensureSkipErrorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, skipErrors_);
onChanged();
return this;
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
public Builder clearSkipErrors() {
skipErrors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*/ Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
*/
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_ = "";
/**
*
*/ Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
*/
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;
}
}
/**
*
*/ Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
*/
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;
}
}
/**
*
*/ Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
*/
public Builder setID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
iD_ = value;
onChanged();
return this;
}
/**
*
*/ Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
*/
public Builder clearID() {
iD_ = getDefaultInstance().getID();
onChanged();
return this;
}
/**
*
*/ Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
*/
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 tearDownSteps_ =
java.util.Collections.emptyList();
private void ensureTearDownStepsIsMutable() {
if (!((bitField0_ & 0x00000800) == 0x00000800)) {
tearDownSteps_ = new java.util.ArrayList(tearDownSteps_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> tearDownStepsBuilder_;
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public java.util.List getTearDownStepsList() {
if (tearDownStepsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tearDownSteps_);
} else {
return tearDownStepsBuilder_.getMessageList();
}
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public int getTearDownStepsCount() {
if (tearDownStepsBuilder_ == null) {
return tearDownSteps_.size();
} else {
return tearDownStepsBuilder_.getCount();
}
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public gauge.messages.Spec.ProtoItem getTearDownSteps(int index) {
if (tearDownStepsBuilder_ == null) {
return tearDownSteps_.get(index);
} else {
return tearDownStepsBuilder_.getMessage(index);
}
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
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;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
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;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
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;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
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;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
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;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
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;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public Builder addAllTearDownSteps(
java.lang.Iterable values) {
if (tearDownStepsBuilder_ == null) {
ensureTearDownStepsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tearDownSteps_);
onChanged();
} else {
tearDownStepsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public Builder clearTearDownSteps() {
if (tearDownStepsBuilder_ == null) {
tearDownSteps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
tearDownStepsBuilder_.clear();
}
return this;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public Builder removeTearDownSteps(int index) {
if (tearDownStepsBuilder_ == null) {
ensureTearDownStepsIsMutable();
tearDownSteps_.remove(index);
onChanged();
} else {
tearDownStepsBuilder_.remove(index);
}
return this;
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public gauge.messages.Spec.ProtoItem.Builder getTearDownStepsBuilder(
int index) {
return getTearDownStepsFieldBuilder().getBuilder(index);
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public gauge.messages.Spec.ProtoItemOrBuilder getTearDownStepsOrBuilder(
int index) {
if (tearDownStepsBuilder_ == null) {
return tearDownSteps_.get(index); } else {
return tearDownStepsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public java.util.List
getTearDownStepsOrBuilderList() {
if (tearDownStepsBuilder_ != null) {
return tearDownStepsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tearDownSteps_);
}
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public gauge.messages.Spec.ProtoItem.Builder addTearDownStepsBuilder() {
return getTearDownStepsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public gauge.messages.Spec.ProtoItem.Builder addTearDownStepsBuilder(
int index) {
return getTearDownStepsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* repeated .gauge.messages.ProtoItem tearDownSteps = 12;
*/
public java.util.List
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_;
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
public boolean hasSpan() {
return spanBuilder_ != null || span_ != null;
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
public gauge.messages.Spec.Span getSpan() {
if (spanBuilder_ == null) {
return span_ == null ? gauge.messages.Spec.Span.getDefaultInstance() : span_;
} else {
return spanBuilder_.getMessage();
}
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
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;
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
public Builder setSpan(
gauge.messages.Spec.Span.Builder builderForValue) {
if (spanBuilder_ == null) {
span_ = builderForValue.build();
onChanged();
} else {
spanBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
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;
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
public Builder clearSpan() {
if (spanBuilder_ == null) {
span_ = null;
onChanged();
} else {
span_ = null;
spanBuilder_ = null;
}
return this;
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
public gauge.messages.Spec.Span.Builder getSpanBuilder() {
onChanged();
return getSpanFieldBuilder().getBuilder();
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
public gauge.messages.Spec.SpanOrBuilder getSpanOrBuilder() {
if (spanBuilder_ != null) {
return spanBuilder_.getMessageOrBuilder();
} else {
return span_ == null ?
gauge.messages.Spec.Span.getDefaultInstance() : span_;
}
}
/**
*
*/ Span(start, end) of scenario
*
*
* .gauge.messages.Span span = 13;
*/
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;
/**
*
*/ Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
*/
public int getExecutionStatusValue() {
return executionStatus_;
}
/**
*
*/ Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
*/
public Builder setExecutionStatusValue(int value) {
executionStatus_ = value;
onChanged();
return this;
}
/**
*
*/ Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
*/
public gauge.messages.Spec.ExecutionStatus getExecutionStatus() {
@SuppressWarnings("deprecation")
gauge.messages.Spec.ExecutionStatus result = gauge.messages.Spec.ExecutionStatus.valueOf(executionStatus_);
return result == null ? gauge.messages.Spec.ExecutionStatus.UNRECOGNIZED : result;
}
/**
*
*/ Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
*/
public Builder setExecutionStatus(gauge.messages.Spec.ExecutionStatus value) {
if (value == null) {
throw new NullPointerException();
}
executionStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
*/ Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
*/
public Builder clearExecutionStatus() {
executionStatus_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePreHookMessagesIsMutable() {
if (!((bitField0_ & 0x00004000) == 0x00004000)) {
preHookMessages_ = new com.google.protobuf.LazyStringArrayList(preHookMessages_);
bitField0_ |= 0x00004000;
}
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_.getUnmodifiableView();
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public java.lang.String getPreHookMessages(int index) {
return preHookMessages_.get(index);
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public Builder setPreHookMessages(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessagesIsMutable();
preHookMessages_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public Builder addPreHookMessages(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public Builder addAllPreHookMessages(
java.lang.Iterable values) {
ensurePreHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessages_);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public Builder clearPreHookMessages() {
preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
*/
public Builder addPreHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePostHookMessagesIsMutable() {
if (!((bitField0_ & 0x00008000) == 0x00008000)) {
postHookMessages_ = new com.google.protobuf.LazyStringArrayList(postHookMessages_);
bitField0_ |= 0x00008000;
}
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_.getUnmodifiableView();
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public java.lang.String getPostHookMessages(int index) {
return postHookMessages_.get(index);
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public Builder setPostHookMessages(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessagesIsMutable();
postHookMessages_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public Builder addPostHookMessages(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public Builder addAllPostHookMessages(
java.lang.Iterable values) {
ensurePostHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessages_);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public Builder clearPostHookMessages() {
postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
*/
public Builder addPostHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList preHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePreHookMessageIsMutable() {
if (!((bitField0_ & 0x00010000) == 0x00010000)) {
preHookMessage_ = new com.google.protobuf.LazyStringArrayList(preHookMessage_);
bitField0_ |= 0x00010000;
}
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPreHookMessageList() {
return preHookMessage_.getUnmodifiableView();
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookMessageCount() {
return preHookMessage_.size();
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getPreHookMessage(int index) {
return preHookMessage_.get(index);
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPreHookMessageBytes(int index) {
return preHookMessage_.getByteString(index);
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPreHookMessage(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessageIsMutable();
preHookMessage_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPreHookMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessageIsMutable();
preHookMessage_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPreHookMessage(
java.lang.Iterable values) {
ensurePreHookMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessage_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPreHookMessage() {
preHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPreHookMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreHookMessageIsMutable();
preHookMessage_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList postHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePostHookMessageIsMutable() {
if (!((bitField0_ & 0x00020000) == 0x00020000)) {
postHookMessage_ = new com.google.protobuf.LazyStringArrayList(postHookMessage_);
bitField0_ |= 0x00020000;
}
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPostHookMessageList() {
return postHookMessage_.getUnmodifiableView();
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookMessageCount() {
return postHookMessage_.size();
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getPostHookMessage(int index) {
return postHookMessage_.get(index);
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPostHookMessageBytes(int index) {
return postHookMessage_.getByteString(index);
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPostHookMessage(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessageIsMutable();
postHookMessage_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPostHookMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessageIsMutable();
postHookMessage_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPostHookMessage(
java.lang.Iterable values) {
ensurePostHookMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessage_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPostHookMessage() {
postHookMessage_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPostHookMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePostHookMessageIsMutable();
postHookMessage_.add(value);
onChanged();
return this;
}
private java.util.List preHookScreenshots_ = java.util.Collections.emptyList();
private void ensurePreHookScreenshotsIsMutable() {
if (!((bitField0_ & 0x00040000) == 0x00040000)) {
preHookScreenshots_ = new java.util.ArrayList(preHookScreenshots_);
bitField0_ |= 0x00040000;
}
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPreHookScreenshotsList() {
return java.util.Collections.unmodifiableList(preHookScreenshots_);
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookScreenshotsCount() {
return preHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPreHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPreHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPreHookScreenshots(
java.lang.Iterable values) {
ensurePreHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshots_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPreHookScreenshots() {
preHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
return this;
}
private java.util.List postHookScreenshots_ = java.util.Collections.emptyList();
private void ensurePostHookScreenshotsIsMutable() {
if (!((bitField0_ & 0x00080000) == 0x00080000)) {
postHookScreenshots_ = new java.util.ArrayList(postHookScreenshots_);
bitField0_ |= 0x00080000;
}
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPostHookScreenshotsList() {
return java.util.Collections.unmodifiableList(postHookScreenshots_);
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookScreenshotsCount() {
return postHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPostHookScreenshots(int index) {
return postHookScreenshots_.get(index);
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPostHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPostHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPostHookScreenshots(
java.lang.Iterable values) {
ensurePostHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshots_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPostHookScreenshots() {
postHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePreHookScreenshotFilesIsMutable() {
if (!((bitField0_ & 0x00100000) == 0x00100000)) {
preHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList(preHookScreenshotFiles_);
bitField0_ |= 0x00100000;
}
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_.getUnmodifiableView();
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public java.lang.String getPreHookScreenshotFiles(int index) {
return preHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public Builder setPreHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public Builder addPreHookScreenshotFiles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public Builder addAllPreHookScreenshotFiles(
java.lang.Iterable values) {
ensurePreHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshotFiles_);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public Builder clearPreHookScreenshotFiles() {
preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
*/
public Builder addPreHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePostHookScreenshotFilesIsMutable() {
if (!((bitField0_ & 0x00200000) == 0x00200000)) {
postHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList(postHookScreenshotFiles_);
bitField0_ |= 0x00200000;
}
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_.getUnmodifiableView();
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public java.lang.String getPostHookScreenshotFiles(int index) {
return postHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index) {
return postHookScreenshotFiles_.getByteString(index);
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public Builder setPostHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public Builder addPostHookScreenshotFiles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public Builder addAllPostHookScreenshotFiles(
java.lang.Iterable values) {
ensurePostHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshotFiles_);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public Builder clearPostHookScreenshotFiles() {
postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00200000);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
*/
public Builder addPostHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
* int64 start = 1;
*/
long getStart();
/**
* int64 end = 2;
*/
long getEnd();
/**
* int64 startChar = 3;
*/
long getStartChar();
/**
* int64 endChar = 4;
*/
long getEndChar();
}
/**
*
*/ A proto object representing a Span of content
*
*
* 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 {
private static final long serialVersionUID = 0L;
// Use Span.newBuilder() to construct.
private Span(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Span() {
start_ = 0L;
end_ = 0L;
startChar_ = 0L;
endChar_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Span(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
start_ = input.readInt64();
break;
}
case 16: {
end_ = input.readInt64();
break;
}
case 24: {
startChar_ = input.readInt64();
break;
}
case 32: {
endChar_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_Span_descriptor;
}
@java.lang.Override
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_;
/**
* int64 start = 1;
*/
public long getStart() {
return start_;
}
public static final int END_FIELD_NUMBER = 2;
private long end_;
/**
* int64 end = 2;
*/
public long getEnd() {
return end_;
}
public static final int STARTCHAR_FIELD_NUMBER = 3;
private long startChar_;
/**
* int64 startChar = 3;
*/
public long getStartChar() {
return startChar_;
}
public static final int ENDCHAR_FIELD_NUMBER = 4;
private long endChar_;
/**
* int64 endChar = 4;
*/
public long getEndChar() {
return endChar_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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_);
}
if (startChar_ != 0L) {
output.writeInt64(3, startChar_);
}
if (endChar_ != 0L) {
output.writeInt64(4, endChar_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
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_);
}
if (startChar_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, startChar_);
}
if (endChar_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, endChar_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
result = result && (getStartChar()
== other.getStartChar());
result = result && (getEndChar()
== other.getEndChar());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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 = (37 * hash) + STARTCHAR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartChar());
hash = (37 * hash) + ENDCHAR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndChar());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.Span parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.Span parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing a Span of content
*
*
* Protobuf type {@code gauge.messages.Span}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
start_ = 0L;
end_ = 0L;
startChar_ = 0L;
endChar_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_Span_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.Span getDefaultInstanceForType() {
return gauge.messages.Spec.Span.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.Span build() {
gauge.messages.Spec.Span result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public gauge.messages.Spec.Span buildPartial() {
gauge.messages.Spec.Span result = new gauge.messages.Spec.Span(this);
result.start_ = start_;
result.end_ = end_;
result.startChar_ = startChar_;
result.endChar_ = endChar_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
if (other.getStartChar() != 0L) {
setStartChar(other.getStartChar());
}
if (other.getEndChar() != 0L) {
setEndChar(other.getEndChar());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_ ;
/**
* int64 start = 1;
*/
public long getStart() {
return start_;
}
/**
* int64 start = 1;
*/
public Builder setStart(long value) {
start_ = value;
onChanged();
return this;
}
/**
* int64 start = 1;
*/
public Builder clearStart() {
start_ = 0L;
onChanged();
return this;
}
private long end_ ;
/**
* int64 end = 2;
*/
public long getEnd() {
return end_;
}
/**
* int64 end = 2;
*/
public Builder setEnd(long value) {
end_ = value;
onChanged();
return this;
}
/**
* int64 end = 2;
*/
public Builder clearEnd() {
end_ = 0L;
onChanged();
return this;
}
private long startChar_ ;
/**
* int64 startChar = 3;
*/
public long getStartChar() {
return startChar_;
}
/**
* int64 startChar = 3;
*/
public Builder setStartChar(long value) {
startChar_ = value;
onChanged();
return this;
}
/**
* int64 startChar = 3;
*/
public Builder clearStartChar() {
startChar_ = 0L;
onChanged();
return this;
}
private long endChar_ ;
/**
* int64 endChar = 4;
*/
public long getEndChar() {
return endChar_;
}
/**
* int64 endChar = 4;
*/
public Builder setEndChar(long value) {
endChar_ = value;
onChanged();
return this;
}
/**
* int64 endChar = 4;
*/
public Builder clearEndChar() {
endChar_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
boolean hasScenario();
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
gauge.messages.Spec.ProtoScenario getScenario();
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder();
/**
*
*/ Row Index of data table against which the current scenario is executed
*
*
* int32 tableRowIndex = 2;
*/
int getTableRowIndex();
/**
*
*/ Row Index of scenario data table against which the current scenario is executed
*
*
* int32 scenarioTableRowIndex = 3;
*/
int getScenarioTableRowIndex();
/**
*
*/ Executed against a spec data table
*
*
* bool isSpecTableDriven = 4;
*/
boolean getIsSpecTableDriven();
/**
*
*/ Executed against a scenario data table
*
*
* bool isScenarioTableDriven = 5;
*/
boolean getIsScenarioTableDriven();
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
boolean hasScenarioDataTable();
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
gauge.messages.Spec.ProtoTable getScenarioDataTable();
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
gauge.messages.Spec.ProtoTableOrBuilder getScenarioDataTableOrBuilder();
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
boolean hasScenarioTableRow();
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
gauge.messages.Spec.ProtoTable getScenarioTableRow();
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
gauge.messages.Spec.ProtoTableOrBuilder getScenarioTableRowOrBuilder();
}
/**
*
*/ A proto object representing a TableDrivenScenario
*
*
* 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 {
private static final long serialVersionUID = 0L;
// Use ProtoTableDrivenScenario.newBuilder() to construct.
private ProtoTableDrivenScenario(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ProtoTableDrivenScenario() {
tableRowIndex_ = 0;
scenarioTableRowIndex_ = 0;
isSpecTableDriven_ = false;
isScenarioTableDriven_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoTableDrivenScenario(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
case 24: {
scenarioTableRowIndex_ = input.readInt32();
break;
}
case 32: {
isSpecTableDriven_ = input.readBool();
break;
}
case 40: {
isScenarioTableDriven_ = input.readBool();
break;
}
case 50: {
gauge.messages.Spec.ProtoTable.Builder subBuilder = null;
if (scenarioDataTable_ != null) {
subBuilder = scenarioDataTable_.toBuilder();
}
scenarioDataTable_ = input.readMessage(gauge.messages.Spec.ProtoTable.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scenarioDataTable_);
scenarioDataTable_ = subBuilder.buildPartial();
}
break;
}
case 58: {
gauge.messages.Spec.ProtoTable.Builder subBuilder = null;
if (scenarioTableRow_ != null) {
subBuilder = scenarioTableRow_.toBuilder();
}
scenarioTableRow_ = input.readMessage(gauge.messages.Spec.ProtoTable.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scenarioTableRow_);
scenarioTableRow_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableDrivenScenario_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
public boolean hasScenario() {
return scenario_ != null;
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
public gauge.messages.Spec.ProtoScenario getScenario() {
return scenario_ == null ? gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
public gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder() {
return getScenario();
}
public static final int TABLEROWINDEX_FIELD_NUMBER = 2;
private int tableRowIndex_;
/**
*
*/ Row Index of data table against which the current scenario is executed
*
*
* int32 tableRowIndex = 2;
*/
public int getTableRowIndex() {
return tableRowIndex_;
}
public static final int SCENARIOTABLEROWINDEX_FIELD_NUMBER = 3;
private int scenarioTableRowIndex_;
/**
*
*/ Row Index of scenario data table against which the current scenario is executed
*
*
* int32 scenarioTableRowIndex = 3;
*/
public int getScenarioTableRowIndex() {
return scenarioTableRowIndex_;
}
public static final int ISSPECTABLEDRIVEN_FIELD_NUMBER = 4;
private boolean isSpecTableDriven_;
/**
*
*/ Executed against a spec data table
*
*
* bool isSpecTableDriven = 4;
*/
public boolean getIsSpecTableDriven() {
return isSpecTableDriven_;
}
public static final int ISSCENARIOTABLEDRIVEN_FIELD_NUMBER = 5;
private boolean isScenarioTableDriven_;
/**
*
*/ Executed against a scenario data table
*
*
* bool isScenarioTableDriven = 5;
*/
public boolean getIsScenarioTableDriven() {
return isScenarioTableDriven_;
}
public static final int SCENARIODATATABLE_FIELD_NUMBER = 6;
private gauge.messages.Spec.ProtoTable scenarioDataTable_;
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public boolean hasScenarioDataTable() {
return scenarioDataTable_ != null;
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public gauge.messages.Spec.ProtoTable getScenarioDataTable() {
return scenarioDataTable_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : scenarioDataTable_;
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public gauge.messages.Spec.ProtoTableOrBuilder getScenarioDataTableOrBuilder() {
return getScenarioDataTable();
}
public static final int SCENARIOTABLEROW_FIELD_NUMBER = 7;
private gauge.messages.Spec.ProtoTable scenarioTableRow_;
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public boolean hasScenarioTableRow() {
return scenarioTableRow_ != null;
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public gauge.messages.Spec.ProtoTable getScenarioTableRow() {
return scenarioTableRow_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : scenarioTableRow_;
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public gauge.messages.Spec.ProtoTableOrBuilder getScenarioTableRowOrBuilder() {
return getScenarioTableRow();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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_);
}
if (scenarioTableRowIndex_ != 0) {
output.writeInt32(3, scenarioTableRowIndex_);
}
if (isSpecTableDriven_ != false) {
output.writeBool(4, isSpecTableDriven_);
}
if (isScenarioTableDriven_ != false) {
output.writeBool(5, isScenarioTableDriven_);
}
if (scenarioDataTable_ != null) {
output.writeMessage(6, getScenarioDataTable());
}
if (scenarioTableRow_ != null) {
output.writeMessage(7, getScenarioTableRow());
}
unknownFields.writeTo(output);
}
@java.lang.Override
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_);
}
if (scenarioTableRowIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, scenarioTableRowIndex_);
}
if (isSpecTableDriven_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isSpecTableDriven_);
}
if (isScenarioTableDriven_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, isScenarioTableDriven_);
}
if (scenarioDataTable_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getScenarioDataTable());
}
if (scenarioTableRow_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getScenarioTableRow());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
result = result && (getScenarioTableRowIndex()
== other.getScenarioTableRowIndex());
result = result && (getIsSpecTableDriven()
== other.getIsSpecTableDriven());
result = result && (getIsScenarioTableDriven()
== other.getIsScenarioTableDriven());
result = result && (hasScenarioDataTable() == other.hasScenarioDataTable());
if (hasScenarioDataTable()) {
result = result && getScenarioDataTable()
.equals(other.getScenarioDataTable());
}
result = result && (hasScenarioTableRow() == other.hasScenarioTableRow());
if (hasScenarioTableRow()) {
result = result && getScenarioTableRow()
.equals(other.getScenarioTableRow());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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 = (37 * hash) + SCENARIOTABLEROWINDEX_FIELD_NUMBER;
hash = (53 * hash) + getScenarioTableRowIndex();
hash = (37 * hash) + ISSPECTABLEDRIVEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsSpecTableDriven());
hash = (37 * hash) + ISSCENARIOTABLEDRIVEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsScenarioTableDriven());
if (hasScenarioDataTable()) {
hash = (37 * hash) + SCENARIODATATABLE_FIELD_NUMBER;
hash = (53 * hash) + getScenarioDataTable().hashCode();
}
if (hasScenarioTableRow()) {
hash = (37 * hash) + SCENARIOTABLEROW_FIELD_NUMBER;
hash = (53 * hash) + getScenarioTableRow().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTableDrivenScenario parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing a TableDrivenScenario
*
*
* Protobuf type {@code gauge.messages.ProtoTableDrivenScenario}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (scenarioBuilder_ == null) {
scenario_ = null;
} else {
scenario_ = null;
scenarioBuilder_ = null;
}
tableRowIndex_ = 0;
scenarioTableRowIndex_ = 0;
isSpecTableDriven_ = false;
isScenarioTableDriven_ = false;
if (scenarioDataTableBuilder_ == null) {
scenarioDataTable_ = null;
} else {
scenarioDataTable_ = null;
scenarioDataTableBuilder_ = null;
}
if (scenarioTableRowBuilder_ == null) {
scenarioTableRow_ = null;
} else {
scenarioTableRow_ = null;
scenarioTableRowBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableDrivenScenario_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoTableDrivenScenario getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoTableDrivenScenario.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoTableDrivenScenario build() {
gauge.messages.Spec.ProtoTableDrivenScenario result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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_;
result.scenarioTableRowIndex_ = scenarioTableRowIndex_;
result.isSpecTableDriven_ = isSpecTableDriven_;
result.isScenarioTableDriven_ = isScenarioTableDriven_;
if (scenarioDataTableBuilder_ == null) {
result.scenarioDataTable_ = scenarioDataTable_;
} else {
result.scenarioDataTable_ = scenarioDataTableBuilder_.build();
}
if (scenarioTableRowBuilder_ == null) {
result.scenarioTableRow_ = scenarioTableRow_;
} else {
result.scenarioTableRow_ = scenarioTableRowBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
if (other.getScenarioTableRowIndex() != 0) {
setScenarioTableRowIndex(other.getScenarioTableRowIndex());
}
if (other.getIsSpecTableDriven() != false) {
setIsSpecTableDriven(other.getIsSpecTableDriven());
}
if (other.getIsScenarioTableDriven() != false) {
setIsScenarioTableDriven(other.getIsScenarioTableDriven());
}
if (other.hasScenarioDataTable()) {
mergeScenarioDataTable(other.getScenarioDataTable());
}
if (other.hasScenarioTableRow()) {
mergeScenarioTableRow(other.getScenarioTableRow());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_;
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
public boolean hasScenario() {
return scenarioBuilder_ != null || scenario_ != null;
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
public gauge.messages.Spec.ProtoScenario getScenario() {
if (scenarioBuilder_ == null) {
return scenario_ == null ? gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
} else {
return scenarioBuilder_.getMessage();
}
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
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;
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
public Builder setScenario(
gauge.messages.Spec.ProtoScenario.Builder builderForValue) {
if (scenarioBuilder_ == null) {
scenario_ = builderForValue.build();
onChanged();
} else {
scenarioBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
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;
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
public Builder clearScenario() {
if (scenarioBuilder_ == null) {
scenario_ = null;
onChanged();
} else {
scenario_ = null;
scenarioBuilder_ = null;
}
return this;
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
public gauge.messages.Spec.ProtoScenario.Builder getScenarioBuilder() {
onChanged();
return getScenarioFieldBuilder().getBuilder();
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
public gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder() {
if (scenarioBuilder_ != null) {
return scenarioBuilder_.getMessageOrBuilder();
} else {
return scenario_ == null ?
gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
}
}
/**
*
*/ Scenario under Table driven execution
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
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_ ;
/**
*
*/ Row Index of data table against which the current scenario is executed
*
*
* int32 tableRowIndex = 2;
*/
public int getTableRowIndex() {
return tableRowIndex_;
}
/**
*
*/ Row Index of data table against which the current scenario is executed
*
*
* int32 tableRowIndex = 2;
*/
public Builder setTableRowIndex(int value) {
tableRowIndex_ = value;
onChanged();
return this;
}
/**
*
*/ Row Index of data table against which the current scenario is executed
*
*
* int32 tableRowIndex = 2;
*/
public Builder clearTableRowIndex() {
tableRowIndex_ = 0;
onChanged();
return this;
}
private int scenarioTableRowIndex_ ;
/**
*
*/ Row Index of scenario data table against which the current scenario is executed
*
*
* int32 scenarioTableRowIndex = 3;
*/
public int getScenarioTableRowIndex() {
return scenarioTableRowIndex_;
}
/**
*
*/ Row Index of scenario data table against which the current scenario is executed
*
*
* int32 scenarioTableRowIndex = 3;
*/
public Builder setScenarioTableRowIndex(int value) {
scenarioTableRowIndex_ = value;
onChanged();
return this;
}
/**
*
*/ Row Index of scenario data table against which the current scenario is executed
*
*
* int32 scenarioTableRowIndex = 3;
*/
public Builder clearScenarioTableRowIndex() {
scenarioTableRowIndex_ = 0;
onChanged();
return this;
}
private boolean isSpecTableDriven_ ;
/**
*
*/ Executed against a spec data table
*
*
* bool isSpecTableDriven = 4;
*/
public boolean getIsSpecTableDriven() {
return isSpecTableDriven_;
}
/**
*
*/ Executed against a spec data table
*
*
* bool isSpecTableDriven = 4;
*/
public Builder setIsSpecTableDriven(boolean value) {
isSpecTableDriven_ = value;
onChanged();
return this;
}
/**
*
*/ Executed against a spec data table
*
*
* bool isSpecTableDriven = 4;
*/
public Builder clearIsSpecTableDriven() {
isSpecTableDriven_ = false;
onChanged();
return this;
}
private boolean isScenarioTableDriven_ ;
/**
*
*/ Executed against a scenario data table
*
*
* bool isScenarioTableDriven = 5;
*/
public boolean getIsScenarioTableDriven() {
return isScenarioTableDriven_;
}
/**
*
*/ Executed against a scenario data table
*
*
* bool isScenarioTableDriven = 5;
*/
public Builder setIsScenarioTableDriven(boolean value) {
isScenarioTableDriven_ = value;
onChanged();
return this;
}
/**
*
*/ Executed against a scenario data table
*
*
* bool isScenarioTableDriven = 5;
*/
public Builder clearIsScenarioTableDriven() {
isScenarioTableDriven_ = false;
onChanged();
return this;
}
private gauge.messages.Spec.ProtoTable scenarioDataTable_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder> scenarioDataTableBuilder_;
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public boolean hasScenarioDataTable() {
return scenarioDataTableBuilder_ != null || scenarioDataTable_ != null;
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public gauge.messages.Spec.ProtoTable getScenarioDataTable() {
if (scenarioDataTableBuilder_ == null) {
return scenarioDataTable_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : scenarioDataTable_;
} else {
return scenarioDataTableBuilder_.getMessage();
}
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public Builder setScenarioDataTable(gauge.messages.Spec.ProtoTable value) {
if (scenarioDataTableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scenarioDataTable_ = value;
onChanged();
} else {
scenarioDataTableBuilder_.setMessage(value);
}
return this;
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public Builder setScenarioDataTable(
gauge.messages.Spec.ProtoTable.Builder builderForValue) {
if (scenarioDataTableBuilder_ == null) {
scenarioDataTable_ = builderForValue.build();
onChanged();
} else {
scenarioDataTableBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public Builder mergeScenarioDataTable(gauge.messages.Spec.ProtoTable value) {
if (scenarioDataTableBuilder_ == null) {
if (scenarioDataTable_ != null) {
scenarioDataTable_ =
gauge.messages.Spec.ProtoTable.newBuilder(scenarioDataTable_).mergeFrom(value).buildPartial();
} else {
scenarioDataTable_ = value;
}
onChanged();
} else {
scenarioDataTableBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public Builder clearScenarioDataTable() {
if (scenarioDataTableBuilder_ == null) {
scenarioDataTable_ = null;
onChanged();
} else {
scenarioDataTable_ = null;
scenarioDataTableBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public gauge.messages.Spec.ProtoTable.Builder getScenarioDataTableBuilder() {
onChanged();
return getScenarioDataTableFieldBuilder().getBuilder();
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
public gauge.messages.Spec.ProtoTableOrBuilder getScenarioDataTableOrBuilder() {
if (scenarioDataTableBuilder_ != null) {
return scenarioDataTableBuilder_.getMessageOrBuilder();
} else {
return scenarioDataTable_ == null ?
gauge.messages.Spec.ProtoTable.getDefaultInstance() : scenarioDataTable_;
}
}
/**
*
*/ Holds the scenario data table
*
*
* .gauge.messages.ProtoTable scenarioDataTable = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder>
getScenarioDataTableFieldBuilder() {
if (scenarioDataTableBuilder_ == null) {
scenarioDataTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder>(
getScenarioDataTable(),
getParentForChildren(),
isClean());
scenarioDataTable_ = null;
}
return scenarioDataTableBuilder_;
}
private gauge.messages.Spec.ProtoTable scenarioTableRow_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder> scenarioTableRowBuilder_;
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public boolean hasScenarioTableRow() {
return scenarioTableRowBuilder_ != null || scenarioTableRow_ != null;
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public gauge.messages.Spec.ProtoTable getScenarioTableRow() {
if (scenarioTableRowBuilder_ == null) {
return scenarioTableRow_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : scenarioTableRow_;
} else {
return scenarioTableRowBuilder_.getMessage();
}
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public Builder setScenarioTableRow(gauge.messages.Spec.ProtoTable value) {
if (scenarioTableRowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scenarioTableRow_ = value;
onChanged();
} else {
scenarioTableRowBuilder_.setMessage(value);
}
return this;
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public Builder setScenarioTableRow(
gauge.messages.Spec.ProtoTable.Builder builderForValue) {
if (scenarioTableRowBuilder_ == null) {
scenarioTableRow_ = builderForValue.build();
onChanged();
} else {
scenarioTableRowBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public Builder mergeScenarioTableRow(gauge.messages.Spec.ProtoTable value) {
if (scenarioTableRowBuilder_ == null) {
if (scenarioTableRow_ != null) {
scenarioTableRow_ =
gauge.messages.Spec.ProtoTable.newBuilder(scenarioTableRow_).mergeFrom(value).buildPartial();
} else {
scenarioTableRow_ = value;
}
onChanged();
} else {
scenarioTableRowBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public Builder clearScenarioTableRow() {
if (scenarioTableRowBuilder_ == null) {
scenarioTableRow_ = null;
onChanged();
} else {
scenarioTableRow_ = null;
scenarioTableRowBuilder_ = null;
}
return this;
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public gauge.messages.Spec.ProtoTable.Builder getScenarioTableRowBuilder() {
onChanged();
return getScenarioTableRowFieldBuilder().getBuilder();
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
public gauge.messages.Spec.ProtoTableOrBuilder getScenarioTableRowOrBuilder() {
if (scenarioTableRowBuilder_ != null) {
return scenarioTableRowBuilder_.getMessageOrBuilder();
} else {
return scenarioTableRow_ == null ?
gauge.messages.Spec.ProtoTable.getDefaultInstance() : scenarioTableRow_;
}
}
/**
*
*/ Hold the row of scenario data table.
*
*
* .gauge.messages.ProtoTable scenarioTableRow = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder>
getScenarioTableRowFieldBuilder() {
if (scenarioTableRowBuilder_ == null) {
scenarioTableRowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
gauge.messages.Spec.ProtoTable, gauge.messages.Spec.ProtoTable.Builder, gauge.messages.Spec.ProtoTableOrBuilder>(
getScenarioTableRow(),
getParentForChildren(),
isClean());
scenarioTableRow_ = null;
}
return scenarioTableRowBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
*
*
* string actualText = 1;
*/
java.lang.String getActualText();
/**
*
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
*
*
* string actualText = 1;
*/
com.google.protobuf.ByteString
getActualTextBytes();
/**
*
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
*
*
* string parsedText = 2;
*/
java.lang.String getParsedText();
/**
*
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
*
*
* string parsedText = 2;
*/
com.google.protobuf.ByteString
getParsedTextBytes();
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
java.util.List
getFragmentsList();
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
gauge.messages.Spec.Fragment getFragments(int index);
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
int getFragmentsCount();
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
java.util.List
getFragmentsOrBuilderList();
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
gauge.messages.Spec.FragmentOrBuilder getFragmentsOrBuilder(
int index);
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
boolean hasStepExecutionResult();
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
gauge.messages.Spec.ProtoStepExecutionResult getStepExecutionResult();
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getStepExecutionResultOrBuilder();
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
java.util.List
getPreHookMessagesList();
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
int getPreHookMessagesCount();
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
java.lang.String getPreHookMessages(int index);
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
com.google.protobuf.ByteString
getPreHookMessagesBytes(int index);
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
java.util.List
getPostHookMessagesList();
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
int getPostHookMessagesCount();
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
java.lang.String getPostHookMessages(int index);
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
com.google.protobuf.ByteString
getPostHookMessagesBytes(int index);
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated java.util.List getPreHookScreenshotsList();
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated int getPreHookScreenshotsCount();
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString getPreHookScreenshots(int index);
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated java.util.List getPostHookScreenshotsList();
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated int getPostHookScreenshotsCount();
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString getPostHookScreenshots(int index);
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
java.util.List
getPreHookScreenshotFilesList();
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
int getPreHookScreenshotFilesCount();
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
java.lang.String getPreHookScreenshotFiles(int index);
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index);
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
java.util.List
getPostHookScreenshotFilesList();
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
int getPostHookScreenshotFilesCount();
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
java.lang.String getPostHookScreenshotFiles(int index);
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index);
}
/**
*
*/ A proto object representing a Step
*
*
* 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 {
private static final long serialVersionUID = 0L;
// Use ProtoStep.newBuilder() to construct.
private ProtoStep(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ProtoStep() {
actualText_ = "";
parsedText_ = "";
fragments_ = java.util.Collections.emptyList();
preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
preHookScreenshots_ = java.util.Collections.emptyList();
postHookScreenshots_ = java.util.Collections.emptyList();
preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoStep(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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();
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;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
preHookMessages_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
preHookMessages_.add(s);
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
postHookMessages_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
postHookMessages_.add(s);
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
preHookScreenshots_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
preHookScreenshots_.add(input.readBytes());
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
postHookScreenshots_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
postHookScreenshots_.add(input.readBytes());
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
preHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000100;
}
preHookScreenshotFiles_.add(s);
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
postHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
postHookScreenshotFiles_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
preHookMessages_ = preHookMessages_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
postHookMessages_ = postHookMessages_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
preHookScreenshots_ = java.util.Collections.unmodifiableList(preHookScreenshots_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
postHookScreenshots_ = java.util.Collections.unmodifiableList(postHookScreenshots_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
preHookScreenshotFiles_ = preHookScreenshotFiles_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
postHookScreenshotFiles_ = postHookScreenshotFiles_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStep_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
*
*
* string actualText = 1;
*/
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;
}
}
/**
*
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
*
*
* string actualText = 1;
*/
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_;
/**
*
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
*
*
* string parsedText = 2;
*/
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;
}
}
/**
*
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
*
*
* string parsedText = 2;
*/
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 fragments_;
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public java.util.List getFragmentsList() {
return fragments_;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public java.util.List
getFragmentsOrBuilderList() {
return fragments_;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public int getFragmentsCount() {
return fragments_.size();
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public gauge.messages.Spec.Fragment getFragments(int index) {
return fragments_.get(index);
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
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_;
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
public boolean hasStepExecutionResult() {
return stepExecutionResult_ != null;
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
public gauge.messages.Spec.ProtoStepExecutionResult getStepExecutionResult() {
return stepExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : stepExecutionResult_;
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getStepExecutionResultOrBuilder() {
return getStepExecutionResult();
}
public static final int PREHOOKMESSAGES_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList preHookMessages_;
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public java.lang.String getPreHookMessages(int index) {
return preHookMessages_.get(index);
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
public static final int POSTHOOKMESSAGES_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList postHookMessages_;
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public java.lang.String getPostHookMessages(int index) {
return postHookMessages_.get(index);
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
public static final int PREHOOKSCREENSHOTS_FIELD_NUMBER = 7;
private java.util.List preHookScreenshots_;
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPreHookScreenshotsList() {
return preHookScreenshots_;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookScreenshotsCount() {
return preHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
public static final int POSTHOOKSCREENSHOTS_FIELD_NUMBER = 8;
private java.util.List postHookScreenshots_;
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPostHookScreenshotsList() {
return postHookScreenshots_;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookScreenshotsCount() {
return postHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPostHookScreenshots(int index) {
return postHookScreenshots_.get(index);
}
public static final int PREHOOKSCREENSHOTFILES_FIELD_NUMBER = 9;
private com.google.protobuf.LazyStringList preHookScreenshotFiles_;
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public java.lang.String getPreHookScreenshotFiles(int index) {
return preHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
public static final int POSTHOOKSCREENSHOTFILES_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList postHookScreenshotFiles_;
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public java.lang.String getPostHookScreenshotFiles(int index) {
return postHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index) {
return postHookScreenshotFiles_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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());
}
for (int i = 0; i < preHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, preHookMessages_.getRaw(i));
}
for (int i = 0; i < postHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, postHookMessages_.getRaw(i));
}
for (int i = 0; i < preHookScreenshots_.size(); i++) {
output.writeBytes(7, preHookScreenshots_.get(i));
}
for (int i = 0; i < postHookScreenshots_.size(); i++) {
output.writeBytes(8, postHookScreenshots_.get(i));
}
for (int i = 0; i < preHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, preHookScreenshotFiles_.getRaw(i));
}
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, postHookScreenshotFiles_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
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());
}
{
int dataSize = 0;
for (int i = 0; i < preHookMessages_.size(); i++) {
dataSize += computeStringSizeNoTag(preHookMessages_.getRaw(i));
}
size += dataSize;
size += 1 * getPreHookMessagesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookMessages_.size(); i++) {
dataSize += computeStringSizeNoTag(postHookMessages_.getRaw(i));
}
size += dataSize;
size += 1 * getPostHookMessagesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < preHookScreenshots_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(preHookScreenshots_.get(i));
}
size += dataSize;
size += 1 * getPreHookScreenshotsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookScreenshots_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(postHookScreenshots_.get(i));
}
size += dataSize;
size += 1 * getPostHookScreenshotsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < preHookScreenshotFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(preHookScreenshotFiles_.getRaw(i));
}
size += dataSize;
size += 1 * getPreHookScreenshotFilesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(postHookScreenshotFiles_.getRaw(i));
}
size += dataSize;
size += 1 * getPostHookScreenshotFilesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
}
result = result && getPreHookMessagesList()
.equals(other.getPreHookMessagesList());
result = result && getPostHookMessagesList()
.equals(other.getPostHookMessagesList());
result = result && getPreHookScreenshotsList()
.equals(other.getPreHookScreenshotsList());
result = result && getPostHookScreenshotsList()
.equals(other.getPostHookScreenshotsList());
result = result && getPreHookScreenshotFilesList()
.equals(other.getPreHookScreenshotFilesList());
result = result && getPostHookScreenshotFilesList()
.equals(other.getPostHookScreenshotFilesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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();
}
if (getPreHookMessagesCount() > 0) {
hash = (37 * hash) + PREHOOKMESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getPreHookMessagesList().hashCode();
}
if (getPostHookMessagesCount() > 0) {
hash = (37 * hash) + POSTHOOKMESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getPostHookMessagesList().hashCode();
}
if (getPreHookScreenshotsCount() > 0) {
hash = (37 * hash) + PREHOOKSCREENSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getPreHookScreenshotsList().hashCode();
}
if (getPostHookScreenshotsCount() > 0) {
hash = (37 * hash) + POSTHOOKSCREENSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getPostHookScreenshotsList().hashCode();
}
if (getPreHookScreenshotFilesCount() > 0) {
hash = (37 * hash) + PREHOOKSCREENSHOTFILES_FIELD_NUMBER;
hash = (53 * hash) + getPreHookScreenshotFilesList().hashCode();
}
if (getPostHookScreenshotFilesCount() > 0) {
hash = (37 * hash) + POSTHOOKSCREENSHOTFILES_FIELD_NUMBER;
hash = (53 * hash) + getPostHookScreenshotFilesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoStep parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoStep parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing a Step
*
*
* Protobuf type {@code gauge.messages.ProtoStep}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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();
}
}
@java.lang.Override
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;
}
preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
preHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
postHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStep_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoStep getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoStep.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoStep build() {
gauge.messages.Spec.ProtoStep result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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();
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
preHookMessages_ = preHookMessages_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.preHookMessages_ = preHookMessages_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
postHookMessages_ = postHookMessages_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.postHookMessages_ = postHookMessages_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
preHookScreenshots_ = java.util.Collections.unmodifiableList(preHookScreenshots_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.preHookScreenshots_ = preHookScreenshots_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
postHookScreenshots_ = java.util.Collections.unmodifiableList(postHookScreenshots_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.postHookScreenshots_ = postHookScreenshots_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
preHookScreenshotFiles_ = preHookScreenshotFiles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000100);
}
result.preHookScreenshotFiles_ = preHookScreenshotFiles_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
postHookScreenshotFiles_ = postHookScreenshotFiles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000200);
}
result.postHookScreenshotFiles_ = postHookScreenshotFiles_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
if (!other.preHookMessages_.isEmpty()) {
if (preHookMessages_.isEmpty()) {
preHookMessages_ = other.preHookMessages_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensurePreHookMessagesIsMutable();
preHookMessages_.addAll(other.preHookMessages_);
}
onChanged();
}
if (!other.postHookMessages_.isEmpty()) {
if (postHookMessages_.isEmpty()) {
postHookMessages_ = other.postHookMessages_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensurePostHookMessagesIsMutable();
postHookMessages_.addAll(other.postHookMessages_);
}
onChanged();
}
if (!other.preHookScreenshots_.isEmpty()) {
if (preHookScreenshots_.isEmpty()) {
preHookScreenshots_ = other.preHookScreenshots_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.addAll(other.preHookScreenshots_);
}
onChanged();
}
if (!other.postHookScreenshots_.isEmpty()) {
if (postHookScreenshots_.isEmpty()) {
postHookScreenshots_ = other.postHookScreenshots_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.addAll(other.postHookScreenshots_);
}
onChanged();
}
if (!other.preHookScreenshotFiles_.isEmpty()) {
if (preHookScreenshotFiles_.isEmpty()) {
preHookScreenshotFiles_ = other.preHookScreenshotFiles_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.addAll(other.preHookScreenshotFiles_);
}
onChanged();
}
if (!other.postHookScreenshotFiles_.isEmpty()) {
if (postHookScreenshotFiles_.isEmpty()) {
postHookScreenshotFiles_ = other.postHookScreenshotFiles_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.addAll(other.postHookScreenshotFiles_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_ = "";
/**
*
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
*
*
* string actualText = 1;
*/
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;
}
}
/**
*
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
*
*
* string actualText = 1;
*/
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;
}
}
/**
*
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
*
*
* string actualText = 1;
*/
public Builder setActualText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
actualText_ = value;
onChanged();
return this;
}
/**
*
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
*
*
* string actualText = 1;
*/
public Builder clearActualText() {
actualText_ = getDefaultInstance().getActualText();
onChanged();
return this;
}
/**
*
*/ Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values.
*
*
* string actualText = 1;
*/
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_ = "";
/**
*
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
*
*
* string parsedText = 2;
*/
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;
}
}
/**
*
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
*
*
* string parsedText = 2;
*/
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;
}
}
/**
*
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
*
*
* string parsedText = 2;
*/
public Builder setParsedText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
parsedText_ = value;
onChanged();
return this;
}
/**
*
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
*
*
* string parsedText = 2;
*/
public Builder clearParsedText() {
parsedText_ = getDefaultInstance().getParsedText();
onChanged();
return this;
}
/**
*
*/ Contains the parsed text of the Step. This will have placeholders for the parameters.
*
*
* string parsedText = 2;
*/
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 fragments_ =
java.util.Collections.emptyList();
private void ensureFragmentsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
fragments_ = new java.util.ArrayList(fragments_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.Fragment, gauge.messages.Spec.Fragment.Builder, gauge.messages.Spec.FragmentOrBuilder> fragmentsBuilder_;
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public java.util.List getFragmentsList() {
if (fragmentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fragments_);
} else {
return fragmentsBuilder_.getMessageList();
}
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public int getFragmentsCount() {
if (fragmentsBuilder_ == null) {
return fragments_.size();
} else {
return fragmentsBuilder_.getCount();
}
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public gauge.messages.Spec.Fragment getFragments(int index) {
if (fragmentsBuilder_ == null) {
return fragments_.get(index);
} else {
return fragmentsBuilder_.getMessage(index);
}
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
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;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
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;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
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;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
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;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
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;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
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;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public Builder addAllFragments(
java.lang.Iterable values) {
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fragments_);
onChanged();
} else {
fragmentsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public Builder clearFragments() {
if (fragmentsBuilder_ == null) {
fragments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
fragmentsBuilder_.clear();
}
return this;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public Builder removeFragments(int index) {
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
fragments_.remove(index);
onChanged();
} else {
fragmentsBuilder_.remove(index);
}
return this;
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public gauge.messages.Spec.Fragment.Builder getFragmentsBuilder(
int index) {
return getFragmentsFieldBuilder().getBuilder(index);
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public gauge.messages.Spec.FragmentOrBuilder getFragmentsOrBuilder(
int index) {
if (fragmentsBuilder_ == null) {
return fragments_.get(index); } else {
return fragmentsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public java.util.List
getFragmentsOrBuilderList() {
if (fragmentsBuilder_ != null) {
return fragmentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fragments_);
}
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public gauge.messages.Spec.Fragment.Builder addFragmentsBuilder() {
return getFragmentsFieldBuilder().addBuilder(
gauge.messages.Spec.Fragment.getDefaultInstance());
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public gauge.messages.Spec.Fragment.Builder addFragmentsBuilder(
int index) {
return getFragmentsFieldBuilder().addBuilder(
index, gauge.messages.Spec.Fragment.getDefaultInstance());
}
/**
*
*/ Collection of a list of fragments for a Step. A fragment could be either text or parameter.
*
*
* repeated .gauge.messages.Fragment fragments = 3;
*/
public java.util.List
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_;
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
public boolean hasStepExecutionResult() {
return stepExecutionResultBuilder_ != null || stepExecutionResult_ != null;
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
public gauge.messages.Spec.ProtoStepExecutionResult getStepExecutionResult() {
if (stepExecutionResultBuilder_ == null) {
return stepExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : stepExecutionResult_;
} else {
return stepExecutionResultBuilder_.getMessage();
}
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
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;
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
public Builder setStepExecutionResult(
gauge.messages.Spec.ProtoStepExecutionResult.Builder builderForValue) {
if (stepExecutionResultBuilder_ == null) {
stepExecutionResult_ = builderForValue.build();
onChanged();
} else {
stepExecutionResultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
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;
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
public Builder clearStepExecutionResult() {
if (stepExecutionResultBuilder_ == null) {
stepExecutionResult_ = null;
onChanged();
} else {
stepExecutionResult_ = null;
stepExecutionResultBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
public gauge.messages.Spec.ProtoStepExecutionResult.Builder getStepExecutionResultBuilder() {
onChanged();
return getStepExecutionResultFieldBuilder().getBuilder();
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getStepExecutionResultOrBuilder() {
if (stepExecutionResultBuilder_ != null) {
return stepExecutionResultBuilder_.getMessageOrBuilder();
} else {
return stepExecutionResult_ == null ?
gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : stepExecutionResult_;
}
}
/**
*
*/ Holds the result from the execution.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
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_;
}
private com.google.protobuf.LazyStringList preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePreHookMessagesIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
preHookMessages_ = new com.google.protobuf.LazyStringArrayList(preHookMessages_);
bitField0_ |= 0x00000010;
}
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_.getUnmodifiableView();
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public java.lang.String getPreHookMessages(int index) {
return preHookMessages_.get(index);
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public Builder setPreHookMessages(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessagesIsMutable();
preHookMessages_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public Builder addPreHookMessages(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public Builder addAllPreHookMessages(
java.lang.Iterable values) {
ensurePreHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessages_);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public Builder clearPreHookMessages() {
preHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*/ Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
*/
public Builder addPreHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePostHookMessagesIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
postHookMessages_ = new com.google.protobuf.LazyStringArrayList(postHookMessages_);
bitField0_ |= 0x00000020;
}
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_.getUnmodifiableView();
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public java.lang.String getPostHookMessages(int index) {
return postHookMessages_.get(index);
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public Builder setPostHookMessages(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessagesIsMutable();
postHookMessages_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public Builder addPostHookMessages(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public Builder addAllPostHookMessages(
java.lang.Iterable values) {
ensurePostHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessages_);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public Builder clearPostHookMessages() {
postHookMessages_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*/ Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
*/
public Builder addPostHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
onChanged();
return this;
}
private java.util.List preHookScreenshots_ = java.util.Collections.emptyList();
private void ensurePreHookScreenshotsIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
preHookScreenshots_ = new java.util.ArrayList(preHookScreenshots_);
bitField0_ |= 0x00000040;
}
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPreHookScreenshotsList() {
return java.util.Collections.unmodifiableList(preHookScreenshots_);
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public int getPreHookScreenshotsCount() {
return preHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPreHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPreHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPreHookScreenshots(
java.lang.Iterable values) {
ensurePreHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshots_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPreHookScreenshots() {
preHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
private java.util.List postHookScreenshots_ = java.util.Collections.emptyList();
private void ensurePostHookScreenshotsIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
postHookScreenshots_ = new java.util.ArrayList(postHookScreenshots_);
bitField0_ |= 0x00000080;
}
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getPostHookScreenshotsList() {
return java.util.Collections.unmodifiableList(postHookScreenshots_);
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public int getPostHookScreenshotsCount() {
return postHookScreenshots_.size();
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPostHookScreenshots(int index) {
return postHookScreenshots_.get(index);
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder setPostHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder addPostHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllPostHookScreenshots(
java.lang.Iterable values) {
ensurePostHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshots_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPostHookScreenshots() {
postHookScreenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePreHookScreenshotFilesIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
preHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList(preHookScreenshotFiles_);
bitField0_ |= 0x00000100;
}
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_.getUnmodifiableView();
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public java.lang.String getPreHookScreenshotFiles(int index) {
return preHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public Builder setPreHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public Builder addPreHookScreenshotFiles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public Builder addAllPreHookScreenshotFiles(
java.lang.Iterable values) {
ensurePreHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshotFiles_);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public Builder clearPreHookScreenshotFiles() {
preHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
*/
public Builder addPreHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePostHookScreenshotFilesIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
postHookScreenshotFiles_ = new com.google.protobuf.LazyStringArrayList(postHookScreenshotFiles_);
bitField0_ |= 0x00000200;
}
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_.getUnmodifiableView();
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public java.lang.String getPostHookScreenshotFiles(int index) {
return postHookScreenshotFiles_.get(index);
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index) {
return postHookScreenshotFiles_.getByteString(index);
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public Builder setPostHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public Builder addPostHookScreenshotFiles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public Builder addAllPostHookScreenshotFiles(
java.lang.Iterable values) {
ensurePostHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshotFiles_);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public Builder clearPostHookScreenshotFiles() {
postHookScreenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*/ Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
*/
public Builder addPostHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
boolean hasConceptStep();
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
gauge.messages.Spec.ProtoStep getConceptStep();
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
gauge.messages.Spec.ProtoStepOrBuilder getConceptStepOrBuilder();
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
java.util.List
getStepsList();
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
gauge.messages.Spec.ProtoItem getSteps(int index);
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
int getStepsCount();
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
java.util.List
getStepsOrBuilderList();
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
gauge.messages.Spec.ProtoItemOrBuilder getStepsOrBuilder(
int index);
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
boolean hasConceptExecutionResult();
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
gauge.messages.Spec.ProtoStepExecutionResult getConceptExecutionResult();
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getConceptExecutionResultOrBuilder();
}
/**
*
*/ 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
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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 this.unknownFields;
}
private ProtoConcept(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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();
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;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoConcept_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
public boolean hasConceptStep() {
return conceptStep_ != null;
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
public gauge.messages.Spec.ProtoStep getConceptStep() {
return conceptStep_ == null ? gauge.messages.Spec.ProtoStep.getDefaultInstance() : conceptStep_;
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
public gauge.messages.Spec.ProtoStepOrBuilder getConceptStepOrBuilder() {
return getConceptStep();
}
public static final int STEPS_FIELD_NUMBER = 2;
private java.util.List steps_;
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public java.util.List getStepsList() {
return steps_;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public java.util.List
getStepsOrBuilderList() {
return steps_;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public int getStepsCount() {
return steps_.size();
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public gauge.messages.Spec.ProtoItem getSteps(int index) {
return steps_.get(index);
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
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_;
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
public boolean hasConceptExecutionResult() {
return conceptExecutionResult_ != null;
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
public gauge.messages.Spec.ProtoStepExecutionResult getConceptExecutionResult() {
return conceptExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : conceptExecutionResult_;
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getConceptExecutionResultOrBuilder() {
return getConceptExecutionResult();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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());
}
unknownFields.writeTo(output);
}
@java.lang.Override
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());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoConcept parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ 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
*
*
* Protobuf type {@code gauge.messages.ProtoConcept}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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();
}
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoConcept_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoConcept getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoConcept.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoConcept build() {
gauge.messages.Spec.ProtoConcept result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_;
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
public boolean hasConceptStep() {
return conceptStepBuilder_ != null || conceptStep_ != null;
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
public gauge.messages.Spec.ProtoStep getConceptStep() {
if (conceptStepBuilder_ == null) {
return conceptStep_ == null ? gauge.messages.Spec.ProtoStep.getDefaultInstance() : conceptStep_;
} else {
return conceptStepBuilder_.getMessage();
}
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
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;
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
public Builder setConceptStep(
gauge.messages.Spec.ProtoStep.Builder builderForValue) {
if (conceptStepBuilder_ == null) {
conceptStep_ = builderForValue.build();
onChanged();
} else {
conceptStepBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
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;
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
public Builder clearConceptStep() {
if (conceptStepBuilder_ == null) {
conceptStep_ = null;
onChanged();
} else {
conceptStep_ = null;
conceptStepBuilder_ = null;
}
return this;
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
public gauge.messages.Spec.ProtoStep.Builder getConceptStepBuilder() {
onChanged();
return getConceptStepFieldBuilder().getBuilder();
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
public gauge.messages.Spec.ProtoStepOrBuilder getConceptStepOrBuilder() {
if (conceptStepBuilder_ != null) {
return conceptStepBuilder_.getMessageOrBuilder();
} else {
return conceptStep_ == null ?
gauge.messages.Spec.ProtoStep.getDefaultInstance() : conceptStep_;
}
}
/**
*
*/ Represents the Step value of a Concept.
*
*
* .gauge.messages.ProtoStep conceptStep = 1;
*/
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 steps_ =
java.util.Collections.emptyList();
private void ensureStepsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
steps_ = new java.util.ArrayList(steps_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoItem, gauge.messages.Spec.ProtoItem.Builder, gauge.messages.Spec.ProtoItemOrBuilder> stepsBuilder_;
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public java.util.List getStepsList() {
if (stepsBuilder_ == null) {
return java.util.Collections.unmodifiableList(steps_);
} else {
return stepsBuilder_.getMessageList();
}
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public int getStepsCount() {
if (stepsBuilder_ == null) {
return steps_.size();
} else {
return stepsBuilder_.getCount();
}
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public gauge.messages.Spec.ProtoItem getSteps(int index) {
if (stepsBuilder_ == null) {
return steps_.get(index);
} else {
return stepsBuilder_.getMessage(index);
}
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
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;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
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;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
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;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
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;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
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;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
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;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public Builder addAllSteps(
java.lang.Iterable values) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, steps_);
onChanged();
} else {
stepsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public Builder clearSteps() {
if (stepsBuilder_ == null) {
steps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
stepsBuilder_.clear();
}
return this;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public Builder removeSteps(int index) {
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.remove(index);
onChanged();
} else {
stepsBuilder_.remove(index);
}
return this;
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public gauge.messages.Spec.ProtoItem.Builder getStepsBuilder(
int index) {
return getStepsFieldBuilder().getBuilder(index);
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public gauge.messages.Spec.ProtoItemOrBuilder getStepsOrBuilder(
int index) {
if (stepsBuilder_ == null) {
return steps_.get(index); } else {
return stepsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public java.util.List
getStepsOrBuilderList() {
if (stepsBuilder_ != null) {
return stepsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(steps_);
}
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public gauge.messages.Spec.ProtoItem.Builder addStepsBuilder() {
return getStepsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public gauge.messages.Spec.ProtoItem.Builder addStepsBuilder(
int index) {
return getStepsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoItem.getDefaultInstance());
}
/**
*
*/ Collection of Steps in the given concepts.
*
*
* repeated .gauge.messages.ProtoItem steps = 2;
*/
public java.util.List
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_;
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
public boolean hasConceptExecutionResult() {
return conceptExecutionResultBuilder_ != null || conceptExecutionResult_ != null;
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
public gauge.messages.Spec.ProtoStepExecutionResult getConceptExecutionResult() {
if (conceptExecutionResultBuilder_ == null) {
return conceptExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : conceptExecutionResult_;
} else {
return conceptExecutionResultBuilder_.getMessage();
}
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
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;
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
public Builder setConceptExecutionResult(
gauge.messages.Spec.ProtoStepExecutionResult.Builder builderForValue) {
if (conceptExecutionResultBuilder_ == null) {
conceptExecutionResult_ = builderForValue.build();
onChanged();
} else {
conceptExecutionResultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
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;
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
public Builder clearConceptExecutionResult() {
if (conceptExecutionResultBuilder_ == null) {
conceptExecutionResult_ = null;
onChanged();
} else {
conceptExecutionResult_ = null;
conceptExecutionResultBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
public gauge.messages.Spec.ProtoStepExecutionResult.Builder getConceptExecutionResultBuilder() {
onChanged();
return getConceptExecutionResultFieldBuilder().getBuilder();
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getConceptExecutionResultOrBuilder() {
if (conceptExecutionResultBuilder_ != null) {
return conceptExecutionResultBuilder_.getMessageOrBuilder();
} else {
return conceptExecutionResult_ == null ?
gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : conceptExecutionResult_;
}
}
/**
*
*/ Holds the execution result.
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
java.util.List
getTagsList();
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
int getTagsCount();
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
java.lang.String getTags(int index);
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
com.google.protobuf.ByteString
getTagsBytes(int index);
}
/**
*
*/ A proto object representing Tags
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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 this.unknownFields;
}
private ProtoTags(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTags_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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));
}
unknownFields.writeTo(output);
}
@java.lang.Override
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();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTags parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing Tags
*
*
* Protobuf type {@code gauge.messages.ProtoTags}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTags_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoTags getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoTags.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoTags build() {
gauge.messages.Spec.ProtoTags result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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;
}
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*/ A collection of Tags
*
*
* repeated string tags = 1;
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
*/
int getFragmentTypeValue();
/**
*
*/ Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
*/
gauge.messages.Spec.Fragment.FragmentType getFragmentType();
/**
*
*/ Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
*/
java.lang.String getText();
/**
*
*/ Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
*/
com.google.protobuf.ByteString
getTextBytes();
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
boolean hasParameter();
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
gauge.messages.Spec.Parameter getParameter();
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
gauge.messages.Spec.ParameterOrBuilder getParameterOrBuilder();
}
/**
*
*/ A proto object representing Fragment.
* / Fragments, put together make up A Step
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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 this.unknownFields;
}
private Fragment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_Fragment_descriptor;
}
@java.lang.Override
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);
}
/**
*
*/ Enum representing the types of Fragment
*
*
* Protobuf enum {@code gauge.messages.Fragment.FragmentType}
*/
public enum FragmentType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*/ Fragment is a Text part
*
*
* Text = 0;
*/
Text(0),
/**
*
*/ Fragment is a Parameter part
*
*
* Parameter = 1;
*/
Parameter(1),
UNRECOGNIZED(-1),
;
/**
*
*/ Fragment is a Text part
*
*
* Text = 0;
*/
public static final int Text_VALUE = 0;
/**
*
*/ Fragment is a Parameter part
*
*
* Parameter = 1;
*/
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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FragmentType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
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_;
/**
*
*/ Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
*/
public int getFragmentTypeValue() {
return fragmentType_;
}
/**
*
*/ Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
*/
public gauge.messages.Spec.Fragment.FragmentType getFragmentType() {
@SuppressWarnings("deprecation")
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_;
/**
*
*/ Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
*/
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;
}
}
/**
*
*/ Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
*/
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_;
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
public boolean hasParameter() {
return parameter_ != null;
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
public gauge.messages.Spec.Parameter getParameter() {
return parameter_ == null ? gauge.messages.Spec.Parameter.getDefaultInstance() : parameter_;
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
public gauge.messages.Spec.ParameterOrBuilder getParameterOrBuilder() {
return getParameter();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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());
}
unknownFields.writeTo(output);
}
@java.lang.Override
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());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.Fragment parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing Fragment.
* / Fragments, put together make up A Step
*
*
* Protobuf type {@code gauge.messages.Fragment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
fragmentType_ = 0;
text_ = "";
if (parameterBuilder_ == null) {
parameter_ = null;
} else {
parameter_ = null;
parameterBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_Fragment_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.Fragment getDefaultInstanceForType() {
return gauge.messages.Spec.Fragment.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.Fragment build() {
gauge.messages.Spec.Fragment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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;
/**
*
*/ Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
*/
public int getFragmentTypeValue() {
return fragmentType_;
}
/**
*
*/ Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
*/
public Builder setFragmentTypeValue(int value) {
fragmentType_ = value;
onChanged();
return this;
}
/**
*
*/ Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
*/
public gauge.messages.Spec.Fragment.FragmentType getFragmentType() {
@SuppressWarnings("deprecation")
gauge.messages.Spec.Fragment.FragmentType result = gauge.messages.Spec.Fragment.FragmentType.valueOf(fragmentType_);
return result == null ? gauge.messages.Spec.Fragment.FragmentType.UNRECOGNIZED : result;
}
/**
*
*/ Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
*/
public Builder setFragmentType(gauge.messages.Spec.Fragment.FragmentType value) {
if (value == null) {
throw new NullPointerException();
}
fragmentType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*/ Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
*/
public Builder clearFragmentType() {
fragmentType_ = 0;
onChanged();
return this;
}
private java.lang.Object text_ = "";
/**
*
*/ Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
*/
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;
}
}
/**
*
*/ Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
*/
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;
}
}
/**
*
*/ Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
text_ = value;
onChanged();
return this;
}
/**
*
*/ Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
*
*/ Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
*/
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_;
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
public boolean hasParameter() {
return parameterBuilder_ != null || parameter_ != null;
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
public gauge.messages.Spec.Parameter getParameter() {
if (parameterBuilder_ == null) {
return parameter_ == null ? gauge.messages.Spec.Parameter.getDefaultInstance() : parameter_;
} else {
return parameterBuilder_.getMessage();
}
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
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;
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
public Builder setParameter(
gauge.messages.Spec.Parameter.Builder builderForValue) {
if (parameterBuilder_ == null) {
parameter_ = builderForValue.build();
onChanged();
} else {
parameterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
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;
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
public Builder clearParameter() {
if (parameterBuilder_ == null) {
parameter_ = null;
onChanged();
} else {
parameter_ = null;
parameterBuilder_ = null;
}
return this;
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
public gauge.messages.Spec.Parameter.Builder getParameterBuilder() {
onChanged();
return getParameterFieldBuilder().getBuilder();
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
public gauge.messages.Spec.ParameterOrBuilder getParameterOrBuilder() {
if (parameterBuilder_ != null) {
return parameterBuilder_.getMessageOrBuilder();
} else {
return parameter_ == null ?
gauge.messages.Spec.Parameter.getDefaultInstance() : parameter_;
}
}
/**
*
*/ Parameter part of the Fragment, valid only if FragmentType=Parameter
*
*
* .gauge.messages.Parameter parameter = 3;
*/
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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
*/
int getParameterTypeValue();
/**
*
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
*/
gauge.messages.Spec.Parameter.ParameterType getParameterType();
/**
*
*/ Holds the value of the parameter
*
*
* string value = 2;
*/
java.lang.String getValue();
/**
*
*/ Holds the value of the parameter
*
*
* string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
/**
*
*/ Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
*/
java.lang.String getName();
/**
*
*/ Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
boolean hasTable();
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
gauge.messages.Spec.ProtoTable getTable();
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder();
}
/**
*
*/ A proto object representing Fragment.
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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 this.unknownFields;
}
private Parameter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_Parameter_descriptor;
}
@java.lang.Override
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);
}
/**
*
*/ Enum representing types of Parameter.
*
*
* Protobuf enum {@code gauge.messages.Parameter.ParameterType}
*/
public enum ParameterType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Static parameter. The value of the parameter is defined at the Step.
*
*
* Static = 0;
*/
Static(0),
/**
*
* Dynamic parameter. This is a parameter placeholder, and the actual value is injected at runtime, depending on the context of the call.
*
*
* Dynamic = 1;
*/
Dynamic(1),
/**
*
* Special paramter, taking a string value. Special paramters are read from a file.
*
*
* Special_String = 2;
*/
Special_String(2),
/**
*
* Special paramter, taking a Table value. This parameter is read from a csv file.
*
*
* Special_Table = 3;
*/
Special_Table(3),
/**
*
* A table parameter, used for data driven execution.
*
*
* Table = 4;
*/
Table(4),
UNRECOGNIZED(-1),
;
/**
*
* Static parameter. The value of the parameter is defined at the Step.
*
*
* Static = 0;
*/
public static final int Static_VALUE = 0;
/**
*
* Dynamic parameter. This is a parameter placeholder, and the actual value is injected at runtime, depending on the context of the call.
*
*
* Dynamic = 1;
*/
public static final int Dynamic_VALUE = 1;
/**
*
* Special paramter, taking a string value. Special paramters are read from a file.
*
*
* Special_String = 2;
*/
public static final int Special_String_VALUE = 2;
/**
*
* Special paramter, taking a Table value. This parameter is read from a csv file.
*
*
* Special_Table = 3;
*/
public static final int Special_Table_VALUE = 3;
/**
*
* A table parameter, used for data driven execution.
*
*
* Table = 4;
*/
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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ParameterType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
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_;
/**
*
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
*/
public int getParameterTypeValue() {
return parameterType_;
}
/**
*
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
*/
public gauge.messages.Spec.Parameter.ParameterType getParameterType() {
@SuppressWarnings("deprecation")
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_;
/**
*
*/ Holds the value of the parameter
*
*
* string value = 2;
*/
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;
}
}
/**
*
*/ Holds the value of the parameter
*
*
* string value = 2;
*/
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_;
/**
*
*/ Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
*/
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;
}
}
/**
*
*/ Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
*/
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_;
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
public boolean hasTable() {
return table_ != null;
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
public gauge.messages.Spec.ProtoTable getTable() {
return table_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
public gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder() {
return getTable();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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());
}
unknownFields.writeTo(output);
}
@java.lang.Override
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());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.Parameter parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing Fragment.
*
*
* Protobuf type {@code gauge.messages.Parameter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
parameterType_ = 0;
value_ = "";
name_ = "";
if (tableBuilder_ == null) {
table_ = null;
} else {
table_ = null;
tableBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_Parameter_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.Parameter getDefaultInstanceForType() {
return gauge.messages.Spec.Parameter.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.Parameter build() {
gauge.messages.Spec.Parameter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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;
/**
*
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
*/
public int getParameterTypeValue() {
return parameterType_;
}
/**
*
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
*/
public Builder setParameterTypeValue(int value) {
parameterType_ = value;
onChanged();
return this;
}
/**
*
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
*/
public gauge.messages.Spec.Parameter.ParameterType getParameterType() {
@SuppressWarnings("deprecation")
gauge.messages.Spec.Parameter.ParameterType result = gauge.messages.Spec.Parameter.ParameterType.valueOf(parameterType_);
return result == null ? gauge.messages.Spec.Parameter.ParameterType.UNRECOGNIZED : result;
}
/**
*
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
*/
public Builder setParameterType(gauge.messages.Spec.Parameter.ParameterType value) {
if (value == null) {
throw new NullPointerException();
}
parameterType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*/ Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
*/
public Builder clearParameterType() {
parameterType_ = 0;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
*
*/ Holds the value of the parameter
*
*
* string value = 2;
*/
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;
}
}
/**
*
*/ Holds the value of the parameter
*
*
* string value = 2;
*/
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;
}
}
/**
*
*/ Holds the value of the parameter
*
*
* string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
*
*/ Holds the value of the parameter
*
*
* string value = 2;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
*
*/ Holds the value of the parameter
*
*
* string value = 2;
*/
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_ = "";
/**
*
*/ Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
*/
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;
}
}
/**
*
*/ Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
*/
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;
}
}
/**
*
*/ Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
*/ Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*/ Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
*/
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_;
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
public boolean hasTable() {
return tableBuilder_ != null || table_ != null;
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
public gauge.messages.Spec.ProtoTable getTable() {
if (tableBuilder_ == null) {
return table_ == null ? gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
} else {
return tableBuilder_.getMessage();
}
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
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;
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
public Builder setTable(
gauge.messages.Spec.ProtoTable.Builder builderForValue) {
if (tableBuilder_ == null) {
table_ = builderForValue.build();
onChanged();
} else {
tableBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
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;
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
public Builder clearTable() {
if (tableBuilder_ == null) {
table_ = null;
onChanged();
} else {
table_ = null;
tableBuilder_ = null;
}
return this;
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
public gauge.messages.Spec.ProtoTable.Builder getTableBuilder() {
onChanged();
return getTableFieldBuilder().getBuilder();
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
public gauge.messages.Spec.ProtoTableOrBuilder getTableOrBuilder() {
if (tableBuilder_ != null) {
return tableBuilder_.getMessageOrBuilder();
} else {
return table_ == null ?
gauge.messages.Spec.ProtoTable.getDefaultInstance() : table_;
}
}
/**
*
*/ Holds the table value, if parameterType=Table or Special_Table
*
*
* .gauge.messages.ProtoTable table = 4;
*/
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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Text representing the Comment.
*
*
* string text = 1;
*/
java.lang.String getText();
/**
*
*/ Text representing the Comment.
*
*
* string text = 1;
*/
com.google.protobuf.ByteString
getTextBytes();
}
/**
*
*/ A proto object representing Comment.
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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 this.unknownFields;
}
private ProtoComment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
text_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoComment_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ Text representing the Comment.
*
*
* string text = 1;
*/
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;
}
}
/**
*
*/ Text representing the Comment.
*
*
* string text = 1;
*/
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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoComment parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing Comment.
*
*
* Protobuf type {@code gauge.messages.ProtoComment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
text_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoComment_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoComment getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoComment.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoComment build() {
gauge.messages.Spec.ProtoComment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public gauge.messages.Spec.ProtoComment buildPartial() {
gauge.messages.Spec.ProtoComment result = new gauge.messages.Spec.ProtoComment(this);
result.text_ = text_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_ = "";
/**
*
*/ Text representing the Comment.
*
*
* string text = 1;
*/
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;
}
}
/**
*
*/ Text representing the Comment.
*
*
* string text = 1;
*/
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;
}
}
/**
*
*/ Text representing the Comment.
*
*
* string text = 1;
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
text_ = value;
onChanged();
return this;
}
/**
*
*/ Text representing the Comment.
*
*
* string text = 1;
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
*
*/ Text representing the Comment.
*
*
* string text = 1;
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
text_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
boolean hasHeaders();
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
gauge.messages.Spec.ProtoTableRow getHeaders();
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
gauge.messages.Spec.ProtoTableRowOrBuilder getHeadersOrBuilder();
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
java.util.List
getRowsList();
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
gauge.messages.Spec.ProtoTableRow getRows(int index);
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
int getRowsCount();
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
java.util.List
getRowsOrBuilderList();
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
gauge.messages.Spec.ProtoTableRowOrBuilder getRowsOrBuilder(
int index);
}
/**
*
*/ A proto object representing Table.
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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 this.unknownFields;
}
private ProtoTable(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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();
mutable_bitField0_ |= 0x00000002;
}
rows_.add(
input.readMessage(gauge.messages.Spec.ProtoTableRow.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTable_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
public boolean hasHeaders() {
return headers_ != null;
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
public gauge.messages.Spec.ProtoTableRow getHeaders() {
return headers_ == null ? gauge.messages.Spec.ProtoTableRow.getDefaultInstance() : headers_;
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
public gauge.messages.Spec.ProtoTableRowOrBuilder getHeadersOrBuilder() {
return getHeaders();
}
public static final int ROWS_FIELD_NUMBER = 2;
private java.util.List rows_;
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public java.util.List getRowsList() {
return rows_;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public java.util.List
getRowsOrBuilderList() {
return rows_;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public int getRowsCount() {
return rows_.size();
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public gauge.messages.Spec.ProtoTableRow getRows(int index) {
return rows_.get(index);
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public gauge.messages.Spec.ProtoTableRowOrBuilder getRowsOrBuilder(
int index) {
return rows_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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));
}
unknownFields.writeTo(output);
}
@java.lang.Override
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));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTable parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing Table.
*
*
* Protobuf type {@code gauge.messages.ProtoTable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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();
}
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTable_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoTable getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoTable.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoTable build() {
gauge.messages.Spec.ProtoTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_;
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
public boolean hasHeaders() {
return headersBuilder_ != null || headers_ != null;
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
public gauge.messages.Spec.ProtoTableRow getHeaders() {
if (headersBuilder_ == null) {
return headers_ == null ? gauge.messages.Spec.ProtoTableRow.getDefaultInstance() : headers_;
} else {
return headersBuilder_.getMessage();
}
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
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;
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
public Builder setHeaders(
gauge.messages.Spec.ProtoTableRow.Builder builderForValue) {
if (headersBuilder_ == null) {
headers_ = builderForValue.build();
onChanged();
} else {
headersBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
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;
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
public Builder clearHeaders() {
if (headersBuilder_ == null) {
headers_ = null;
onChanged();
} else {
headers_ = null;
headersBuilder_ = null;
}
return this;
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
public gauge.messages.Spec.ProtoTableRow.Builder getHeadersBuilder() {
onChanged();
return getHeadersFieldBuilder().getBuilder();
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
public gauge.messages.Spec.ProtoTableRowOrBuilder getHeadersOrBuilder() {
if (headersBuilder_ != null) {
return headersBuilder_.getMessageOrBuilder();
} else {
return headers_ == null ?
gauge.messages.Spec.ProtoTableRow.getDefaultInstance() : headers_;
}
}
/**
*
*/ Contains the Headers for the table
*
*
* .gauge.messages.ProtoTableRow headers = 1;
*/
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 rows_ =
java.util.Collections.emptyList();
private void ensureRowsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = new java.util.ArrayList(rows_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
gauge.messages.Spec.ProtoTableRow, gauge.messages.Spec.ProtoTableRow.Builder, gauge.messages.Spec.ProtoTableRowOrBuilder> rowsBuilder_;
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public java.util.List getRowsList() {
if (rowsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rows_);
} else {
return rowsBuilder_.getMessageList();
}
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public int getRowsCount() {
if (rowsBuilder_ == null) {
return rows_.size();
} else {
return rowsBuilder_.getCount();
}
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public gauge.messages.Spec.ProtoTableRow getRows(int index) {
if (rowsBuilder_ == null) {
return rows_.get(index);
} else {
return rowsBuilder_.getMessage(index);
}
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
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;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
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;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
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;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
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;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
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;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
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;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public Builder addAllRows(
java.lang.Iterable values) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rows_);
onChanged();
} else {
rowsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public Builder clearRows() {
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rowsBuilder_.clear();
}
return this;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public Builder removeRows(int index) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.remove(index);
onChanged();
} else {
rowsBuilder_.remove(index);
}
return this;
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public gauge.messages.Spec.ProtoTableRow.Builder getRowsBuilder(
int index) {
return getRowsFieldBuilder().getBuilder(index);
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public gauge.messages.Spec.ProtoTableRowOrBuilder getRowsOrBuilder(
int index) {
if (rowsBuilder_ == null) {
return rows_.get(index); } else {
return rowsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public java.util.List
getRowsOrBuilderList() {
if (rowsBuilder_ != null) {
return rowsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rows_);
}
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public gauge.messages.Spec.ProtoTableRow.Builder addRowsBuilder() {
return getRowsFieldBuilder().addBuilder(
gauge.messages.Spec.ProtoTableRow.getDefaultInstance());
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public gauge.messages.Spec.ProtoTableRow.Builder addRowsBuilder(
int index) {
return getRowsFieldBuilder().addBuilder(
index, gauge.messages.Spec.ProtoTableRow.getDefaultInstance());
}
/**
*
*/ Contains the Rows for the table
*
*
* repeated .gauge.messages.ProtoTableRow rows = 2;
*/
public java.util.List
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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
java.util.List
getCellsList();
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
int getCellsCount();
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
java.lang.String getCells(int index);
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
com.google.protobuf.ByteString
getCellsBytes(int index);
}
/**
*
*/ A proto object representing Table.
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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 this.unknownFields;
}
private ProtoTableRow(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableRow_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public com.google.protobuf.ProtocolStringList
getCellsList() {
return cells_;
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public int getCellsCount() {
return cells_.size();
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public java.lang.String getCells(int index) {
return cells_.get(index);
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public com.google.protobuf.ByteString
getCellsBytes(int index) {
return cells_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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));
}
unknownFields.writeTo(output);
}
@java.lang.Override
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();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing Table.
*
*
* Protobuf type {@code gauge.messages.ProtoTableRow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
cells_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoTableRow_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoTableRow getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoTableRow.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoTableRow build() {
gauge.messages.Spec.ProtoTableRow result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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;
}
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public com.google.protobuf.ProtocolStringList
getCellsList() {
return cells_.getUnmodifiableView();
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public int getCellsCount() {
return cells_.size();
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public java.lang.String getCells(int index) {
return cells_.get(index);
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public com.google.protobuf.ByteString
getCellsBytes(int index) {
return cells_.getByteString(index);
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public Builder setCells(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCellsIsMutable();
cells_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public Builder addCells(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCellsIsMutable();
cells_.add(value);
onChanged();
return this;
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public Builder addAllCells(
java.lang.Iterable values) {
ensureCellsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, cells_);
onChanged();
return this;
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public Builder clearCells() {
cells_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*/ Represents the cells of a given table
*
*
* repeated string cells = 1;
*/
public Builder addCellsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureCellsIsMutable();
cells_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
boolean hasExecutionResult();
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
gauge.messages.Spec.ProtoExecutionResult getExecutionResult();
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
gauge.messages.Spec.ProtoExecutionResultOrBuilder getExecutionResultOrBuilder();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
boolean hasPreHookFailure();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
gauge.messages.Spec.ProtoHookFailure getPreHookFailure();
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder();
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
boolean hasPostHookFailure();
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
gauge.messages.Spec.ProtoHookFailure getPostHookFailure();
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder();
/**
* bool skipped = 4;
*/
boolean getSkipped();
/**
* string skippedReason = 5;
*/
java.lang.String getSkippedReason();
/**
* string skippedReason = 5;
*/
com.google.protobuf.ByteString
getSkippedReasonBytes();
}
/**
*
*/ A proto object representing Step Execution result
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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 this.unknownFields;
}
private ProtoStepExecutionResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepExecutionResult_descriptor;
}
@java.lang.Override
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_;
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
public boolean hasExecutionResult() {
return executionResult_ != null;
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
public gauge.messages.Spec.ProtoExecutionResult getExecutionResult() {
return executionResult_ == null ? gauge.messages.Spec.ProtoExecutionResult.getDefaultInstance() : executionResult_;
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
public gauge.messages.Spec.ProtoExecutionResultOrBuilder getExecutionResultOrBuilder() {
return getExecutionResult();
}
public static final int PREHOOKFAILURE_FIELD_NUMBER = 2;
private gauge.messages.Spec.ProtoHookFailure preHookFailure_;
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
public boolean hasPreHookFailure() {
return preHookFailure_ != null;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
return getPreHookFailure();
}
public static final int POSTHOOKFAILURE_FIELD_NUMBER = 3;
private gauge.messages.Spec.ProtoHookFailure postHookFailure_;
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
public boolean hasPostHookFailure() {
return postHookFailure_ != null;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
return getPostHookFailure();
}
public static final int SKIPPED_FIELD_NUMBER = 4;
private boolean skipped_;
/**
* bool skipped = 4;
*/
public boolean getSkipped() {
return skipped_;
}
public static final int SKIPPEDREASON_FIELD_NUMBER = 5;
private volatile java.lang.Object skippedReason_;
/**
* string skippedReason = 5;
*/
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;
}
}
/**
* string skippedReason = 5;
*/
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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
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_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoStepExecutionResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing Step Execution result
*
*
* Protobuf type {@code gauge.messages.ProtoStepExecutionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoStepExecutionResult_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoStepExecutionResult getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoStepExecutionResult build() {
gauge.messages.Spec.ProtoStepExecutionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_;
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
public boolean hasExecutionResult() {
return executionResultBuilder_ != null || executionResult_ != null;
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
public gauge.messages.Spec.ProtoExecutionResult getExecutionResult() {
if (executionResultBuilder_ == null) {
return executionResult_ == null ? gauge.messages.Spec.ProtoExecutionResult.getDefaultInstance() : executionResult_;
} else {
return executionResultBuilder_.getMessage();
}
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
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;
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
public Builder setExecutionResult(
gauge.messages.Spec.ProtoExecutionResult.Builder builderForValue) {
if (executionResultBuilder_ == null) {
executionResult_ = builderForValue.build();
onChanged();
} else {
executionResultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
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;
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
public Builder clearExecutionResult() {
if (executionResultBuilder_ == null) {
executionResult_ = null;
onChanged();
} else {
executionResult_ = null;
executionResultBuilder_ = null;
}
return this;
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
public gauge.messages.Spec.ProtoExecutionResult.Builder getExecutionResultBuilder() {
onChanged();
return getExecutionResultFieldBuilder().getBuilder();
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
public gauge.messages.Spec.ProtoExecutionResultOrBuilder getExecutionResultOrBuilder() {
if (executionResultBuilder_ != null) {
return executionResultBuilder_.getMessageOrBuilder();
} else {
return executionResult_ == null ?
gauge.messages.Spec.ProtoExecutionResult.getDefaultInstance() : executionResult_;
}
}
/**
*
*/ The actual result of the execution
*
*
* .gauge.messages.ProtoExecutionResult executionResult = 1;
*/
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_;
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
public boolean hasPreHookFailure() {
return preHookFailureBuilder_ != null || preHookFailure_ != null;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
public gauge.messages.Spec.ProtoHookFailure getPreHookFailure() {
if (preHookFailureBuilder_ == null) {
return preHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
} else {
return preHookFailureBuilder_.getMessage();
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
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;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
public Builder setPreHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = builderForValue.build();
onChanged();
} else {
preHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
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;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
public Builder clearPreHookFailure() {
if (preHookFailureBuilder_ == null) {
preHookFailure_ = null;
onChanged();
} else {
preHookFailure_ = null;
preHookFailureBuilder_ = null;
}
return this;
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPreHookFailureBuilder() {
onChanged();
return getPreHookFailureFieldBuilder().getBuilder();
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPreHookFailureOrBuilder() {
if (preHookFailureBuilder_ != null) {
return preHookFailureBuilder_.getMessageOrBuilder();
} else {
return preHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : preHookFailure_;
}
}
/**
*
*/ Contains a 'before' hook failure message. This happens when the `before_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure preHookFailure = 2;
*/
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_;
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
public boolean hasPostHookFailure() {
return postHookFailureBuilder_ != null || postHookFailure_ != null;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
public gauge.messages.Spec.ProtoHookFailure getPostHookFailure() {
if (postHookFailureBuilder_ == null) {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
} else {
return postHookFailureBuilder_.getMessage();
}
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
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;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
public Builder setPostHookFailure(
gauge.messages.Spec.ProtoHookFailure.Builder builderForValue) {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = builderForValue.build();
onChanged();
} else {
postHookFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
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;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
public Builder clearPostHookFailure() {
if (postHookFailureBuilder_ == null) {
postHookFailure_ = null;
onChanged();
} else {
postHookFailure_ = null;
postHookFailureBuilder_ = null;
}
return this;
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
public gauge.messages.Spec.ProtoHookFailure.Builder getPostHookFailureBuilder() {
onChanged();
return getPostHookFailureFieldBuilder().getBuilder();
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
if (postHookFailureBuilder_ != null) {
return postHookFailureBuilder_.getMessageOrBuilder();
} else {
return postHookFailure_ == null ?
gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
}
/**
*
*/ Contains a 'after' hook failure message. This happens when the `after_step` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
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_ ;
/**
* bool skipped = 4;
*/
public boolean getSkipped() {
return skipped_;
}
/**
* bool skipped = 4;
*/
public Builder setSkipped(boolean value) {
skipped_ = value;
onChanged();
return this;
}
/**
* bool skipped = 4;
*/
public Builder clearSkipped() {
skipped_ = false;
onChanged();
return this;
}
private java.lang.Object skippedReason_ = "";
/**
* string skippedReason = 5;
*/
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;
}
}
/**
* string skippedReason = 5;
*/
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;
}
}
/**
* string skippedReason = 5;
*/
public Builder setSkippedReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
skippedReason_ = value;
onChanged();
return this;
}
/**
* string skippedReason = 5;
*/
public Builder clearSkippedReason() {
skippedReason_ = getDefaultInstance().getSkippedReason();
onChanged();
return this;
}
/**
* string skippedReason = 5;
*/
public Builder setSkippedReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
skippedReason_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
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 {
/**
*
*/ Flag to indicate failure
*
*
* bool failed = 1;
*/
boolean getFailed();
/**
*
*/ Flag to indicate if the error is recoverable from.
*
*
* bool recoverableError = 2;
*/
boolean getRecoverableError();
/**
*
*/ The actual error message.
*
*
* string errorMessage = 3;
*/
java.lang.String getErrorMessage();
/**
*
*/ The actual error message.
*
*
* string errorMessage = 3;
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
*
*/ Stacktrace of the error
*
*
* string stackTrace = 4;
*/
java.lang.String getStackTrace();
/**
*
*/ Stacktrace of the error
*
*
* string stackTrace = 4;
*/
com.google.protobuf.ByteString
getStackTraceBytes();
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes screenShot = 5 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString getScreenShot();
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 6;
*/
long getExecutionTime();
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
java.util.List
getMessageList();
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
int getMessageCount();
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
java.lang.String getMessage(int index);
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
com.google.protobuf.ByteString
getMessageBytes(int index);
/**
*
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
*/
int getErrorTypeValue();
/**
*
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
*/
gauge.messages.Spec.ProtoExecutionResult.ErrorType getErrorType();
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes failureScreenshot = 9 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString getFailureScreenshot();
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated java.util.List getScreenshotsList();
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated int getScreenshotsCount();
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString getScreenshots(int index);
/**
*
*/ Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
*/
java.lang.String getFailureScreenshotFile();
/**
*
*/ Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
*/
com.google.protobuf.ByteString
getFailureScreenshotFileBytes();
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
java.util.List
getScreenshotFilesList();
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
int getScreenshotFilesCount();
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
java.lang.String getScreenshotFiles(int index);
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
com.google.protobuf.ByteString
getScreenshotFilesBytes(int index);
}
/**
*
*/ A proto object representing the result of an execution
*
*
* 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 {
private static final long serialVersionUID = 0L;
// 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;
failureScreenshot_ = com.google.protobuf.ByteString.EMPTY;
screenshots_ = java.util.Collections.emptyList();
failureScreenshotFile_ = "";
screenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoExecutionResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
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;
}
case 74: {
failureScreenshot_ = input.readBytes();
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
screenshots_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
screenshots_.add(input.readBytes());
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
failureScreenshotFile_ = s;
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
screenshotFiles_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000800;
}
screenshotFiles_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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();
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
screenshots_ = java.util.Collections.unmodifiableList(screenshots_);
}
if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
screenshotFiles_ = screenshotFiles_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoExecutionResult_descriptor;
}
@java.lang.Override
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 {
/**
* ASSERTION = 0;
*/
ASSERTION(0),
/**
* VERIFICATION = 1;
*/
VERIFICATION(1),
UNRECOGNIZED(-1),
;
/**
* ASSERTION = 0;
*/
public static final int ASSERTION_VALUE = 0;
/**
* VERIFICATION = 1;
*/
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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ErrorType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
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_;
/**
*
*/ Flag to indicate failure
*
*
* bool failed = 1;
*/
public boolean getFailed() {
return failed_;
}
public static final int RECOVERABLEERROR_FIELD_NUMBER = 2;
private boolean recoverableError_;
/**
*
*/ Flag to indicate if the error is recoverable from.
*
*
* bool recoverableError = 2;
*/
public boolean getRecoverableError() {
return recoverableError_;
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object errorMessage_;
/**
*
*/ The actual error message.
*
*
* string errorMessage = 3;
*/
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;
}
}
/**
*
*/ The actual error message.
*
*
* string errorMessage = 3;
*/
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_;
/**
*
*/ Stacktrace of the error
*
*
* string stackTrace = 4;
*/
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;
}
}
/**
*
*/ Stacktrace of the error
*
*
* string stackTrace = 4;
*/
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_;
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes screenShot = 5 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getScreenShot() {
return screenShot_;
}
public static final int EXECUTIONTIME_FIELD_NUMBER = 6;
private long executionTime_;
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 6;
*/
public long getExecutionTime() {
return executionTime_;
}
public static final int MESSAGE_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList message_;
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public com.google.protobuf.ProtocolStringList
getMessageList() {
return message_;
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public int getMessageCount() {
return message_.size();
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public java.lang.String getMessage(int index) {
return message_.get(index);
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public com.google.protobuf.ByteString
getMessageBytes(int index) {
return message_.getByteString(index);
}
public static final int ERRORTYPE_FIELD_NUMBER = 8;
private int errorType_;
/**
*
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
*/
public int getErrorTypeValue() {
return errorType_;
}
/**
*
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
*/
public gauge.messages.Spec.ProtoExecutionResult.ErrorType getErrorType() {
@SuppressWarnings("deprecation")
gauge.messages.Spec.ProtoExecutionResult.ErrorType result = gauge.messages.Spec.ProtoExecutionResult.ErrorType.valueOf(errorType_);
return result == null ? gauge.messages.Spec.ProtoExecutionResult.ErrorType.UNRECOGNIZED : result;
}
public static final int FAILURESCREENSHOT_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString failureScreenshot_;
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes failureScreenshot = 9 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getFailureScreenshot() {
return failureScreenshot_;
}
public static final int SCREENSHOTS_FIELD_NUMBER = 10;
private java.util.List screenshots_;
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getScreenshotsList() {
return screenshots_;
}
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public int getScreenshotsCount() {
return screenshots_.size();
}
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getScreenshots(int index) {
return screenshots_.get(index);
}
public static final int FAILURESCREENSHOTFILE_FIELD_NUMBER = 11;
private volatile java.lang.Object failureScreenshotFile_;
/**
*
*/ Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
*/
public java.lang.String getFailureScreenshotFile() {
java.lang.Object ref = failureScreenshotFile_;
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();
failureScreenshotFile_ = s;
return s;
}
}
/**
*
*/ Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
*/
public com.google.protobuf.ByteString
getFailureScreenshotFileBytes() {
java.lang.Object ref = failureScreenshotFile_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureScreenshotFile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCREENSHOTFILES_FIELD_NUMBER = 12;
private com.google.protobuf.LazyStringList screenshotFiles_;
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public com.google.protobuf.ProtocolStringList
getScreenshotFilesList() {
return screenshotFiles_;
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public int getScreenshotFilesCount() {
return screenshotFiles_.size();
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public java.lang.String getScreenshotFiles(int index) {
return screenshotFiles_.get(index);
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public com.google.protobuf.ByteString
getScreenshotFilesBytes(int index) {
return screenshotFiles_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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_);
}
if (!failureScreenshot_.isEmpty()) {
output.writeBytes(9, failureScreenshot_);
}
for (int i = 0; i < screenshots_.size(); i++) {
output.writeBytes(10, screenshots_.get(i));
}
if (!getFailureScreenshotFileBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, failureScreenshotFile_);
}
for (int i = 0; i < screenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, screenshotFiles_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
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_);
}
if (!failureScreenshot_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, failureScreenshot_);
}
{
int dataSize = 0;
for (int i = 0; i < screenshots_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(screenshots_.get(i));
}
size += dataSize;
size += 1 * getScreenshotsList().size();
}
if (!getFailureScreenshotFileBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, failureScreenshotFile_);
}
{
int dataSize = 0;
for (int i = 0; i < screenshotFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(screenshotFiles_.getRaw(i));
}
size += dataSize;
size += 1 * getScreenshotFilesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@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_;
result = result && getFailureScreenshot()
.equals(other.getFailureScreenshot());
result = result && getScreenshotsList()
.equals(other.getScreenshotsList());
result = result && getFailureScreenshotFile()
.equals(other.getFailureScreenshotFile());
result = result && getScreenshotFilesList()
.equals(other.getScreenshotFilesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().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 = (37 * hash) + FAILURESCREENSHOT_FIELD_NUMBER;
hash = (53 * hash) + getFailureScreenshot().hashCode();
if (getScreenshotsCount() > 0) {
hash = (37 * hash) + SCREENSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getScreenshotsList().hashCode();
}
hash = (37 * hash) + FAILURESCREENSHOTFILE_FIELD_NUMBER;
hash = (53 * hash) + getFailureScreenshotFile().hashCode();
if (getScreenshotFilesCount() > 0) {
hash = (37 * hash) + SCREENSHOTFILES_FIELD_NUMBER;
hash = (53 * hash) + getScreenshotFilesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*/ A proto object representing the result of an execution
*
*
* Protobuf type {@code gauge.messages.ProtoExecutionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.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;
}
@java.lang.Override
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) {
}
}
@java.lang.Override
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;
failureScreenshot_ = com.google.protobuf.ByteString.EMPTY;
screenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
failureScreenshotFile_ = "";
screenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoExecutionResult_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoExecutionResult getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoExecutionResult.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoExecutionResult build() {
gauge.messages.Spec.ProtoExecutionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
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.failureScreenshot_ = failureScreenshot_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
screenshots_ = java.util.Collections.unmodifiableList(screenshots_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.screenshots_ = screenshots_;
result.failureScreenshotFile_ = failureScreenshotFile_;
if (((bitField0_ & 0x00000800) == 0x00000800)) {
screenshotFiles_ = screenshotFiles_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000800);
}
result.screenshotFiles_ = screenshotFiles_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
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());
}
if (other.getFailureScreenshot() != com.google.protobuf.ByteString.EMPTY) {
setFailureScreenshot(other.getFailureScreenshot());
}
if (!other.screenshots_.isEmpty()) {
if (screenshots_.isEmpty()) {
screenshots_ = other.screenshots_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureScreenshotsIsMutable();
screenshots_.addAll(other.screenshots_);
}
onChanged();
}
if (!other.getFailureScreenshotFile().isEmpty()) {
failureScreenshotFile_ = other.failureScreenshotFile_;
onChanged();
}
if (!other.screenshotFiles_.isEmpty()) {
if (screenshotFiles_.isEmpty()) {
screenshotFiles_ = other.screenshotFiles_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureScreenshotFilesIsMutable();
screenshotFiles_.addAll(other.screenshotFiles_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
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_ ;
/**
*
*/ Flag to indicate failure
*
*
* bool failed = 1;
*/
public boolean getFailed() {
return failed_;
}
/**
*
*/ Flag to indicate failure
*
*
* bool failed = 1;
*/
public Builder setFailed(boolean value) {
failed_ = value;
onChanged();
return this;
}
/**
*
*/ Flag to indicate failure
*
*
* bool failed = 1;
*/
public Builder clearFailed() {
failed_ = false;
onChanged();
return this;
}
private boolean recoverableError_ ;
/**
*
*/ Flag to indicate if the error is recoverable from.
*
*
* bool recoverableError = 2;
*/
public boolean getRecoverableError() {
return recoverableError_;
}
/**
*
*/ Flag to indicate if the error is recoverable from.
*
*
* bool recoverableError = 2;
*/
public Builder setRecoverableError(boolean value) {
recoverableError_ = value;
onChanged();
return this;
}
/**
*
*/ Flag to indicate if the error is recoverable from.
*
*
* bool recoverableError = 2;
*/
public Builder clearRecoverableError() {
recoverableError_ = false;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
*
*/ The actual error message.
*
*
* string errorMessage = 3;
*/
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;
}
}
/**
*
*/ The actual error message.
*
*
* string errorMessage = 3;
*/
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;
}
}
/**
*
*/ The actual error message.
*
*
* string errorMessage = 3;
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
*
*/ The actual error message.
*
*
* string errorMessage = 3;
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
*
*/ The actual error message.
*
*
* string errorMessage = 3;
*/
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_ = "";
/**
*
*/ Stacktrace of the error
*
*
* string stackTrace = 4;
*/
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;
}
}
/**
*
*/ Stacktrace of the error
*
*
* string stackTrace = 4;
*/
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;
}
}
/**
*
*/ Stacktrace of the error
*
*
* string stackTrace = 4;
*/
public Builder setStackTrace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stackTrace_ = value;
onChanged();
return this;
}
/**
*
*/ Stacktrace of the error
*
*
* string stackTrace = 4;
*/
public Builder clearStackTrace() {
stackTrace_ = getDefaultInstance().getStackTrace();
onChanged();
return this;
}
/**
*
*/ Stacktrace of the error
*
*
* string stackTrace = 4;
*/
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;
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes screenShot = 5 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getScreenShot() {
return screenShot_;
}
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes screenShot = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder setScreenShot(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
screenShot_ = value;
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes screenShot = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearScreenShot() {
screenShot_ = getDefaultInstance().getScreenShot();
onChanged();
return this;
}
private long executionTime_ ;
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 6;
*/
public long getExecutionTime() {
return executionTime_;
}
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 6;
*/
public Builder setExecutionTime(long value) {
executionTime_ = value;
onChanged();
return this;
}
/**
*
*/ Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 6;
*/
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;
}
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public com.google.protobuf.ProtocolStringList
getMessageList() {
return message_.getUnmodifiableView();
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public int getMessageCount() {
return message_.size();
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public java.lang.String getMessage(int index) {
return message_.get(index);
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public com.google.protobuf.ByteString
getMessageBytes(int index) {
return message_.getByteString(index);
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public Builder setMessage(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageIsMutable();
message_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public Builder addMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageIsMutable();
message_.add(value);
onChanged();
return this;
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public Builder addAllMessage(
java.lang.Iterable values) {
ensureMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, message_);
onChanged();
return this;
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
public Builder clearMessage() {
message_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*/ Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
*/
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;
/**
*
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
*/
public int getErrorTypeValue() {
return errorType_;
}
/**
*
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
*/
public Builder setErrorTypeValue(int value) {
errorType_ = value;
onChanged();
return this;
}
/**
*
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
*/
public gauge.messages.Spec.ProtoExecutionResult.ErrorType getErrorType() {
@SuppressWarnings("deprecation")
gauge.messages.Spec.ProtoExecutionResult.ErrorType result = gauge.messages.Spec.ProtoExecutionResult.ErrorType.valueOf(errorType_);
return result == null ? gauge.messages.Spec.ProtoExecutionResult.ErrorType.UNRECOGNIZED : result;
}
/**
*
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
*/
public Builder setErrorType(gauge.messages.Spec.ProtoExecutionResult.ErrorType value) {
if (value == null) {
throw new NullPointerException();
}
errorType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*/ Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
*/
public Builder clearErrorType() {
errorType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString failureScreenshot_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes failureScreenshot = 9 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getFailureScreenshot() {
return failureScreenshot_;
}
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes failureScreenshot = 9 [deprecated = true];
*/
@java.lang.Deprecated public Builder setFailureScreenshot(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
failureScreenshot_ = value;
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes failureScreenshot = 9 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearFailureScreenshot() {
failureScreenshot_ = getDefaultInstance().getFailureScreenshot();
onChanged();
return this;
}
private java.util.List screenshots_ = java.util.Collections.emptyList();
private void ensureScreenshotsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
screenshots_ = new java.util.ArrayList(screenshots_);
bitField0_ |= 0x00000200;
}
}
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List
getScreenshotsList() {
return java.util.Collections.unmodifiableList(screenshots_);
}
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public int getScreenshotsCount() {
return screenshots_.size();
}
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getScreenshots(int index) {
return screenshots_.get(index);
}
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public Builder setScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureScreenshotsIsMutable();
screenshots_.set(index, value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public Builder addScreenshots(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureScreenshotsIsMutable();
screenshots_.add(value);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public Builder addAllScreenshots(
java.lang.Iterable values) {
ensureScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, screenshots_);
onChanged();
return this;
}
/**
*
*/ [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearScreenshots() {
screenshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private java.lang.Object failureScreenshotFile_ = "";
/**
*
*/ Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
*/
public java.lang.String getFailureScreenshotFile() {
java.lang.Object ref = failureScreenshotFile_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
failureScreenshotFile_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*/ Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
*/
public com.google.protobuf.ByteString
getFailureScreenshotFileBytes() {
java.lang.Object ref = failureScreenshotFile_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureScreenshotFile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*/ Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
*/
public Builder setFailureScreenshotFile(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
failureScreenshotFile_ = value;
onChanged();
return this;
}
/**
*
*/ Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
*/
public Builder clearFailureScreenshotFile() {
failureScreenshotFile_ = getDefaultInstance().getFailureScreenshotFile();
onChanged();
return this;
}
/**
*
*/ Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
*/
public Builder setFailureScreenshotFileBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
failureScreenshotFile_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList screenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureScreenshotFilesIsMutable() {
if (!((bitField0_ & 0x00000800) == 0x00000800)) {
screenshotFiles_ = new com.google.protobuf.LazyStringArrayList(screenshotFiles_);
bitField0_ |= 0x00000800;
}
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public com.google.protobuf.ProtocolStringList
getScreenshotFilesList() {
return screenshotFiles_.getUnmodifiableView();
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public int getScreenshotFilesCount() {
return screenshotFiles_.size();
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public java.lang.String getScreenshotFiles(int index) {
return screenshotFiles_.get(index);
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public com.google.protobuf.ByteString
getScreenshotFilesBytes(int index) {
return screenshotFiles_.getByteString(index);
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public Builder setScreenshotFiles(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureScreenshotFilesIsMutable();
screenshotFiles_.set(index, value);
onChanged();
return this;
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public Builder addScreenshotFiles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureScreenshotFilesIsMutable();
screenshotFiles_.add(value);
onChanged();
return this;
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public Builder addAllScreenshotFiles(
java.lang.Iterable values) {
ensureScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, screenshotFiles_);
onChanged();
return this;
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public Builder clearScreenshotFiles() {
screenshotFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
*/ Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
*/
public Builder addScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureScreenshotFilesIsMutable();
screenshotFiles_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@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
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser