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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: spec.proto
// Protobuf Java Version: 4.27.1
package gauge.messages;
public final class Spec {
private Spec() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
Spec.class.getName());
}
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),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ExecutionStatus.class.getName());
}
/**
* 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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ExecutionStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 {
/**
*
* / Contains the filename for that holds this specification.
*
*
* string fileName = 6;
* @return The bytes for fileName.
*/
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;
* @return A list containing the tags.
*/
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;
* @return The count of tags.
*/
int getTagsCount();
/**
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
com.google.protobuf.ByteString
getTagsBytes(int index);
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @return A list containing the preHookMessages.
*/
java.util.List
getPreHookMessagesList();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @return The count of preHookMessages.
*/
int getPreHookMessagesCount();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
java.lang.String getPreHookMessages(int index);
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
com.google.protobuf.ByteString
getPreHookMessagesBytes(int index);
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @return A list containing the postHookMessages.
*/
java.util.List
getPostHookMessagesList();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @return The count of postHookMessages.
*/
int getPostHookMessagesCount();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
java.lang.String getPostHookMessages(int index);
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @return A list containing the preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @return The count of preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param index The index of the element to return.
* @return The preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param index The index of the value to return.
* @return The bytes of the preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @return A list containing the postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @return The count of postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param index The index of the element to return.
* @return The postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param index The index of the value to return.
* @return The bytes of the postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @return A list containing the preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @return The count of preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @return A list containing the postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @return The count of postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@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;
* @return The itemCount.
*/
long getItemCount();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @return A list containing the preHookScreenshotFiles.
*/
java.util.List
getPreHookScreenshotFilesList();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @return The count of preHookScreenshotFiles.
*/
int getPreHookScreenshotFilesCount();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
java.lang.String getPreHookScreenshotFiles(int index);
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index);
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @return A list containing the postHookScreenshotFiles.
*/
java.util.List
getPostHookScreenshotFilesList();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @return The count of postHookScreenshotFiles.
*/
int getPostHookScreenshotFilesCount();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
java.lang.String getPostHookScreenshotFiles(int index);
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index);
}
/**
*
* / A proto object representing a Specification
* / A specification can contain Scenarios or Steps, besides Comments
*
* / Contains the filename for that holds this specification.
*
*
* string fileName = 6;
* @return The bytes for fileName.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
* @return A list containing the tags.
*/
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;
* @return The count of tags.
*/
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;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int PREHOOKMESSAGES_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @return A list containing the preHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @return The count of preHookMessages.
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
public static final int POSTHOOKMESSAGES_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @return A list containing the postHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @return The count of postHookMessages.
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
public static final int PREHOOKMESSAGE_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @return A list containing the preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @return The count of preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param index The index of the element to return.
* @return The preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param index The index of the value to return.
* @return The bytes of the preHookMessage at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPreHookMessageBytes(int index) {
return preHookMessage_.getByteString(index);
}
public static final int POSTHOOKMESSAGE_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @return A list containing the postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @return The count of postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param index The index of the element to return.
* @return The postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param index The index of the value to return.
* @return The bytes of the postHookMessage at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPostHookMessageBytes(int index) {
return postHookMessage_.getByteString(index);
}
public static final int PREHOOKSCREENSHOTS_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList preHookScreenshots_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @return A list containing the preHookScreenshots.
*/
@java.lang.Override
@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];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @return The count of preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
public static final int POSTHOOKSCREENSHOTS_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList postHookScreenshots_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @return A list containing the postHookScreenshots.
*/
@java.lang.Override
@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];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @return The count of postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@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_ = 0L;
/**
*
* / meta field to indicate the number of items in the list
* / used when items are sent as individual chunk
*
*
* int64 itemCount = 14;
* @return The itemCount.
*/
@java.lang.Override
public long getItemCount() {
return itemCount_;
}
public static final int PREHOOKSCREENSHOTFILES_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @return A list containing the preHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @return The count of preHookScreenshotFiles.
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
public static final int POSTHOOKSCREENSHOTFILES_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @return A list containing the postHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @return The count of postHookScreenshotFiles.
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(specHeading_)) {
com.google.protobuf.GeneratedMessage.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, fileName_);
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, tags_.getRaw(i));
}
for (int i = 0; i < preHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 8, preHookMessages_.getRaw(i));
}
for (int i = 0; i < postHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 9, postHookMessages_.getRaw(i));
}
for (int i = 0; i < preHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 10, preHookMessage_.getRaw(i));
}
for (int i = 0; i < postHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.writeString(output, 15, preHookScreenshotFiles_.getRaw(i));
}
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 16, postHookScreenshotFiles_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(specHeading_)) {
size += com.google.protobuf.GeneratedMessage.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileName_)) {
size += com.google.protobuf.GeneratedMessage.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 += getUnknownFields().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;
if (!getSpecHeading()
.equals(other.getSpecHeading())) return false;
if (!getItemsList()
.equals(other.getItemsList())) return false;
if (getIsTableDriven()
!= other.getIsTableDriven()) return false;
if (!getPreHookFailuresList()
.equals(other.getPreHookFailuresList())) return false;
if (!getPostHookFailuresList()
.equals(other.getPostHookFailuresList())) return false;
if (!getFileName()
.equals(other.getFileName())) return false;
if (!getTagsList()
.equals(other.getTagsList())) return false;
if (!getPreHookMessagesList()
.equals(other.getPreHookMessagesList())) return false;
if (!getPostHookMessagesList()
.equals(other.getPostHookMessagesList())) return false;
if (!getPreHookMessageList()
.equals(other.getPreHookMessageList())) return false;
if (!getPostHookMessageList()
.equals(other.getPostHookMessageList())) return false;
if (!getPreHookScreenshotsList()
.equals(other.getPreHookScreenshotsList())) return false;
if (!getPostHookScreenshotsList()
.equals(other.getPostHookScreenshotsList())) return false;
if (getItemCount()
!= other.getItemCount()) return false;
if (!getPreHookScreenshotFilesList()
.equals(other.getPreHookScreenshotFilesList())) return false;
if (!getPostHookScreenshotFilesList()
.equals(other.getPostHookScreenshotFilesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
specHeading_ = "";
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
} else {
items_ = null;
itemsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
isTableDriven_ = false;
if (preHookFailuresBuilder_ == null) {
preHookFailures_ = java.util.Collections.emptyList();
} else {
preHookFailures_ = null;
preHookFailuresBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (postHookFailuresBuilder_ == null) {
postHookFailures_ = java.util.Collections.emptyList();
} else {
postHookFailures_ = null;
postHookFailuresBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
fileName_ = "";
tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
postHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
itemCount_ = 0L;
preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(gauge.messages.Spec.ProtoSpec result) {
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
if (preHookFailuresBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
preHookFailures_ = java.util.Collections.unmodifiableList(preHookFailures_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.preHookFailures_ = preHookFailures_;
} else {
result.preHookFailures_ = preHookFailuresBuilder_.build();
}
if (postHookFailuresBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
postHookFailures_ = java.util.Collections.unmodifiableList(postHookFailures_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.postHookFailures_ = postHookFailures_;
} else {
result.postHookFailures_ = postHookFailuresBuilder_.build();
}
}
private void buildPartial0(gauge.messages.Spec.ProtoSpec result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.specHeading_ = specHeading_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.isTableDriven_ = isTableDriven_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.fileName_ = fileName_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
tags_.makeImmutable();
result.tags_ = tags_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
preHookMessages_.makeImmutable();
result.preHookMessages_ = preHookMessages_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
postHookMessages_.makeImmutable();
result.postHookMessages_ = postHookMessages_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
preHookMessage_.makeImmutable();
result.preHookMessage_ = preHookMessage_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
postHookMessage_.makeImmutable();
result.postHookMessage_ = postHookMessage_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
preHookScreenshots_.makeImmutable();
result.preHookScreenshots_ = preHookScreenshots_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
postHookScreenshots_.makeImmutable();
result.postHookScreenshots_ = postHookScreenshots_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.itemCount_ = itemCount_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
preHookScreenshotFiles_.makeImmutable();
result.preHookScreenshotFiles_ = preHookScreenshotFiles_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
postHookScreenshotFiles_.makeImmutable();
result.postHookScreenshotFiles_ = postHookScreenshotFiles_;
}
}
@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_;
bitField0_ |= 0x00000001;
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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.alwaysUseFieldBuilders ?
getPostHookFailuresFieldBuilder() : null;
} else {
postHookFailuresBuilder_.addAllMessages(other.postHookFailures_);
}
}
}
if (!other.getFileName().isEmpty()) {
fileName_ = other.fileName_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ |= 0x00000040;
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (!other.preHookMessages_.isEmpty()) {
if (preHookMessages_.isEmpty()) {
preHookMessages_ = other.preHookMessages_;
bitField0_ |= 0x00000080;
} else {
ensurePreHookMessagesIsMutable();
preHookMessages_.addAll(other.preHookMessages_);
}
onChanged();
}
if (!other.postHookMessages_.isEmpty()) {
if (postHookMessages_.isEmpty()) {
postHookMessages_ = other.postHookMessages_;
bitField0_ |= 0x00000100;
} else {
ensurePostHookMessagesIsMutable();
postHookMessages_.addAll(other.postHookMessages_);
}
onChanged();
}
if (!other.preHookMessage_.isEmpty()) {
if (preHookMessage_.isEmpty()) {
preHookMessage_ = other.preHookMessage_;
bitField0_ |= 0x00000200;
} else {
ensurePreHookMessageIsMutable();
preHookMessage_.addAll(other.preHookMessage_);
}
onChanged();
}
if (!other.postHookMessage_.isEmpty()) {
if (postHookMessage_.isEmpty()) {
postHookMessage_ = other.postHookMessage_;
bitField0_ |= 0x00000400;
} else {
ensurePostHookMessageIsMutable();
postHookMessage_.addAll(other.postHookMessage_);
}
onChanged();
}
if (!other.preHookScreenshots_.isEmpty()) {
if (preHookScreenshots_.isEmpty()) {
preHookScreenshots_ = other.preHookScreenshots_;
preHookScreenshots_.makeImmutable();
bitField0_ |= 0x00000800;
} else {
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.addAll(other.preHookScreenshots_);
}
onChanged();
}
if (!other.postHookScreenshots_.isEmpty()) {
if (postHookScreenshots_.isEmpty()) {
postHookScreenshots_ = other.postHookScreenshots_;
postHookScreenshots_.makeImmutable();
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_ |= 0x00004000;
} else {
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.addAll(other.preHookScreenshotFiles_);
}
onChanged();
}
if (!other.postHookScreenshotFiles_.isEmpty()) {
if (postHookScreenshotFiles_.isEmpty()) {
postHookScreenshotFiles_ = other.postHookScreenshotFiles_;
bitField0_ |= 0x00008000;
} else {
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.addAll(other.postHookScreenshotFiles_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
specHeading_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
gauge.messages.Spec.ProtoItem m =
input.readMessage(
gauge.messages.Spec.ProtoItem.parser(),
extensionRegistry);
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(m);
} else {
itemsBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
isTableDriven_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
gauge.messages.Spec.ProtoHookFailure m =
input.readMessage(
gauge.messages.Spec.ProtoHookFailure.parser(),
extensionRegistry);
if (preHookFailuresBuilder_ == null) {
ensurePreHookFailuresIsMutable();
preHookFailures_.add(m);
} else {
preHookFailuresBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
gauge.messages.Spec.ProtoHookFailure m =
input.readMessage(
gauge.messages.Spec.ProtoHookFailure.parser(),
extensionRegistry);
if (postHookFailuresBuilder_ == null) {
ensurePostHookFailuresIsMutable();
postHookFailures_.add(m);
} else {
postHookFailuresBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
fileName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
java.lang.String s = input.readStringRequireUtf8();
ensureTagsIsMutable();
tags_.add(s);
break;
} // case 58
case 66: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookMessagesIsMutable();
preHookMessages_.add(s);
break;
} // case 66
case 74: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookMessagesIsMutable();
postHookMessages_.add(s);
break;
} // case 74
case 82: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookMessageIsMutable();
preHookMessage_.add(s);
break;
} // case 82
case 90: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookMessageIsMutable();
postHookMessage_.add(s);
break;
} // case 90
case 98: {
com.google.protobuf.ByteString v = input.readBytes();
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(v);
break;
} // case 98
case 106: {
com.google.protobuf.ByteString v = input.readBytes();
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(v);
break;
} // case 106
case 112: {
itemCount_ = input.readInt64();
bitField0_ |= 0x00002000;
break;
} // case 112
case 122: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(s);
break;
} // case 122
case 130: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(s);
break;
} // case 130
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object specHeading_ = "";
/**
*
* / Contains the filename for that holds this specification.
*
*
* string fileName = 6;
* @param value The bytes for fileName to set.
* @return This builder for chaining.
*/
public Builder setFileNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
fileName_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTagsIsMutable() {
if (!tags_.isModifiable()) {
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;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
tags_.makeImmutable();
return tags_;
}
/**
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
* @return The count of tags.
*/
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;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTagsIsMutable();
tags_.set(index, value);
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;
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTagsIsMutable();
tags_.add(value);
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;
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePreHookMessagesIsMutable() {
if (!preHookMessages_.isModifiable()) {
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;
* @return A list containing the preHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
preHookMessages_.makeImmutable();
return preHookMessages_;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @return The count of preHookMessages.
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The preHookMessages to set.
* @return This builder for chaining.
*/
public Builder setPreHookMessages(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessagesIsMutable();
preHookMessages_.set(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @param value The preHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPreHookMessages(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @param values The preHookMessages to add.
* @return This builder for chaining.
*/
public Builder addAllPreHookMessages(
java.lang.Iterable values) {
ensurePreHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessages_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 8;
* @param value The bytes of the preHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPreHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePostHookMessagesIsMutable() {
if (!postHookMessages_.isModifiable()) {
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;
* @return A list containing the postHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
postHookMessages_.makeImmutable();
return postHookMessages_;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @return The count of postHookMessages.
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The postHookMessages to set.
* @return This builder for chaining.
*/
public Builder setPostHookMessages(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessagesIsMutable();
postHookMessages_.set(index, value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @param value The postHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPostHookMessages(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @param values The postHookMessages to add.
* @return This builder for chaining.
*/
public Builder addAllPostHookMessages(
java.lang.Iterable values) {
ensurePostHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessages_);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 9;
* @param value The bytes of the postHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPostHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePreHookMessageIsMutable() {
if (!preHookMessage_.isModifiable()) {
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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @return A list containing the preHookMessage.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPreHookMessageList() {
preHookMessage_.makeImmutable();
return preHookMessage_;
}
/**
*
* / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 10 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @return The count of preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param index The index of the element to return.
* @return The preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param index The index of the value to return.
* @return The bytes of the preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param index The index to set the value at.
* @param value The preHookMessage to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPreHookMessage(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessageIsMutable();
preHookMessage_.set(index, value);
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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param value The preHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPreHookMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessageIsMutable();
preHookMessage_.add(value);
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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param values The preHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPreHookMessage(
java.lang.Iterable values) {
ensurePreHookMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessage_);
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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearPreHookMessage() {
preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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];
* @deprecated gauge.messages.ProtoSpec.preHookMessage is deprecated.
* See spec.proto;l=37
* @param value The bytes of the preHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPreHookMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePreHookMessageIsMutable();
preHookMessage_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePostHookMessageIsMutable() {
if (!postHookMessage_.isModifiable()) {
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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @return A list containing the postHookMessage.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPostHookMessageList() {
postHookMessage_.makeImmutable();
return postHookMessage_;
}
/**
*
* / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 11 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @return The count of postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param index The index of the element to return.
* @return The postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param index The index of the value to return.
* @return The bytes of the postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param index The index to set the value at.
* @param value The postHookMessage to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPostHookMessage(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessageIsMutable();
postHookMessage_.set(index, value);
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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param value The postHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPostHookMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessageIsMutable();
postHookMessage_.add(value);
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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param values The postHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPostHookMessage(
java.lang.Iterable values) {
ensurePostHookMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessage_);
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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearPostHookMessage() {
postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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];
* @deprecated gauge.messages.ProtoSpec.postHookMessage is deprecated.
* See spec.proto;l=39
* @param value The bytes of the postHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPostHookMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePostHookMessageIsMutable();
postHookMessage_.add(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList preHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
private void ensurePreHookScreenshotsIsMutable() {
if (!preHookScreenshots_.isModifiable()) {
preHookScreenshots_ = makeMutableCopy(preHookScreenshots_);
}
bitField0_ |= 0x00000800;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @return A list containing the preHookScreenshots.
*/
@java.lang.Deprecated public java.util.List
getPreHookScreenshotsList() {
preHookScreenshots_.makeImmutable();
return preHookScreenshots_;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @return The count of preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @param index The index to set the value at.
* @param value The preHookScreenshots to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPreHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.set(index, value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @param value The preHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPreHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 12 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.preHookScreenshots is deprecated.
* See spec.proto;l=41
* @param values The preHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPreHookScreenshots(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensurePreHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshots_);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @return A list containing the postHookScreenshots.
*/
@java.lang.Deprecated public java.util.List
getPostHookScreenshotsList() {
postHookScreenshots_.makeImmutable();
return postHookScreenshots_;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @return The count of postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @param index The index to set the value at.
* @param value The postHookScreenshots to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPostHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.set(index, value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @param value The postHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPostHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @param values The postHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPostHookScreenshots(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensurePostHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshots_);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 13 [deprecated = true];
* @deprecated gauge.messages.ProtoSpec.postHookScreenshots is deprecated.
* See spec.proto;l=43
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearPostHookScreenshots() {
postHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
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;
* @return The itemCount.
*/
@java.lang.Override
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;
* @param value The itemCount to set.
* @return This builder for chaining.
*/
public Builder setItemCount(long value) {
itemCount_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* / meta field to indicate the number of items in the list
* / used when items are sent as individual chunk
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @return A list containing the preHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
preHookScreenshotFiles_.makeImmutable();
return preHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @return The count of preHookScreenshotFiles.
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The preHookScreenshotFiles to set.
* @return This builder for chaining.
*/
public Builder setPreHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.set(index, value);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @param value The preHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPreHookScreenshotFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @param values The preHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addAllPreHookScreenshotFiles(
java.lang.Iterable values) {
ensurePreHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshotFiles_);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 15;
* @param value The bytes of the preHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPreHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePostHookScreenshotFilesIsMutable() {
if (!postHookScreenshotFiles_.isModifiable()) {
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;
* @return A list containing the postHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
postHookScreenshotFiles_.makeImmutable();
return postHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @return The count of postHookScreenshotFiles.
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The postHookScreenshotFiles to set.
* @return This builder for chaining.
*/
public Builder setPostHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.set(index, value);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @param value The postHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPostHookScreenshotFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 16;
* @param values The postHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addAllPostHookScreenshotFiles(
java.lang.Iterable values) {
ensurePostHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshotFiles_);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* string fileName = 9;
* @return The bytes for fileName.
*/
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoItem)
ProtoItemOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ProtoItem.class.getName());
}
// Use ProtoItem.newBuilder() to construct.
private ProtoItem(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProtoItem() {
itemType_ = 0;
fileName_ = "";
}
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.GeneratedMessage.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
*
*
* 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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ItemType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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)
}
private int bitField0_;
public static final int ITEMTYPE_FIELD_NUMBER = 1;
private int itemType_ = 0;
/**
*
* / Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
* @return The enum numeric value on the wire for itemType.
*/
@java.lang.Override public int getItemTypeValue() {
return itemType_;
}
/**
*
* / Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
* @return The itemType.
*/
@java.lang.Override public gauge.messages.Spec.ProtoItem.ItemType getItemType() {
gauge.messages.Spec.ProtoItem.ItemType result = gauge.messages.Spec.ProtoItem.ItemType.forNumber(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;
* @return Whether the step field is set.
*/
@java.lang.Override
public boolean hasStep() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* / Holds the Step definition. Valid only if ItemType = Step
*
*
* string fileName = 9;
* @return The bytes for fileName.
*/
@java.lang.Override
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getStep());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getConcept());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getScenario());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(5, getTableDrivenScenario());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(6, getComment());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(7, getTable());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(8, getTags());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 9, fileName_);
}
getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStep());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getConcept());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getScenario());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTableDrivenScenario());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getComment());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getTable());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getTags());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileName_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(9, fileName_);
}
size += getUnknownFields().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;
if (itemType_ != other.itemType_) return false;
if (hasStep() != other.hasStep()) return false;
if (hasStep()) {
if (!getStep()
.equals(other.getStep())) return false;
}
if (hasConcept() != other.hasConcept()) return false;
if (hasConcept()) {
if (!getConcept()
.equals(other.getConcept())) return false;
}
if (hasScenario() != other.hasScenario()) return false;
if (hasScenario()) {
if (!getScenario()
.equals(other.getScenario())) return false;
}
if (hasTableDrivenScenario() != other.hasTableDrivenScenario()) return false;
if (hasTableDrivenScenario()) {
if (!getTableDrivenScenario()
.equals(other.getTableDrivenScenario())) return false;
}
if (hasComment() != other.hasComment()) return false;
if (hasComment()) {
if (!getComment()
.equals(other.getComment())) return false;
}
if (hasTable() != other.hasTable()) return false;
if (hasTable()) {
if (!getTable()
.equals(other.getTable())) return false;
}
if (hasTags() != other.hasTags()) return false;
if (hasTags()) {
if (!getTags()
.equals(other.getTags())) return false;
}
if (!getFileName()
.equals(other.getFileName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getStepFieldBuilder();
getConceptFieldBuilder();
getScenarioFieldBuilder();
getTableDrivenScenarioFieldBuilder();
getCommentFieldBuilder();
getTableFieldBuilder();
getTagsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
itemType_ = 0;
step_ = null;
if (stepBuilder_ != null) {
stepBuilder_.dispose();
stepBuilder_ = null;
}
concept_ = null;
if (conceptBuilder_ != null) {
conceptBuilder_.dispose();
conceptBuilder_ = null;
}
scenario_ = null;
if (scenarioBuilder_ != null) {
scenarioBuilder_.dispose();
scenarioBuilder_ = null;
}
tableDrivenScenario_ = null;
if (tableDrivenScenarioBuilder_ != null) {
tableDrivenScenarioBuilder_.dispose();
tableDrivenScenarioBuilder_ = null;
}
comment_ = null;
if (commentBuilder_ != null) {
commentBuilder_.dispose();
commentBuilder_ = null;
}
table_ = null;
if (tableBuilder_ != null) {
tableBuilder_.dispose();
tableBuilder_ = null;
}
tags_ = null;
if (tagsBuilder_ != null) {
tagsBuilder_.dispose();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(gauge.messages.Spec.ProtoItem result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.itemType_ = itemType_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.step_ = stepBuilder_ == null
? step_
: stepBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.concept_ = conceptBuilder_ == null
? concept_
: conceptBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.scenario_ = scenarioBuilder_ == null
? scenario_
: scenarioBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.tableDrivenScenario_ = tableDrivenScenarioBuilder_ == null
? tableDrivenScenario_
: tableDrivenScenarioBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.comment_ = commentBuilder_ == null
? comment_
: commentBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.table_ = tableBuilder_ == null
? table_
: tableBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.tags_ = tagsBuilder_ == null
? tags_
: tagsBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.fileName_ = fileName_;
}
result.bitField0_ |= to_bitField0_;
}
@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_;
bitField0_ |= 0x00000100;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
itemType_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getStepFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getConceptFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getScenarioFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getTableDrivenScenarioFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getCommentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getTableFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getTagsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
fileName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int itemType_ = 0;
/**
*
* / Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
* @return The enum numeric value on the wire for itemType.
*/
@java.lang.Override public int getItemTypeValue() {
return itemType_;
}
/**
*
* / Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
* @param value The enum numeric value on the wire for itemType to set.
* @return This builder for chaining.
*/
public Builder setItemTypeValue(int value) {
itemType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* / Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
* @return The itemType.
*/
@java.lang.Override
public gauge.messages.Spec.ProtoItem.ItemType getItemType() {
gauge.messages.Spec.ProtoItem.ItemType result = gauge.messages.Spec.ProtoItem.ItemType.forNumber(itemType_);
return result == null ? gauge.messages.Spec.ProtoItem.ItemType.UNRECOGNIZED : result;
}
/**
*
* / Itemtype of the current ProtoItem
*
*
* .gauge.messages.ProtoItem.ItemType itemType = 1;
* @param value The itemType to set.
* @return This builder for chaining.
*/
public Builder setItemType(gauge.messages.Spec.ProtoItem.ItemType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
itemType_ = value.getNumber();
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;
* @return A list containing the tags.
*/
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;
* @return The count of tags.
*/
int getTagsCount();
/**
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
com.google.protobuf.ByteString
getTagsBytes(int index);
/**
*
* / Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 8;
* @return The executionTime.
*/
long getExecutionTime();
/**
*
* / Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.skipped is deprecated.
* See spec.proto;l=113
* @return The skipped.
*/
@java.lang.Deprecated boolean getSkipped();
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @return A list containing the skipErrors.
*/
java.util.List
getSkipErrorsList();
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @return The count of skipErrors.
*/
int getSkipErrorsCount();
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @param index The index of the element to return.
* @return The skipErrors at the given index.
*/
java.lang.String getSkipErrors(int index);
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @param index The index of the value to return.
* @return The bytes of the skipErrors at the given index.
*/
com.google.protobuf.ByteString
getSkipErrorsBytes(int index);
/**
*
* / Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
* @return The iD.
*/
java.lang.String getID();
/**
*
* / Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
* @return The bytes for iD.
*/
com.google.protobuf.ByteString
getIDBytes();
/**
*
* / Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
* @return The enum numeric value on the wire for executionStatus.
*/
int getExecutionStatusValue();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @return A list containing the preHookMessages.
*/
java.util.List
getPreHookMessagesList();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @return The count of preHookMessages.
*/
int getPreHookMessagesCount();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
java.lang.String getPreHookMessages(int index);
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
com.google.protobuf.ByteString
getPreHookMessagesBytes(int index);
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @return A list containing the postHookMessages.
*/
java.util.List
getPostHookMessagesList();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @return The count of postHookMessages.
*/
int getPostHookMessagesCount();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
java.lang.String getPostHookMessages(int index);
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @return A list containing the preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @return The count of preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param index The index of the element to return.
* @return The preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param index The index of the value to return.
* @return The bytes of the preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @return A list containing the postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @return The count of postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param index The index of the element to return.
* @return The postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param index The index of the value to return.
* @return The bytes of the postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @return A list containing the preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @return The count of preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @return A list containing the postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @return The count of postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@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;
* @return A list containing the preHookScreenshotFiles.
*/
java.util.List
getPreHookScreenshotFilesList();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @return The count of preHookScreenshotFiles.
*/
int getPreHookScreenshotFilesCount();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
java.lang.String getPreHookScreenshotFiles(int index);
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index);
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @return A list containing the postHookScreenshotFiles.
*/
java.util.List
getPostHookScreenshotFilesList();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @return The count of postHookScreenshotFiles.
*/
int getPostHookScreenshotFilesCount();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
java.lang.String getPostHookScreenshotFiles(int index);
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index);
/**
*
* / Number of retires
*
*
* int64 retriesCount = 23;
* @return The retriesCount.
*/
long getRetriesCount();
}
/**
*
* / Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 6;
*/
@java.lang.Override
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
public static final int TAGS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
* @return A list containing the tags.
*/
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;
* @return The count of tags.
*/
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;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int EXECUTIONTIME_FIELD_NUMBER = 8;
private long executionTime_ = 0L;
/**
*
* / Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 8;
* @return The executionTime.
*/
@java.lang.Override
public long getExecutionTime() {
return executionTime_;
}
public static final int SKIPPED_FIELD_NUMBER = 9;
private boolean skipped_ = false;
/**
*
* / Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.skipped is deprecated.
* See spec.proto;l=113
* @return The skipped.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getSkipped() {
return skipped_;
}
public static final int SKIPERRORS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList skipErrors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @return A list containing the skipErrors.
*/
public com.google.protobuf.ProtocolStringList
getSkipErrorsList() {
return skipErrors_;
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @return The count of skipErrors.
*/
public int getSkipErrorsCount() {
return skipErrors_.size();
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @param index The index of the element to return.
* @return The skipErrors at the given index.
*/
public java.lang.String getSkipErrors(int index) {
return skipErrors_.get(index);
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @param index The index of the value to return.
* @return The bytes of the skipErrors at the given index.
*/
public com.google.protobuf.ByteString
getSkipErrorsBytes(int index) {
return skipErrors_.getByteString(index);
}
public static final int ID_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object iD_ = "";
/**
*
* / Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
* @return The iD.
*/
@java.lang.Override
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;
* @return The bytes for iD.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private java.util.List tearDownSteps_;
/**
*
* / Collection of Teardown steps. The Teardown steps are executed after every run.
*
*
* .gauge.messages.Span span = 13;
*/
@java.lang.Override
public gauge.messages.Spec.SpanOrBuilder getSpanOrBuilder() {
return span_ == null ? gauge.messages.Spec.Span.getDefaultInstance() : span_;
}
public static final int EXECUTIONSTATUS_FIELD_NUMBER = 14;
private int executionStatus_ = 0;
/**
*
* / Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
* @return The enum numeric value on the wire for executionStatus.
*/
@java.lang.Override public int getExecutionStatusValue() {
return executionStatus_;
}
/**
*
* / Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
* @return The executionStatus.
*/
@java.lang.Override public gauge.messages.Spec.ExecutionStatus getExecutionStatus() {
gauge.messages.Spec.ExecutionStatus result = gauge.messages.Spec.ExecutionStatus.forNumber(executionStatus_);
return result == null ? gauge.messages.Spec.ExecutionStatus.UNRECOGNIZED : result;
}
public static final int PREHOOKMESSAGES_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @return A list containing the preHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @return The count of preHookMessages.
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
public static final int POSTHOOKMESSAGES_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @return A list containing the postHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @return The count of postHookMessages.
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
public static final int PREHOOKMESSAGE_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @return A list containing the preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @return The count of preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param index The index of the element to return.
* @return The preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param index The index of the value to return.
* @return The bytes of the preHookMessage at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPreHookMessageBytes(int index) {
return preHookMessage_.getByteString(index);
}
public static final int POSTHOOKMESSAGE_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @return A list containing the postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @return The count of postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param index The index of the element to return.
* @return The postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param index The index of the value to return.
* @return The bytes of the postHookMessage at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPostHookMessageBytes(int index) {
return postHookMessage_.getByteString(index);
}
public static final int PREHOOKSCREENSHOTS_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList preHookScreenshots_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @return A list containing the preHookScreenshots.
*/
@java.lang.Override
@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];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @return The count of preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
public static final int POSTHOOKSCREENSHOTS_FIELD_NUMBER = 20;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList postHookScreenshots_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @return A list containing the postHookScreenshots.
*/
@java.lang.Override
@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];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @return The count of postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPostHookScreenshots(int index) {
return postHookScreenshots_.get(index);
}
public static final int PREHOOKSCREENSHOTFILES_FIELD_NUMBER = 21;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @return A list containing the preHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @return The count of preHookScreenshotFiles.
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
public static final int POSTHOOKSCREENSHOTFILES_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @return A list containing the postHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @return The count of postHookScreenshotFiles.
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
public com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index) {
return postHookScreenshotFiles_.getByteString(index);
}
public static final int RETRIESCOUNT_FIELD_NUMBER = 23;
private long retriesCount_ = 0L;
/**
*
* / Number of retires
*
*
* int64 retriesCount = 23;
* @return The retriesCount.
*/
@java.lang.Override
public long getRetriesCount() {
return retriesCount_;
}
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(scenarioHeading_)) {
com.google.protobuf.GeneratedMessage.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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getPreHookFailure());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getPostHookFailure());
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.writeString(output, 10, skipErrors_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iD_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 11, iD_);
}
for (int i = 0; i < tearDownSteps_.size(); i++) {
output.writeMessage(12, tearDownSteps_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
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.GeneratedMessage.writeString(output, 15, preHookMessages_.getRaw(i));
}
for (int i = 0; i < postHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 16, postHookMessages_.getRaw(i));
}
for (int i = 0; i < preHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 17, preHookMessage_.getRaw(i));
}
for (int i = 0; i < postHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.writeString(output, 21, preHookScreenshotFiles_.getRaw(i));
}
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 22, postHookScreenshotFiles_.getRaw(i));
}
if (retriesCount_ != 0L) {
output.writeInt64(23, retriesCount_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scenarioHeading_)) {
size += com.google.protobuf.GeneratedMessage.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 (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPreHookFailure());
}
if (((bitField0_ & 0x00000002) != 0)) {
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(iD_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(11, iD_);
}
for (int i = 0; i < tearDownSteps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, tearDownSteps_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
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();
}
if (retriesCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(23, retriesCount_);
}
size += getUnknownFields().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;
if (!getScenarioHeading()
.equals(other.getScenarioHeading())) return false;
if (getFailed()
!= other.getFailed()) return false;
if (!getContextsList()
.equals(other.getContextsList())) return false;
if (!getScenarioItemsList()
.equals(other.getScenarioItemsList())) return false;
if (hasPreHookFailure() != other.hasPreHookFailure()) return false;
if (hasPreHookFailure()) {
if (!getPreHookFailure()
.equals(other.getPreHookFailure())) return false;
}
if (hasPostHookFailure() != other.hasPostHookFailure()) return false;
if (hasPostHookFailure()) {
if (!getPostHookFailure()
.equals(other.getPostHookFailure())) return false;
}
if (!getTagsList()
.equals(other.getTagsList())) return false;
if (getExecutionTime()
!= other.getExecutionTime()) return false;
if (getSkipped()
!= other.getSkipped()) return false;
if (!getSkipErrorsList()
.equals(other.getSkipErrorsList())) return false;
if (!getID()
.equals(other.getID())) return false;
if (!getTearDownStepsList()
.equals(other.getTearDownStepsList())) return false;
if (hasSpan() != other.hasSpan()) return false;
if (hasSpan()) {
if (!getSpan()
.equals(other.getSpan())) return false;
}
if (executionStatus_ != other.executionStatus_) return false;
if (!getPreHookMessagesList()
.equals(other.getPreHookMessagesList())) return false;
if (!getPostHookMessagesList()
.equals(other.getPostHookMessagesList())) return false;
if (!getPreHookMessageList()
.equals(other.getPreHookMessageList())) return false;
if (!getPostHookMessageList()
.equals(other.getPostHookMessageList())) return false;
if (!getPreHookScreenshotsList()
.equals(other.getPreHookScreenshotsList())) return false;
if (!getPostHookScreenshotsList()
.equals(other.getPostHookScreenshotsList())) return false;
if (!getPreHookScreenshotFilesList()
.equals(other.getPreHookScreenshotFilesList())) return false;
if (!getPostHookScreenshotFilesList()
.equals(other.getPostHookScreenshotFilesList())) return false;
if (getRetriesCount()
!= other.getRetriesCount()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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 = (37 * hash) + RETRIESCOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRetriesCount());
hash = (29 * hash) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoScenario parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoScenario parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getContextsFieldBuilder();
getScenarioItemsFieldBuilder();
getPreHookFailureFieldBuilder();
getPostHookFailureFieldBuilder();
getTearDownStepsFieldBuilder();
getSpanFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scenarioHeading_ = "";
failed_ = false;
if (contextsBuilder_ == null) {
contexts_ = java.util.Collections.emptyList();
} else {
contexts_ = null;
contextsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (scenarioItemsBuilder_ == null) {
scenarioItems_ = java.util.Collections.emptyList();
} else {
scenarioItems_ = null;
scenarioItemsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
preHookFailure_ = null;
if (preHookFailureBuilder_ != null) {
preHookFailureBuilder_.dispose();
preHookFailureBuilder_ = null;
}
postHookFailure_ = null;
if (postHookFailureBuilder_ != null) {
postHookFailureBuilder_.dispose();
postHookFailureBuilder_ = null;
}
tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
executionTime_ = 0L;
skipped_ = false;
skipErrors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
iD_ = "";
if (tearDownStepsBuilder_ == null) {
tearDownSteps_ = java.util.Collections.emptyList();
} else {
tearDownSteps_ = null;
tearDownStepsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
span_ = null;
if (spanBuilder_ != null) {
spanBuilder_.dispose();
spanBuilder_ = null;
}
executionStatus_ = 0;
preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
postHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
retriesCount_ = 0L;
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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(gauge.messages.Spec.ProtoScenario result) {
if (contextsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
contexts_ = java.util.Collections.unmodifiableList(contexts_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.contexts_ = contexts_;
} else {
result.contexts_ = contextsBuilder_.build();
}
if (scenarioItemsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
scenarioItems_ = java.util.Collections.unmodifiableList(scenarioItems_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.scenarioItems_ = scenarioItems_;
} else {
result.scenarioItems_ = scenarioItemsBuilder_.build();
}
if (tearDownStepsBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
tearDownSteps_ = java.util.Collections.unmodifiableList(tearDownSteps_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.tearDownSteps_ = tearDownSteps_;
} else {
result.tearDownSteps_ = tearDownStepsBuilder_.build();
}
}
private void buildPartial0(gauge.messages.Spec.ProtoScenario result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scenarioHeading_ = scenarioHeading_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.failed_ = failed_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.preHookFailure_ = preHookFailureBuilder_ == null
? preHookFailure_
: preHookFailureBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.postHookFailure_ = postHookFailureBuilder_ == null
? postHookFailure_
: postHookFailureBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
tags_.makeImmutable();
result.tags_ = tags_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.executionTime_ = executionTime_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.skipped_ = skipped_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
skipErrors_.makeImmutable();
result.skipErrors_ = skipErrors_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.iD_ = iD_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.span_ = spanBuilder_ == null
? span_
: spanBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.executionStatus_ = executionStatus_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
preHookMessages_.makeImmutable();
result.preHookMessages_ = preHookMessages_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
postHookMessages_.makeImmutable();
result.postHookMessages_ = postHookMessages_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
preHookMessage_.makeImmutable();
result.preHookMessage_ = preHookMessage_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
postHookMessage_.makeImmutable();
result.postHookMessage_ = postHookMessage_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
preHookScreenshots_.makeImmutable();
result.preHookScreenshots_ = preHookScreenshots_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
postHookScreenshots_.makeImmutable();
result.postHookScreenshots_ = postHookScreenshots_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
preHookScreenshotFiles_.makeImmutable();
result.preHookScreenshotFiles_ = preHookScreenshotFiles_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
postHookScreenshotFiles_.makeImmutable();
result.postHookScreenshotFiles_ = postHookScreenshotFiles_;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.retriesCount_ = retriesCount_;
}
result.bitField0_ |= to_bitField0_;
}
@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_;
bitField0_ |= 0x00000001;
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.GeneratedMessage.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.GeneratedMessage.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_ |= 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_ |= 0x00000200;
} else {
ensureSkipErrorsIsMutable();
skipErrors_.addAll(other.skipErrors_);
}
onChanged();
}
if (!other.getID().isEmpty()) {
iD_ = other.iD_;
bitField0_ |= 0x00000400;
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.GeneratedMessage.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_ |= 0x00004000;
} else {
ensurePreHookMessagesIsMutable();
preHookMessages_.addAll(other.preHookMessages_);
}
onChanged();
}
if (!other.postHookMessages_.isEmpty()) {
if (postHookMessages_.isEmpty()) {
postHookMessages_ = other.postHookMessages_;
bitField0_ |= 0x00008000;
} else {
ensurePostHookMessagesIsMutable();
postHookMessages_.addAll(other.postHookMessages_);
}
onChanged();
}
if (!other.preHookMessage_.isEmpty()) {
if (preHookMessage_.isEmpty()) {
preHookMessage_ = other.preHookMessage_;
bitField0_ |= 0x00010000;
} else {
ensurePreHookMessageIsMutable();
preHookMessage_.addAll(other.preHookMessage_);
}
onChanged();
}
if (!other.postHookMessage_.isEmpty()) {
if (postHookMessage_.isEmpty()) {
postHookMessage_ = other.postHookMessage_;
bitField0_ |= 0x00020000;
} else {
ensurePostHookMessageIsMutable();
postHookMessage_.addAll(other.postHookMessage_);
}
onChanged();
}
if (!other.preHookScreenshots_.isEmpty()) {
if (preHookScreenshots_.isEmpty()) {
preHookScreenshots_ = other.preHookScreenshots_;
preHookScreenshots_.makeImmutable();
bitField0_ |= 0x00040000;
} else {
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.addAll(other.preHookScreenshots_);
}
onChanged();
}
if (!other.postHookScreenshots_.isEmpty()) {
if (postHookScreenshots_.isEmpty()) {
postHookScreenshots_ = other.postHookScreenshots_;
postHookScreenshots_.makeImmutable();
bitField0_ |= 0x00080000;
} else {
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.addAll(other.postHookScreenshots_);
}
onChanged();
}
if (!other.preHookScreenshotFiles_.isEmpty()) {
if (preHookScreenshotFiles_.isEmpty()) {
preHookScreenshotFiles_ = other.preHookScreenshotFiles_;
bitField0_ |= 0x00100000;
} else {
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.addAll(other.preHookScreenshotFiles_);
}
onChanged();
}
if (!other.postHookScreenshotFiles_.isEmpty()) {
if (postHookScreenshotFiles_.isEmpty()) {
postHookScreenshotFiles_ = other.postHookScreenshotFiles_;
bitField0_ |= 0x00200000;
} else {
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.addAll(other.postHookScreenshotFiles_);
}
onChanged();
}
if (other.getRetriesCount() != 0L) {
setRetriesCount(other.getRetriesCount());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
scenarioHeading_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
failed_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
gauge.messages.Spec.ProtoItem m =
input.readMessage(
gauge.messages.Spec.ProtoItem.parser(),
extensionRegistry);
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.add(m);
} else {
contextsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
gauge.messages.Spec.ProtoItem m =
input.readMessage(
gauge.messages.Spec.ProtoItem.parser(),
extensionRegistry);
if (scenarioItemsBuilder_ == null) {
ensureScenarioItemsIsMutable();
scenarioItems_.add(m);
} else {
scenarioItemsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
input.readMessage(
getPreHookFailureFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getPostHookFailureFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
java.lang.String s = input.readStringRequireUtf8();
ensureTagsIsMutable();
tags_.add(s);
break;
} // case 58
case 64: {
executionTime_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
skipped_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
java.lang.String s = input.readStringRequireUtf8();
ensureSkipErrorsIsMutable();
skipErrors_.add(s);
break;
} // case 82
case 90: {
iD_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
gauge.messages.Spec.ProtoItem m =
input.readMessage(
gauge.messages.Spec.ProtoItem.parser(),
extensionRegistry);
if (tearDownStepsBuilder_ == null) {
ensureTearDownStepsIsMutable();
tearDownSteps_.add(m);
} else {
tearDownStepsBuilder_.addMessage(m);
}
break;
} // case 98
case 106: {
input.readMessage(
getSpanFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 106
case 112: {
executionStatus_ = input.readEnum();
bitField0_ |= 0x00002000;
break;
} // case 112
case 122: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookMessagesIsMutable();
preHookMessages_.add(s);
break;
} // case 122
case 130: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookMessagesIsMutable();
postHookMessages_.add(s);
break;
} // case 130
case 138: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookMessageIsMutable();
preHookMessage_.add(s);
break;
} // case 138
case 146: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookMessageIsMutable();
postHookMessage_.add(s);
break;
} // case 146
case 154: {
com.google.protobuf.ByteString v = input.readBytes();
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(v);
break;
} // case 154
case 162: {
com.google.protobuf.ByteString v = input.readBytes();
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(v);
break;
} // case 162
case 170: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(s);
break;
} // case 170
case 178: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(s);
break;
} // case 178
case 184: {
retriesCount_ = input.readInt64();
bitField0_ |= 0x00400000;
break;
} // case 184
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object scenarioHeading_ = "";
/**
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
tags_.makeImmutable();
return tags_;
}
/**
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
* @return The count of tags.
*/
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;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTagsIsMutable();
tags_.set(index, value);
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;
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTagsIsMutable();
tags_.add(value);
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;
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
* / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
*
*
* repeated string tags = 7;
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private long executionTime_ ;
/**
*
* / Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 8;
* @return The executionTime.
*/
@java.lang.Override
public long getExecutionTime() {
return executionTime_;
}
/**
*
* / Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 8;
* @param value The executionTime to set.
* @return This builder for chaining.
*/
public Builder setExecutionTime(long value) {
executionTime_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / Holds the time taken for executing this scenario.
*
* / Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.skipped is deprecated.
* See spec.proto;l=113
* @return The skipped.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getSkipped() {
return skipped_;
}
/**
*
* / Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.skipped is deprecated.
* See spec.proto;l=113
* @param value The skipped to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setSkipped(boolean value) {
skipped_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* / Flag to indicate if the Scenario execution is skipped
*
*
* bool skipped = 9 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.skipped is deprecated.
* See spec.proto;l=113
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearSkipped() {
bitField0_ = (bitField0_ & ~0x00000100);
skipped_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList skipErrors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSkipErrorsIsMutable() {
if (!skipErrors_.isModifiable()) {
skipErrors_ = new com.google.protobuf.LazyStringArrayList(skipErrors_);
}
bitField0_ |= 0x00000200;
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @return A list containing the skipErrors.
*/
public com.google.protobuf.ProtocolStringList
getSkipErrorsList() {
skipErrors_.makeImmutable();
return skipErrors_;
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @return The count of skipErrors.
*/
public int getSkipErrorsCount() {
return skipErrors_.size();
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @param index The index of the element to return.
* @return The skipErrors at the given index.
*/
public java.lang.String getSkipErrors(int index) {
return skipErrors_.get(index);
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @param index The index of the value to return.
* @return The bytes of the skipErrors at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The skipErrors to set.
* @return This builder for chaining.
*/
public Builder setSkipErrors(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSkipErrorsIsMutable();
skipErrors_.set(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @param value The skipErrors to add.
* @return This builder for chaining.
*/
public Builder addSkipErrors(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSkipErrorsIsMutable();
skipErrors_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @param values The skipErrors to add.
* @return This builder for chaining.
*/
public Builder addAllSkipErrors(
java.lang.Iterable values) {
ensureSkipErrorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, skipErrors_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* / Holds the error messages for skipping scenario from execution
*
* / Holds the error messages for skipping scenario from execution
*
*
* repeated string skipErrors = 10;
* @param value The bytes of the skipErrors to add.
* @return This builder for chaining.
*/
public Builder addSkipErrorsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureSkipErrorsIsMutable();
skipErrors_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object iD_ = "";
/**
*
* / Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
* @return The iD.
*/
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;
* @return The bytes for iD.
*/
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;
* @param value The iD to set.
* @return This builder for chaining.
*/
public Builder setID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
iD_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* / Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
* @return This builder for chaining.
*/
public Builder clearID() {
iD_ = getDefaultInstance().getID();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
* / Holds the unique Identifier of a scenario.
*
*
* string ID = 11;
* @param value The bytes for iD to set.
* @return This builder for chaining.
*/
public Builder setIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
iD_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.util.List tearDownSteps_ =
java.util.Collections.emptyList();
private void ensureTearDownStepsIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
tearDownSteps_ = new java.util.ArrayList(tearDownSteps_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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.
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
* @return The enum numeric value on the wire for executionStatus.
*/
@java.lang.Override public int getExecutionStatusValue() {
return executionStatus_;
}
/**
*
* / Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
* @param value The enum numeric value on the wire for executionStatus to set.
* @return This builder for chaining.
*/
public Builder setExecutionStatusValue(int value) {
executionStatus_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* / Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
* @return The executionStatus.
*/
@java.lang.Override
public gauge.messages.Spec.ExecutionStatus getExecutionStatus() {
gauge.messages.Spec.ExecutionStatus result = gauge.messages.Spec.ExecutionStatus.forNumber(executionStatus_);
return result == null ? gauge.messages.Spec.ExecutionStatus.UNRECOGNIZED : result;
}
/**
*
* / Execution status for the scenario
*
*
* .gauge.messages.ExecutionStatus executionStatus = 14;
* @param value The executionStatus to set.
* @return This builder for chaining.
*/
public Builder setExecutionStatus(gauge.messages.Spec.ExecutionStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
executionStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @return A list containing the preHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
preHookMessages_.makeImmutable();
return preHookMessages_;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @return The count of preHookMessages.
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The preHookMessages to set.
* @return This builder for chaining.
*/
public Builder setPreHookMessages(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessagesIsMutable();
preHookMessages_.set(index, value);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @param value The preHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPreHookMessages(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @param values The preHookMessages to add.
* @return This builder for chaining.
*/
public Builder addAllPreHookMessages(
java.lang.Iterable values) {
ensurePreHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessages_);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 15;
* @param value The bytes of the preHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPreHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePostHookMessagesIsMutable() {
if (!postHookMessages_.isModifiable()) {
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;
* @return A list containing the postHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
postHookMessages_.makeImmutable();
return postHookMessages_;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @return The count of postHookMessages.
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The postHookMessages to set.
* @return This builder for chaining.
*/
public Builder setPostHookMessages(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessagesIsMutable();
postHookMessages_.set(index, value);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @param value The postHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPostHookMessages(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @param values The postHookMessages to add.
* @return This builder for chaining.
*/
public Builder addAllPostHookMessages(
java.lang.Iterable values) {
ensurePostHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessages_);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 16;
* @param value The bytes of the postHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPostHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePreHookMessageIsMutable() {
if (!preHookMessage_.isModifiable()) {
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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @return A list containing the preHookMessage.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPreHookMessageList() {
preHookMessage_.makeImmutable();
return preHookMessage_;
}
/**
*
* / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 17 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @return The count of preHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param index The index of the element to return.
* @return The preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param index The index of the value to return.
* @return The bytes of the preHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param index The index to set the value at.
* @param value The preHookMessage to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPreHookMessage(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessageIsMutable();
preHookMessage_.set(index, value);
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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param value The preHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPreHookMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessageIsMutable();
preHookMessage_.add(value);
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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param values The preHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPreHookMessage(
java.lang.Iterable values) {
ensurePreHookMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessage_);
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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearPreHookMessage() {
preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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];
* @deprecated gauge.messages.ProtoScenario.preHookMessage is deprecated.
* See spec.proto;l=129
* @param value The bytes of the preHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPreHookMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePreHookMessageIsMutable();
preHookMessage_.add(value);
bitField0_ |= 0x00010000;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePostHookMessageIsMutable() {
if (!postHookMessage_.isModifiable()) {
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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @return A list containing the postHookMessage.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getPostHookMessageList() {
postHookMessage_.makeImmutable();
return postHookMessage_;
}
/**
*
* / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 18 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @return The count of postHookMessage.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param index The index of the element to return.
* @return The postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param index The index of the value to return.
* @return The bytes of the postHookMessage at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param index The index to set the value at.
* @param value The postHookMessage to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPostHookMessage(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessageIsMutable();
postHookMessage_.set(index, value);
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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param value The postHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPostHookMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessageIsMutable();
postHookMessage_.add(value);
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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param values The postHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPostHookMessage(
java.lang.Iterable values) {
ensurePostHookMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessage_);
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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearPostHookMessage() {
postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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];
* @deprecated gauge.messages.ProtoScenario.postHookMessage is deprecated.
* See spec.proto;l=131
* @param value The bytes of the postHookMessage to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPostHookMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePostHookMessageIsMutable();
postHookMessage_.add(value);
bitField0_ |= 0x00020000;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList preHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
private void ensurePreHookScreenshotsIsMutable() {
if (!preHookScreenshots_.isModifiable()) {
preHookScreenshots_ = makeMutableCopy(preHookScreenshots_);
}
bitField0_ |= 0x00040000;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @return A list containing the preHookScreenshots.
*/
@java.lang.Deprecated public java.util.List
getPreHookScreenshotsList() {
preHookScreenshots_.makeImmutable();
return preHookScreenshots_;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @return The count of preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @param index The index to set the value at.
* @param value The preHookScreenshots to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPreHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.set(index, value);
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @param value The preHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPreHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(value);
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 19 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.preHookScreenshots is deprecated.
* See spec.proto;l=133
* @param values The preHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPreHookScreenshots(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensurePreHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshots_);
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @return A list containing the postHookScreenshots.
*/
@java.lang.Deprecated public java.util.List
getPostHookScreenshotsList() {
postHookScreenshots_.makeImmutable();
return postHookScreenshots_;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @return The count of postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @param index The index to set the value at.
* @param value The postHookScreenshots to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPostHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.set(index, value);
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @param value The postHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPostHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(value);
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @param values The postHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPostHookScreenshots(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensurePostHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshots_);
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 20 [deprecated = true];
* @deprecated gauge.messages.ProtoScenario.postHookScreenshots is deprecated.
* See spec.proto;l=135
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearPostHookScreenshots() {
postHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePreHookScreenshotFilesIsMutable() {
if (!preHookScreenshotFiles_.isModifiable()) {
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;
* @return A list containing the preHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
preHookScreenshotFiles_.makeImmutable();
return preHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @return The count of preHookScreenshotFiles.
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The preHookScreenshotFiles to set.
* @return This builder for chaining.
*/
public Builder setPreHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.set(index, value);
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param value The preHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPreHookScreenshotFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param values The preHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addAllPreHookScreenshotFiles(
java.lang.Iterable values) {
ensurePreHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshotFiles_);
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param value The bytes of the preHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPreHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
bitField0_ |= 0x00100000;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePostHookScreenshotFilesIsMutable() {
if (!postHookScreenshotFiles_.isModifiable()) {
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;
* @return A list containing the postHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
postHookScreenshotFiles_.makeImmutable();
return postHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @return The count of postHookScreenshotFiles.
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The postHookScreenshotFiles to set.
* @return This builder for chaining.
*/
public Builder setPostHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.set(index, value);
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param value The postHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPostHookScreenshotFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param values The postHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addAllPostHookScreenshotFiles(
java.lang.Iterable values) {
ensurePostHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshotFiles_);
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param value The bytes of the postHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPostHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
bitField0_ |= 0x00200000;
onChanged();
return this;
}
private long retriesCount_ ;
/**
*
* / Number of retires
*
*
* int64 retriesCount = 23;
* @return The retriesCount.
*/
@java.lang.Override
public long getRetriesCount() {
return retriesCount_;
}
/**
*
* / Number of retires
*
*
* int64 retriesCount = 23;
* @param value The retriesCount to set.
* @return This builder for chaining.
*/
public Builder setRetriesCount(long value) {
retriesCount_ = value;
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
* / Number of retires
*
*
* int64 retriesCount = 23;
* @return This builder for chaining.
*/
public Builder clearRetriesCount() {
bitField0_ = (bitField0_ & ~0x00400000);
retriesCount_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoScenario)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoScenario)
private static final gauge.messages.Spec.ProtoScenario DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoScenario();
}
public static gauge.messages.Spec.ProtoScenario getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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;
* @return The start.
*/
long getStart();
/**
* int64 end = 2;
* @return The end.
*/
long getEnd();
/**
* int64 startChar = 3;
* @return The startChar.
*/
long getStartChar();
/**
* int64 endChar = 4;
* @return The endChar.
*/
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.Span)
SpanOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
Span.class.getName());
}
// Use Span.newBuilder() to construct.
private Span(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Span() {
}
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.GeneratedMessage.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_ = 0L;
/**
* int64 start = 1;
* @return The start.
*/
@java.lang.Override
public long getStart() {
return start_;
}
public static final int END_FIELD_NUMBER = 2;
private long end_ = 0L;
/**
* int64 end = 2;
* @return The end.
*/
@java.lang.Override
public long getEnd() {
return end_;
}
public static final int STARTCHAR_FIELD_NUMBER = 3;
private long startChar_ = 0L;
/**
* int64 startChar = 3;
* @return The startChar.
*/
@java.lang.Override
public long getStartChar() {
return startChar_;
}
public static final int ENDCHAR_FIELD_NUMBER = 4;
private long endChar_ = 0L;
/**
* int64 endChar = 4;
* @return The endChar.
*/
@java.lang.Override
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_);
}
getUnknownFields().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 += getUnknownFields().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;
if (getStart()
!= other.getStart()) return false;
if (getEnd()
!= other.getEnd()) return false;
if (getStartChar()
!= other.getStartChar()) return false;
if (getEndChar()
!= other.getEndChar()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.Span parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.Span parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(gauge.messages.Spec.Span result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.start_ = start_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.end_ = end_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.startChar_ = startChar_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.endChar_ = endChar_;
}
}
@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.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
start_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
end_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
startChar_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
endChar_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long start_ ;
/**
* int64 start = 1;
* @return The start.
*/
@java.lang.Override
public long getStart() {
return start_;
}
/**
* int64 start = 1;
* @param value The start to set.
* @return This builder for chaining.
*/
public Builder setStart(long value) {
start_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 start = 1;
* @return This builder for chaining.
*/
public Builder clearStart() {
bitField0_ = (bitField0_ & ~0x00000001);
start_ = 0L;
onChanged();
return this;
}
private long end_ ;
/**
* int64 end = 2;
* @return The end.
*/
@java.lang.Override
public long getEnd() {
return end_;
}
/**
* int64 end = 2;
* @param value The end to set.
* @return This builder for chaining.
*/
public Builder setEnd(long value) {
end_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 end = 2;
* @return This builder for chaining.
*/
public Builder clearEnd() {
bitField0_ = (bitField0_ & ~0x00000002);
end_ = 0L;
onChanged();
return this;
}
private long startChar_ ;
/**
* int64 startChar = 3;
* @return The startChar.
*/
@java.lang.Override
public long getStartChar() {
return startChar_;
}
/**
* int64 startChar = 3;
* @param value The startChar to set.
* @return This builder for chaining.
*/
public Builder setStartChar(long value) {
startChar_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 startChar = 3;
* @return This builder for chaining.
*/
public Builder clearStartChar() {
bitField0_ = (bitField0_ & ~0x00000004);
startChar_ = 0L;
onChanged();
return this;
}
private long endChar_ ;
/**
* int64 endChar = 4;
* @return The endChar.
*/
@java.lang.Override
public long getEndChar() {
return endChar_;
}
/**
* int64 endChar = 4;
* @param value The endChar to set.
* @return This builder for chaining.
*/
public Builder setEndChar(long value) {
endChar_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int64 endChar = 4;
* @return This builder for chaining.
*/
public Builder clearEndChar() {
bitField0_ = (bitField0_ & ~0x00000008);
endChar_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.Span)
}
// @@protoc_insertion_point(class_scope:gauge.messages.Span)
private static final gauge.messages.Spec.Span DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.Span();
}
public static gauge.messages.Spec.Span getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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;
* @return Whether the scenario field is set.
*/
boolean hasScenario();
/**
*
*
* .gauge.messages.ProtoScenario scenario = 1;
*/
@java.lang.Override
public gauge.messages.Spec.ProtoScenarioOrBuilder getScenarioOrBuilder() {
return scenario_ == null ? gauge.messages.Spec.ProtoScenario.getDefaultInstance() : scenario_;
}
public static final int TABLEROWINDEX_FIELD_NUMBER = 2;
private int tableRowIndex_ = 0;
/**
*
* / Row Index of data table against which the current scenario is executed
*
*
* int32 tableRowIndex = 2;
* @return The tableRowIndex.
*/
@java.lang.Override
public int getTableRowIndex() {
return tableRowIndex_;
}
public static final int SCENARIOTABLEROWINDEX_FIELD_NUMBER = 3;
private int scenarioTableRowIndex_ = 0;
/**
*
* / Row Index of scenario data table against which the current scenario is executed
*
*
* int32 scenarioTableRowIndex = 3;
* @return The scenarioTableRowIndex.
*/
@java.lang.Override
public int getScenarioTableRowIndex() {
return scenarioTableRowIndex_;
}
public static final int ISSPECTABLEDRIVEN_FIELD_NUMBER = 4;
private boolean isSpecTableDriven_ = false;
/**
*
* / Executed against a spec data table
*
*
* bool isSpecTableDriven = 4;
* @return The isSpecTableDriven.
*/
@java.lang.Override
public boolean getIsSpecTableDriven() {
return isSpecTableDriven_;
}
public static final int ISSCENARIOTABLEDRIVEN_FIELD_NUMBER = 5;
private boolean isScenarioTableDriven_ = false;
/**
*
* / Executed against a scenario data table
*
*
* bool isScenarioTableDriven = 5;
* @return The isScenarioTableDriven.
*/
@java.lang.Override
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;
* @return Whether the scenarioDataTable field is set.
*/
@java.lang.Override
public boolean hasScenarioDataTable() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @return A list containing the preHookMessages.
*/
java.util.List
getPreHookMessagesList();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @return The count of preHookMessages.
*/
int getPreHookMessagesCount();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
java.lang.String getPreHookMessages(int index);
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
com.google.protobuf.ByteString
getPreHookMessagesBytes(int index);
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @return A list containing the postHookMessages.
*/
java.util.List
getPostHookMessagesList();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @return The count of postHookMessages.
*/
int getPostHookMessagesCount();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
java.lang.String getPostHookMessages(int index);
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
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];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @return A list containing the preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @return The count of preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @return A list containing the postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @return The count of postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@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;
* @return A list containing the preHookScreenshotFiles.
*/
java.util.List
getPreHookScreenshotFilesList();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @return The count of preHookScreenshotFiles.
*/
int getPreHookScreenshotFilesCount();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
java.lang.String getPreHookScreenshotFiles(int index);
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index);
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @return A list containing the postHookScreenshotFiles.
*/
java.util.List
getPostHookScreenshotFilesList();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @return The count of postHookScreenshotFiles.
*/
int getPostHookScreenshotFilesCount();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
java.lang.String getPostHookScreenshotFiles(int index);
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoStep)
ProtoStepOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ProtoStep.class.getName());
}
// Use ProtoStep.newBuilder() to construct.
private ProtoStep(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProtoStep() {
actualText_ = "";
parsedText_ = "";
fragments_ = java.util.Collections.emptyList();
preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
postHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
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.GeneratedMessage.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;
@SuppressWarnings("serial")
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.
*
*
* .gauge.messages.ProtoStepExecutionResult stepExecutionResult = 4;
*/
@java.lang.Override
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getStepExecutionResultOrBuilder() {
return stepExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : stepExecutionResult_;
}
public static final int PREHOOKMESSAGES_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @return A list containing the preHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @return The count of preHookMessages.
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
public static final int POSTHOOKMESSAGES_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @return A list containing the postHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @return The count of postHookMessages.
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
public static final int PREHOOKSCREENSHOTS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList preHookScreenshots_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @return A list containing the preHookScreenshots.
*/
@java.lang.Override
@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];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @return The count of preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
public static final int POSTHOOKSCREENSHOTS_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList postHookScreenshots_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @return A list containing the postHookScreenshots.
*/
@java.lang.Override
@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];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @return The count of postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPostHookScreenshots(int index) {
return postHookScreenshots_.get(index);
}
public static final int PREHOOKSCREENSHOTFILES_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @return A list containing the preHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @return The count of preHookScreenshotFiles.
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
public static final int POSTHOOKSCREENSHOTFILES_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @return A list containing the postHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @return The count of postHookScreenshotFiles.
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(actualText_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, actualText_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parsedText_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, parsedText_);
}
for (int i = 0; i < fragments_.size(); i++) {
output.writeMessage(3, fragments_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getStepExecutionResult());
}
for (int i = 0; i < preHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, preHookMessages_.getRaw(i));
}
for (int i = 0; i < postHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.writeString(output, 9, preHookScreenshotFiles_.getRaw(i));
}
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 10, postHookScreenshotFiles_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(actualText_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, actualText_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parsedText_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, parsedText_);
}
for (int i = 0; i < fragments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, fragments_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
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 += getUnknownFields().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;
if (!getActualText()
.equals(other.getActualText())) return false;
if (!getParsedText()
.equals(other.getParsedText())) return false;
if (!getFragmentsList()
.equals(other.getFragmentsList())) return false;
if (hasStepExecutionResult() != other.hasStepExecutionResult()) return false;
if (hasStepExecutionResult()) {
if (!getStepExecutionResult()
.equals(other.getStepExecutionResult())) return false;
}
if (!getPreHookMessagesList()
.equals(other.getPreHookMessagesList())) return false;
if (!getPostHookMessagesList()
.equals(other.getPostHookMessagesList())) return false;
if (!getPreHookScreenshotsList()
.equals(other.getPreHookScreenshotsList())) return false;
if (!getPostHookScreenshotsList()
.equals(other.getPostHookScreenshotsList())) return false;
if (!getPreHookScreenshotFilesList()
.equals(other.getPreHookScreenshotFilesList())) return false;
if (!getPostHookScreenshotFilesList()
.equals(other.getPostHookScreenshotFilesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStep parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoStep parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getFragmentsFieldBuilder();
getStepExecutionResultFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
actualText_ = "";
parsedText_ = "";
if (fragmentsBuilder_ == null) {
fragments_ = java.util.Collections.emptyList();
} else {
fragments_ = null;
fragmentsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
stepExecutionResult_ = null;
if (stepExecutionResultBuilder_ != null) {
stepExecutionResultBuilder_.dispose();
stepExecutionResultBuilder_ = null;
}
preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
postHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(gauge.messages.Spec.ProtoStep result) {
if (fragmentsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
fragments_ = java.util.Collections.unmodifiableList(fragments_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.fragments_ = fragments_;
} else {
result.fragments_ = fragmentsBuilder_.build();
}
}
private void buildPartial0(gauge.messages.Spec.ProtoStep result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.actualText_ = actualText_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.parsedText_ = parsedText_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.stepExecutionResult_ = stepExecutionResultBuilder_ == null
? stepExecutionResult_
: stepExecutionResultBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
preHookMessages_.makeImmutable();
result.preHookMessages_ = preHookMessages_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
postHookMessages_.makeImmutable();
result.postHookMessages_ = postHookMessages_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
preHookScreenshots_.makeImmutable();
result.preHookScreenshots_ = preHookScreenshots_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
postHookScreenshots_.makeImmutable();
result.postHookScreenshots_ = postHookScreenshots_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
preHookScreenshotFiles_.makeImmutable();
result.preHookScreenshotFiles_ = preHookScreenshotFiles_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
postHookScreenshotFiles_.makeImmutable();
result.postHookScreenshotFiles_ = postHookScreenshotFiles_;
}
result.bitField0_ |= to_bitField0_;
}
@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_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getParsedText().isEmpty()) {
parsedText_ = other.parsedText_;
bitField0_ |= 0x00000002;
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.GeneratedMessage.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_ |= 0x00000010;
} else {
ensurePreHookMessagesIsMutable();
preHookMessages_.addAll(other.preHookMessages_);
}
onChanged();
}
if (!other.postHookMessages_.isEmpty()) {
if (postHookMessages_.isEmpty()) {
postHookMessages_ = other.postHookMessages_;
bitField0_ |= 0x00000020;
} else {
ensurePostHookMessagesIsMutable();
postHookMessages_.addAll(other.postHookMessages_);
}
onChanged();
}
if (!other.preHookScreenshots_.isEmpty()) {
if (preHookScreenshots_.isEmpty()) {
preHookScreenshots_ = other.preHookScreenshots_;
preHookScreenshots_.makeImmutable();
bitField0_ |= 0x00000040;
} else {
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.addAll(other.preHookScreenshots_);
}
onChanged();
}
if (!other.postHookScreenshots_.isEmpty()) {
if (postHookScreenshots_.isEmpty()) {
postHookScreenshots_ = other.postHookScreenshots_;
postHookScreenshots_.makeImmutable();
bitField0_ |= 0x00000080;
} else {
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.addAll(other.postHookScreenshots_);
}
onChanged();
}
if (!other.preHookScreenshotFiles_.isEmpty()) {
if (preHookScreenshotFiles_.isEmpty()) {
preHookScreenshotFiles_ = other.preHookScreenshotFiles_;
bitField0_ |= 0x00000100;
} else {
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.addAll(other.preHookScreenshotFiles_);
}
onChanged();
}
if (!other.postHookScreenshotFiles_.isEmpty()) {
if (postHookScreenshotFiles_.isEmpty()) {
postHookScreenshotFiles_ = other.postHookScreenshotFiles_;
bitField0_ |= 0x00000200;
} else {
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.addAll(other.postHookScreenshotFiles_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
actualText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
parsedText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
gauge.messages.Spec.Fragment m =
input.readMessage(
gauge.messages.Spec.Fragment.parser(),
extensionRegistry);
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
fragments_.add(m);
} else {
fragmentsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
input.readMessage(
getStepExecutionResultFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookMessagesIsMutable();
preHookMessages_.add(s);
break;
} // case 42
case 50: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookMessagesIsMutable();
postHookMessages_.add(s);
break;
} // case 50
case 58: {
com.google.protobuf.ByteString v = input.readBytes();
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(v);
break;
} // case 58
case 66: {
com.google.protobuf.ByteString v = input.readBytes();
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(v);
break;
} // case 66
case 74: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(s);
break;
} // case 74
case 82: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(s);
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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.
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @return A list containing the preHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
preHookMessages_.makeImmutable();
return preHookMessages_;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @return The count of preHookMessages.
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The preHookMessages to set.
* @return This builder for chaining.
*/
public Builder setPreHookMessages(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessagesIsMutable();
preHookMessages_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @param value The preHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPreHookMessages(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @param values The preHookMessages to add.
* @return This builder for chaining.
*/
public Builder addAllPreHookMessages(
java.lang.Iterable values) {
ensurePreHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookMessages_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 5;
* @param value The bytes of the preHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPreHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePreHookMessagesIsMutable();
preHookMessages_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePostHookMessagesIsMutable() {
if (!postHookMessages_.isModifiable()) {
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;
* @return A list containing the postHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
postHookMessages_.makeImmutable();
return postHookMessages_;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @return The count of postHookMessages.
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The postHookMessages to set.
* @return This builder for chaining.
*/
public Builder setPostHookMessages(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessagesIsMutable();
postHookMessages_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @param value The postHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPostHookMessages(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @param values The postHookMessages to add.
* @return This builder for chaining.
*/
public Builder addAllPostHookMessages(
java.lang.Iterable values) {
ensurePostHookMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookMessages_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 6;
* @param value The bytes of the postHookMessages to add.
* @return This builder for chaining.
*/
public Builder addPostHookMessagesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePostHookMessagesIsMutable();
postHookMessages_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList preHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
private void ensurePreHookScreenshotsIsMutable() {
if (!preHookScreenshots_.isModifiable()) {
preHookScreenshots_ = makeMutableCopy(preHookScreenshots_);
}
bitField0_ |= 0x00000040;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @return A list containing the preHookScreenshots.
*/
@java.lang.Deprecated public java.util.List
getPreHookScreenshotsList() {
preHookScreenshots_.makeImmutable();
return preHookScreenshots_;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @return The count of preHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @param index The index to set the value at.
* @param value The preHookScreenshots to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPreHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @param value The preHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPreHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 7 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.preHookScreenshots is deprecated.
* See spec.proto;l=185
* @param values The preHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPreHookScreenshots(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensurePreHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshots_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @return A list containing the postHookScreenshots.
*/
@java.lang.Deprecated public java.util.List
getPostHookScreenshotsList() {
postHookScreenshots_.makeImmutable();
return postHookScreenshots_;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @return The count of postHookScreenshots.
*/
@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];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @param index The index to set the value at.
* @param value The postHookScreenshots to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPostHookScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.set(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @param value The postHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addPostHookScreenshots(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @param values The postHookScreenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllPostHookScreenshots(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensurePostHookScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshots_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 8 [deprecated = true];
* @deprecated gauge.messages.ProtoStep.postHookScreenshots is deprecated.
* See spec.proto;l=187
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearPostHookScreenshots() {
postHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePreHookScreenshotFilesIsMutable() {
if (!preHookScreenshotFiles_.isModifiable()) {
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;
* @return A list containing the preHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
preHookScreenshotFiles_.makeImmutable();
return preHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @return The count of preHookScreenshotFiles.
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The preHookScreenshotFiles to set.
* @return This builder for chaining.
*/
public Builder setPreHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.set(index, value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @param value The preHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPreHookScreenshotFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @param values The preHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addAllPreHookScreenshotFiles(
java.lang.Iterable values) {
ensurePreHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preHookScreenshotFiles_);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 9;
* @param value The bytes of the preHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPreHookScreenshotFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePostHookScreenshotFilesIsMutable() {
if (!postHookScreenshotFiles_.isModifiable()) {
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;
* @return A list containing the postHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
postHookScreenshotFiles_.makeImmutable();
return postHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @return The count of postHookScreenshotFiles.
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The postHookScreenshotFiles to set.
* @return This builder for chaining.
*/
public Builder setPostHookScreenshotFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.set(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @param value The postHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addPostHookScreenshotFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 10;
* @param values The postHookScreenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addAllPostHookScreenshotFiles(
java.lang.Iterable values) {
ensurePostHookScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, postHookScreenshotFiles_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
* / 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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoConcept)
ProtoConceptOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ProtoConcept.class.getName());
}
// Use ProtoConcept.newBuilder() to construct.
private ProtoConcept(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProtoConcept() {
steps_ = java.util.Collections.emptyList();
}
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.GeneratedMessage.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;
* @return Whether the conceptStep field is set.
*/
@java.lang.Override
public boolean hasConceptStep() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* .gauge.messages.ProtoStepExecutionResult conceptExecutionResult = 3;
*/
@java.lang.Override
public gauge.messages.Spec.ProtoStepExecutionResultOrBuilder getConceptExecutionResultOrBuilder() {
return conceptExecutionResult_ == null ? gauge.messages.Spec.ProtoStepExecutionResult.getDefaultInstance() : conceptExecutionResult_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getConceptStep());
}
for (int i = 0; i < steps_.size(); i++) {
output.writeMessage(2, steps_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getConceptExecutionResult());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
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 (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getConceptExecutionResult());
}
size += getUnknownFields().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;
if (hasConceptStep() != other.hasConceptStep()) return false;
if (hasConceptStep()) {
if (!getConceptStep()
.equals(other.getConceptStep())) return false;
}
if (!getStepsList()
.equals(other.getStepsList())) return false;
if (hasConceptExecutionResult() != other.hasConceptExecutionResult()) return false;
if (hasConceptExecutionResult()) {
if (!getConceptExecutionResult()
.equals(other.getConceptExecutionResult())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoConcept parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoConcept parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getConceptStepFieldBuilder();
getStepsFieldBuilder();
getConceptExecutionResultFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
conceptStep_ = null;
if (conceptStepBuilder_ != null) {
conceptStepBuilder_.dispose();
conceptStepBuilder_ = null;
}
if (stepsBuilder_ == null) {
steps_ = java.util.Collections.emptyList();
} else {
steps_ = null;
stepsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
conceptExecutionResult_ = null;
if (conceptExecutionResultBuilder_ != null) {
conceptExecutionResultBuilder_.dispose();
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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(gauge.messages.Spec.ProtoConcept result) {
if (stepsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
steps_ = java.util.Collections.unmodifiableList(steps_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.steps_ = steps_;
} else {
result.steps_ = stepsBuilder_.build();
}
}
private void buildPartial0(gauge.messages.Spec.ProtoConcept result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.conceptStep_ = conceptStepBuilder_ == null
? conceptStep_
: conceptStepBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.conceptExecutionResult_ = conceptExecutionResultBuilder_ == null
? conceptExecutionResult_
: conceptExecutionResultBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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.GeneratedMessage.alwaysUseFieldBuilders ?
getStepsFieldBuilder() : null;
} else {
stepsBuilder_.addAllMessages(other.steps_);
}
}
}
if (other.hasConceptExecutionResult()) {
mergeConceptExecutionResult(other.getConceptExecutionResult());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getConceptStepFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
gauge.messages.Spec.ProtoItem m =
input.readMessage(
gauge.messages.Spec.ProtoItem.parser(),
extensionRegistry);
if (stepsBuilder_ == null) {
ensureStepsIsMutable();
steps_.add(m);
} else {
stepsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
input.readMessage(
getConceptExecutionResultFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private gauge.messages.Spec.ProtoStep conceptStep_;
private com.google.protobuf.SingleFieldBuilder<
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;
* @return Whether the conceptStep field is set.
*/
public boolean hasConceptStep() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* repeated string tags = 1;
* @return A list containing the tags.
*/
java.util.List
getTagsList();
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @return The count of tags.
*/
int getTagsCount();
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
java.lang.String getTags(int index);
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoTags)
ProtoTagsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ProtoTags.class.getName());
}
// Use ProtoTags.newBuilder() to construct.
private ProtoTags(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProtoTags() {
tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
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.GeneratedMessage.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;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
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.GeneratedMessage.writeString(output, 1, tags_.getRaw(i));
}
getUnknownFields().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 += getUnknownFields().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;
if (!getTagsList()
.equals(other.getTagsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTags parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTags parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(gauge.messages.Spec.ProtoTags result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
tags_.makeImmutable();
result.tags_ = tags_;
}
}
@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_ |= 0x00000001;
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureTagsIsMutable();
tags_.add(s);
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTagsIsMutable() {
if (!tags_.isModifiable()) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
}
bitField0_ |= 0x00000001;
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
tags_.makeImmutable();
return tags_;
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTagsIsMutable();
tags_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* / A collection of Tags
*
*
* repeated string tags = 1;
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
* repeated string tags = 1;
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoTags)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoTags)
private static final gauge.messages.Spec.ProtoTags DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoTags();
}
public static gauge.messages.Spec.ProtoTags getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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;
* @return The enum numeric value on the wire for fragmentType.
*/
int getFragmentTypeValue();
/**
*
* / Type of Fragment, valid values are Text, Parameter
*
*
* 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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FragmentType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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)
}
private int bitField0_;
public static final int FRAGMENTTYPE_FIELD_NUMBER = 1;
private int fragmentType_ = 0;
/**
*
* / Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
* @return The enum numeric value on the wire for fragmentType.
*/
@java.lang.Override public int getFragmentTypeValue() {
return fragmentType_;
}
/**
*
* / Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
* @return The fragmentType.
*/
@java.lang.Override public gauge.messages.Spec.Fragment.FragmentType getFragmentType() {
gauge.messages.Spec.Fragment.FragmentType result = gauge.messages.Spec.Fragment.FragmentType.forNumber(fragmentType_);
return result == null ? gauge.messages.Spec.Fragment.FragmentType.UNRECOGNIZED : result;
}
public static final int TEXT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object text_ = "";
/**
*
* / Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
* @return The text.
*/
@java.lang.Override
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;
* @return The bytes for text.
*/
@java.lang.Override
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;
* @return Whether the parameter field is set.
*/
@java.lang.Override
public boolean hasParameter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* / Parameter part of the Fragment, valid only if FragmentType=Parameter
*
* / 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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getParameterFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
fragmentType_ = 0;
text_ = "";
parameter_ = null;
if (parameterBuilder_ != null) {
parameterBuilder_.dispose();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(gauge.messages.Spec.Fragment result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.fragmentType_ = fragmentType_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.text_ = text_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.parameter_ = parameterBuilder_ == null
? parameter_
: parameterBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasParameter()) {
mergeParameter(other.getParameter());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
fragmentType_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
text_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getParameterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int fragmentType_ = 0;
/**
*
* / Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
* @return The enum numeric value on the wire for fragmentType.
*/
@java.lang.Override public int getFragmentTypeValue() {
return fragmentType_;
}
/**
*
* / Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
* @param value The enum numeric value on the wire for fragmentType to set.
* @return This builder for chaining.
*/
public Builder setFragmentTypeValue(int value) {
fragmentType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* / Type of Fragment, valid values are Text, Parameter
*
*
* .gauge.messages.Fragment.FragmentType fragmentType = 1;
* @return The fragmentType.
*/
@java.lang.Override
public gauge.messages.Spec.Fragment.FragmentType getFragmentType() {
gauge.messages.Spec.Fragment.FragmentType result = gauge.messages.Spec.Fragment.FragmentType.forNumber(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;
* @param value The fragmentType to set.
* @return This builder for chaining.
*/
public Builder setFragmentType(gauge.messages.Spec.Fragment.FragmentType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
fragmentType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* / Type of Fragment, valid values are Text, Parameter
*
* / Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
* @return The text.
*/
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;
* @return The bytes for text.
*/
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;
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
text_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* / Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
* @return This builder for chaining.
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* / Text part of the Fragment, valid only if FragmentType=Text
*
*
* string text = 2;
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
text_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private gauge.messages.Spec.Parameter parameter_;
private com.google.protobuf.SingleFieldBuilder<
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;
* @return Whether the parameter field is set.
*/
public boolean hasParameter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* / Parameter part of the Fragment, valid only if FragmentType=Parameter
*
* / Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
* @return The enum numeric value on the wire for parameterType.
*/
int getParameterTypeValue();
/**
*
* / Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
* 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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ParameterType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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)
}
private int bitField0_;
public static final int PARAMETERTYPE_FIELD_NUMBER = 1;
private int parameterType_ = 0;
/**
*
* / Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
* @return The enum numeric value on the wire for parameterType.
*/
@java.lang.Override public int getParameterTypeValue() {
return parameterType_;
}
/**
*
* / Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
* @return The parameterType.
*/
@java.lang.Override public gauge.messages.Spec.Parameter.ParameterType getParameterType() {
gauge.messages.Spec.Parameter.ParameterType result = gauge.messages.Spec.Parameter.ParameterType.forNumber(parameterType_);
return result == null ? gauge.messages.Spec.Parameter.ParameterType.UNRECOGNIZED : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object value_ = "";
/**
*
* / Holds the value of the parameter
*
*
* string value = 2;
* @return The value.
*/
@java.lang.Override
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;
* @return The bytes for value.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* / Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
* @return The name.
*/
@java.lang.Override
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;
* @return The bytes for name.
*/
@java.lang.Override
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;
* @return Whether the table field is set.
*/
@java.lang.Override
public boolean hasTable() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* / Holds the table value, if parameterType=Table or Special_Table
*
*
* Protobuf type {@code gauge.messages.Parameter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getTableFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
parameterType_ = 0;
value_ = "";
name_ = "";
table_ = null;
if (tableBuilder_ != null) {
tableBuilder_.dispose();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(gauge.messages.Spec.Parameter result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.parameterType_ = parameterType_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.table_ = tableBuilder_ == null
? table_
: tableBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasTable()) {
mergeTable(other.getTable());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
parameterType_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
value_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getTableFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int parameterType_ = 0;
/**
*
* / Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
* @return The enum numeric value on the wire for parameterType.
*/
@java.lang.Override public int getParameterTypeValue() {
return parameterType_;
}
/**
*
* / Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
* @param value The enum numeric value on the wire for parameterType to set.
* @return This builder for chaining.
*/
public Builder setParameterTypeValue(int value) {
parameterType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* / Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* .gauge.messages.Parameter.ParameterType parameterType = 1;
* @return The parameterType.
*/
@java.lang.Override
public gauge.messages.Spec.Parameter.ParameterType getParameterType() {
gauge.messages.Spec.Parameter.ParameterType result = gauge.messages.Spec.Parameter.ParameterType.forNumber(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;
* @param value The parameterType to set.
* @return This builder for chaining.
*/
public Builder setParameterType(gauge.messages.Spec.Parameter.ParameterType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
parameterType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* / Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table
*
*
* string value = 2;
* @return The value.
*/
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;
* @return The bytes for value.
*/
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;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* / Holds the value of the parameter
*
*
* string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* / Holds the value of the parameter
*
*
* string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* / Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
* @return The name.
*/
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;
* @return The bytes for name.
*/
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;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* / Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* / Holds the name of the parameter, used as Key to lookup the value.
*
*
* string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private gauge.messages.Spec.ProtoTable table_;
private com.google.protobuf.SingleFieldBuilder<
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;
* @return Whether the table field is set.
*/
public boolean hasTable() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* / Holds the table value, if parameterType=Table or Special_Table
*
*
* string text = 1;
* @return The text.
*/
java.lang.String getText();
/**
*
* / Text representing the Comment.
*
*
* string text = 1;
* @return The bytes for text.
*/
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoComment)
ProtoCommentOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ProtoComment.class.getName());
}
// Use ProtoComment.newBuilder() to construct.
private ProtoComment(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProtoComment() {
text_ = "";
}
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.GeneratedMessage.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;
@SuppressWarnings("serial")
private volatile java.lang.Object text_ = "";
/**
*
* / Text representing the Comment.
*
*
* string text = 1;
* @return The text.
*/
@java.lang.Override
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;
* @return The bytes for text.
*/
@java.lang.Override
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, text_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, text_);
}
size += getUnknownFields().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;
if (!getText()
.equals(other.getText())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoComment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoComment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(gauge.messages.Spec.ProtoComment result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.text_ = text_;
}
}
@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_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
text_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object text_ = "";
/**
*
* / Text representing the Comment.
*
*
* string text = 1;
* @return The text.
*/
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;
* @return The bytes for text.
*/
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;
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
text_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* / Text representing the Comment.
*
*
* string text = 1;
* @return This builder for chaining.
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* / Text representing the Comment.
*
*
* string text = 1;
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
text_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:gauge.messages.ProtoComment)
}
// @@protoc_insertion_point(class_scope:gauge.messages.ProtoComment)
private static final gauge.messages.Spec.ProtoComment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new gauge.messages.Spec.ProtoComment();
}
public static gauge.messages.Spec.ProtoComment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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;
* @return Whether the headers field is set.
*/
boolean hasHeaders();
/**
*
*
* repeated string cells = 1;
* @return A list containing the cells.
*/
java.util.List
getCellsList();
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @return The count of cells.
*/
int getCellsCount();
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @param index The index of the element to return.
* @return The cells at the given index.
*/
java.lang.String getCells(int index);
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @param index The index of the value to return.
* @return The bytes of the cells at the given index.
*/
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoTableRow)
ProtoTableRowOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ProtoTableRow.class.getName());
}
// Use ProtoTableRow.newBuilder() to construct.
private ProtoTableRow(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProtoTableRow() {
cells_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
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.GeneratedMessage.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;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList cells_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @return A list containing the cells.
*/
public com.google.protobuf.ProtocolStringList
getCellsList() {
return cells_;
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @return The count of cells.
*/
public int getCellsCount() {
return cells_.size();
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @param index The index of the element to return.
* @return The cells at the given index.
*/
public java.lang.String getCells(int index) {
return cells_.get(index);
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @param index The index of the value to return.
* @return The bytes of the cells at the given index.
*/
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.GeneratedMessage.writeString(output, 1, cells_.getRaw(i));
}
getUnknownFields().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 += getUnknownFields().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;
if (!getCellsList()
.equals(other.getCellsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableRow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoTableRow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
cells_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(gauge.messages.Spec.ProtoTableRow result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
cells_.makeImmutable();
result.cells_ = cells_;
}
}
@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_ |= 0x00000001;
} else {
ensureCellsIsMutable();
cells_.addAll(other.cells_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureCellsIsMutable();
cells_.add(s);
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList cells_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCellsIsMutable() {
if (!cells_.isModifiable()) {
cells_ = new com.google.protobuf.LazyStringArrayList(cells_);
}
bitField0_ |= 0x00000001;
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @return A list containing the cells.
*/
public com.google.protobuf.ProtocolStringList
getCellsList() {
cells_.makeImmutable();
return cells_;
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @return The count of cells.
*/
public int getCellsCount() {
return cells_.size();
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @param index The index of the element to return.
* @return The cells at the given index.
*/
public java.lang.String getCells(int index) {
return cells_.get(index);
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @param index The index of the value to return.
* @return The bytes of the cells at the given index.
*/
public com.google.protobuf.ByteString
getCellsBytes(int index) {
return cells_.getByteString(index);
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @param index The index to set the value at.
* @param value The cells to set.
* @return This builder for chaining.
*/
public Builder setCells(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCellsIsMutable();
cells_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @param value The cells to add.
* @return This builder for chaining.
*/
public Builder addCells(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCellsIsMutable();
cells_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* / Represents the cells of a given table
*
*
* repeated string cells = 1;
* @param values The cells to add.
* @return This builder for chaining.
*/
public Builder addAllCells(
java.lang.Iterable values) {
ensureCellsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, cells_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
* string stackTrace = 4;
* @return The bytes for stackTrace.
*/
com.google.protobuf.ByteString
getStackTraceBytes();
/**
*
* / [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes screenShot = 5 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.screenShot is deprecated.
* See spec.proto;l=292
* @return The screenShot.
*/
@java.lang.Deprecated com.google.protobuf.ByteString getScreenShot();
/**
*
* / Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 6;
* @return The executionTime.
*/
long getExecutionTime();
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @return A list containing the message.
*/
java.util.List
getMessageList();
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @return The count of message.
*/
int getMessageCount();
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @param index The index of the element to return.
* @return The message at the given index.
*/
java.lang.String getMessage(int index);
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @param index The index of the value to return.
* @return The bytes of the message at the given index.
*/
com.google.protobuf.ByteString
getMessageBytes(int index);
/**
*
* / Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
* @return The enum numeric value on the wire for errorType.
*/
int getErrorTypeValue();
/**
*
* / Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
* / [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes failureScreenshot = 9 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.failureScreenshot is deprecated.
* See spec.proto;l=306
* @return The failureScreenshot.
*/
@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];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @return A list containing the screenshots.
*/
@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];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @return The count of screenshots.
*/
@java.lang.Deprecated int getScreenshotsCount();
/**
*
* / [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @param index The index of the element to return.
* @return The screenshots at the given index.
*/
@java.lang.Deprecated com.google.protobuf.ByteString getScreenshots(int index);
/**
*
* / Path to the screenshot file captured at the time of failure.
*
* / Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
* @return The bytes for failureScreenshotFile.
*/
com.google.protobuf.ByteString
getFailureScreenshotFileBytes();
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @return A list containing the screenshotFiles.
*/
java.util.List
getScreenshotFilesList();
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @return The count of screenshotFiles.
*/
int getScreenshotFilesCount();
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @param index The index of the element to return.
* @return The screenshotFiles at the given index.
*/
java.lang.String getScreenshotFiles(int index);
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @param index The index of the value to return.
* @return The bytes of the screenshotFiles at the given index.
*/
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoExecutionResult)
ProtoExecutionResultOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ProtoExecutionResult.class.getName());
}
// Use ProtoExecutionResult.newBuilder() to construct.
private ProtoExecutionResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProtoExecutionResult() {
errorMessage_ = "";
stackTrace_ = "";
screenShot_ = com.google.protobuf.ByteString.EMPTY;
message_ =
com.google.protobuf.LazyStringArrayList.emptyList();
errorType_ = 0;
failureScreenshot_ = com.google.protobuf.ByteString.EMPTY;
screenshots_ = emptyList(com.google.protobuf.ByteString.class);
failureScreenshotFile_ = "";
screenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
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.GeneratedMessage.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),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ErrorType.class.getName());
}
/**
* 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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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)
}
public static final int FAILED_FIELD_NUMBER = 1;
private boolean failed_ = false;
/**
*
* / Flag to indicate failure
*
*
* bool failed = 1;
* @return The failed.
*/
@java.lang.Override
public boolean getFailed() {
return failed_;
}
public static final int RECOVERABLEERROR_FIELD_NUMBER = 2;
private boolean recoverableError_ = false;
/**
*
* / Flag to indicate if the error is recoverable from.
*
*
* bool recoverableError = 2;
* @return The recoverableError.
*/
@java.lang.Override
public boolean getRecoverableError() {
return recoverableError_;
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object errorMessage_ = "";
/**
*
*
* string stackTrace = 4;
* @return The bytes for stackTrace.
*/
@java.lang.Override
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_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* / [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes screenShot = 5 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.screenShot is deprecated.
* See spec.proto;l=292
* @return The screenShot.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getScreenShot() {
return screenShot_;
}
public static final int EXECUTIONTIME_FIELD_NUMBER = 6;
private long executionTime_ = 0L;
/**
*
* / Holds the time taken for executing this scenario.
*
*
* int64 executionTime = 6;
* @return The executionTime.
*/
@java.lang.Override
public long getExecutionTime() {
return executionTime_;
}
public static final int MESSAGE_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList message_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @return A list containing the message.
*/
public com.google.protobuf.ProtocolStringList
getMessageList() {
return message_;
}
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @return The count of message.
*/
public int getMessageCount() {
return message_.size();
}
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @param index The index of the element to return.
* @return The message at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the message at the given index.
*/
public com.google.protobuf.ByteString
getMessageBytes(int index) {
return message_.getByteString(index);
}
public static final int ERRORTYPE_FIELD_NUMBER = 8;
private int errorType_ = 0;
/**
*
* / Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
* @return The enum numeric value on the wire for errorType.
*/
@java.lang.Override public int getErrorTypeValue() {
return errorType_;
}
/**
*
* / Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
* @return The errorType.
*/
@java.lang.Override public gauge.messages.Spec.ProtoExecutionResult.ErrorType getErrorType() {
gauge.messages.Spec.ProtoExecutionResult.ErrorType result = gauge.messages.Spec.ProtoExecutionResult.ErrorType.forNumber(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_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* / [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure.
*
*
* bytes failureScreenshot = 9 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.failureScreenshot is deprecated.
* See spec.proto;l=306
* @return The failureScreenshot.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString getFailureScreenshot() {
return failureScreenshot_;
}
public static final int SCREENSHOTS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList screenshots_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* / [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @return A list containing the screenshots.
*/
@java.lang.Override
@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];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @return The count of screenshots.
*/
@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];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @param index The index of the element to return.
* @return The screenshots at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getScreenshots(int index) {
return screenshots_.get(index);
}
public static final int FAILURESCREENSHOTFILE_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object failureScreenshotFile_ = "";
/**
*
* / Path to the screenshot file captured at the time of failure.
*
* / Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
* @return The bytes for failureScreenshotFile.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList screenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @return A list containing the screenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getScreenshotFilesList() {
return screenshotFiles_;
}
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @return The count of screenshotFiles.
*/
public int getScreenshotFilesCount() {
return screenshotFiles_.size();
}
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @param index The index of the element to return.
* @return The screenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the screenshotFiles at the given index.
*/
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, errorMessage_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(stackTrace_)) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(failureScreenshotFile_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 11, failureScreenshotFile_);
}
for (int i = 0; i < screenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 12, screenshotFiles_.getRaw(i));
}
getUnknownFields().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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, errorMessage_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(stackTrace_)) {
size += com.google.protobuf.GeneratedMessage.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(failureScreenshotFile_)) {
size += com.google.protobuf.GeneratedMessage.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 += getUnknownFields().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;
if (getFailed()
!= other.getFailed()) return false;
if (getRecoverableError()
!= other.getRecoverableError()) return false;
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
if (!getStackTrace()
.equals(other.getStackTrace())) return false;
if (!getScreenShot()
.equals(other.getScreenShot())) return false;
if (getExecutionTime()
!= other.getExecutionTime()) return false;
if (!getMessageList()
.equals(other.getMessageList())) return false;
if (errorType_ != other.errorType_) return false;
if (!getFailureScreenshot()
.equals(other.getFailureScreenshot())) return false;
if (!getScreenshotsList()
.equals(other.getScreenshotsList())) return false;
if (!getFailureScreenshotFile()
.equals(other.getFailureScreenshotFile())) return false;
if (!getScreenshotFilesList()
.equals(other.getScreenshotFilesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoExecutionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoExecutionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
failed_ = false;
recoverableError_ = false;
errorMessage_ = "";
stackTrace_ = "";
screenShot_ = com.google.protobuf.ByteString.EMPTY;
executionTime_ = 0L;
message_ =
com.google.protobuf.LazyStringArrayList.emptyList();
errorType_ = 0;
failureScreenshot_ = com.google.protobuf.ByteString.EMPTY;
screenshots_ = emptyList(com.google.protobuf.ByteString.class);
failureScreenshotFile_ = "";
screenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(gauge.messages.Spec.ProtoExecutionResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.failed_ = failed_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.recoverableError_ = recoverableError_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.errorMessage_ = errorMessage_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.stackTrace_ = stackTrace_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.screenShot_ = screenShot_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.executionTime_ = executionTime_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
message_.makeImmutable();
result.message_ = message_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.errorType_ = errorType_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.failureScreenshot_ = failureScreenshot_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
screenshots_.makeImmutable();
result.screenshots_ = screenshots_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.failureScreenshotFile_ = failureScreenshotFile_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
screenshotFiles_.makeImmutable();
result.screenshotFiles_ = screenshotFiles_;
}
}
@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_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getStackTrace().isEmpty()) {
stackTrace_ = other.stackTrace_;
bitField0_ |= 0x00000008;
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_ |= 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_;
screenshots_.makeImmutable();
bitField0_ |= 0x00000200;
} else {
ensureScreenshotsIsMutable();
screenshots_.addAll(other.screenshots_);
}
onChanged();
}
if (!other.getFailureScreenshotFile().isEmpty()) {
failureScreenshotFile_ = other.failureScreenshotFile_;
bitField0_ |= 0x00000400;
onChanged();
}
if (!other.screenshotFiles_.isEmpty()) {
if (screenshotFiles_.isEmpty()) {
screenshotFiles_ = other.screenshotFiles_;
bitField0_ |= 0x00000800;
} else {
ensureScreenshotFilesIsMutable();
screenshotFiles_.addAll(other.screenshotFiles_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
failed_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
recoverableError_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
errorMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
stackTrace_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
screenShot_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
executionTime_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
java.lang.String s = input.readStringRequireUtf8();
ensureMessageIsMutable();
message_.add(s);
break;
} // case 58
case 64: {
errorType_ = input.readEnum();
bitField0_ |= 0x00000080;
break;
} // case 64
case 74: {
failureScreenshot_ = input.readBytes();
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
com.google.protobuf.ByteString v = input.readBytes();
ensureScreenshotsIsMutable();
screenshots_.add(v);
break;
} // case 82
case 90: {
failureScreenshotFile_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
java.lang.String s = input.readStringRequireUtf8();
ensureScreenshotFilesIsMutable();
screenshotFiles_.add(s);
break;
} // case 98
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean failed_ ;
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @return A list containing the message.
*/
public com.google.protobuf.ProtocolStringList
getMessageList() {
message_.makeImmutable();
return message_;
}
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @return The count of message.
*/
public int getMessageCount() {
return message_.size();
}
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @param index The index of the element to return.
* @return The message at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the message at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMessageIsMutable();
message_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @param value The message to add.
* @return This builder for chaining.
*/
public Builder addMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMessageIsMutable();
message_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @param values The message to add.
* @return This builder for chaining.
*/
public Builder addAllMessage(
java.lang.Iterable values) {
ensureMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, message_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / Additional information at exec time to be available on reports
*
* / Additional information at exec time to be available on reports
*
*
* repeated string message = 7;
* @param value The bytes of the message to add.
* @return This builder for chaining.
*/
public Builder addMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureMessageIsMutable();
message_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private int errorType_ = 0;
/**
*
* / Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
* @return The enum numeric value on the wire for errorType.
*/
@java.lang.Override public int getErrorTypeValue() {
return errorType_;
}
/**
*
* / Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
* @param value The enum numeric value on the wire for errorType to set.
* @return This builder for chaining.
*/
public Builder setErrorTypeValue(int value) {
errorType_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
*
* .gauge.messages.ProtoExecutionResult.ErrorType errorType = 8;
* @return The errorType.
*/
@java.lang.Override
public gauge.messages.Spec.ProtoExecutionResult.ErrorType getErrorType() {
gauge.messages.Spec.ProtoExecutionResult.ErrorType result = gauge.messages.Spec.ProtoExecutionResult.ErrorType.forNumber(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;
* @param value The errorType to set.
* @return This builder for chaining.
*/
public Builder setErrorType(gauge.messages.Spec.ProtoExecutionResult.ErrorType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
errorType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* / Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION
*
* / [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @return A list containing the screenshots.
*/
@java.lang.Deprecated public java.util.List
getScreenshotsList() {
screenshots_.makeImmutable();
return screenshots_;
}
/**
*
* / [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @return The count of screenshots.
*/
@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];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @param index The index of the element to return.
* @return The screenshots at the given index.
*/
@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];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @param index The index to set the value at.
* @param value The screenshots to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setScreenshots(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureScreenshotsIsMutable();
screenshots_.set(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @param value The screenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addScreenshots(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureScreenshotsIsMutable();
screenshots_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @param values The screenshots to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllScreenshots(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureScreenshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, screenshots_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* / [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked
*
*
* repeated bytes screenshots = 10 [deprecated = true];
* @deprecated gauge.messages.ProtoExecutionResult.screenshots is deprecated.
* See spec.proto;l=308
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearScreenshots() {
screenshots_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private java.lang.Object failureScreenshotFile_ = "";
/**
*
* / Path to the screenshot file captured at the time of failure.
*
* / Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 11;
* @param value The bytes for failureScreenshotFile to set.
* @return This builder for chaining.
*/
public Builder setFailureScreenshotFileBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
failureScreenshotFile_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList screenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureScreenshotFilesIsMutable() {
if (!screenshotFiles_.isModifiable()) {
screenshotFiles_ = new com.google.protobuf.LazyStringArrayList(screenshotFiles_);
}
bitField0_ |= 0x00000800;
}
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @return A list containing the screenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getScreenshotFilesList() {
screenshotFiles_.makeImmutable();
return screenshotFiles_;
}
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @return The count of screenshotFiles.
*/
public int getScreenshotFilesCount() {
return screenshotFiles_.size();
}
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @param index The index of the element to return.
* @return The screenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the screenshotFiles at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The screenshotFiles to set.
* @return This builder for chaining.
*/
public Builder setScreenshotFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureScreenshotFilesIsMutable();
screenshotFiles_.set(index, value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @param value The screenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addScreenshotFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureScreenshotFilesIsMutable();
screenshotFiles_.add(value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
*
* repeated string screenshotFiles = 12;
* @param values The screenshotFiles to add.
* @return This builder for chaining.
*/
public Builder addAllScreenshotFiles(
java.lang.Iterable values) {
ensureScreenshotFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, screenshotFiles_);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* / Path to the screenshot files captured using Gauge screenshsot API.
*
* / Path to the screenshot file captured at the time of failure.
*
*
* string failureScreenshotFile = 6;
* @return The bytes for failureScreenshotFile.
*/
com.google.protobuf.ByteString
getFailureScreenshotFileBytes();
}
/**
*
* / A proto object representing a pre-hook failure.
* / Used to hold failure information for before_suite, before_spec, before_scenario and before_spec hooks.
*
*
* Protobuf type {@code gauge.messages.ProtoHookFailure}
*/
public static final class ProtoHookFailure extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoHookFailure)
ProtoHookFailureOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ProtoHookFailure.class.getName());
}
// Use ProtoHookFailure.newBuilder() to construct.
private ProtoHookFailure(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProtoHookFailure() {
stackTrace_ = "";
errorMessage_ = "";
screenShot_ = com.google.protobuf.ByteString.EMPTY;
failureScreenshot_ = com.google.protobuf.ByteString.EMPTY;
failureScreenshotFile_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoHookFailure.class, gauge.messages.Spec.ProtoHookFailure.Builder.class);
}
public static final int STACKTRACE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object stackTrace_ = "";
/**
*
* / A proto object representing a pre-hook failure.
* / Used to hold failure information for before_suite, before_spec, before_scenario and before_spec hooks.
*
*
* Protobuf type {@code gauge.messages.ProtoHookFailure}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoHookFailure)
gauge.messages.Spec.ProtoHookFailureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoHookFailure.class, gauge.messages.Spec.ProtoHookFailure.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoHookFailure.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
stackTrace_ = "";
errorMessage_ = "";
screenShot_ = com.google.protobuf.ByteString.EMPTY;
tableRowIndex_ = 0;
failureScreenshot_ = com.google.protobuf.ByteString.EMPTY;
failureScreenshotFile_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoHookFailure_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoHookFailure getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoHookFailure.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoHookFailure build() {
gauge.messages.Spec.ProtoHookFailure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public gauge.messages.Spec.ProtoHookFailure buildPartial() {
gauge.messages.Spec.ProtoHookFailure result = new gauge.messages.Spec.ProtoHookFailure(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(gauge.messages.Spec.ProtoHookFailure result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.stackTrace_ = stackTrace_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.errorMessage_ = errorMessage_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.screenShot_ = screenShot_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.tableRowIndex_ = tableRowIndex_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.failureScreenshot_ = failureScreenshot_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.failureScreenshotFile_ = failureScreenshotFile_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoHookFailure) {
return mergeFrom((gauge.messages.Spec.ProtoHookFailure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoHookFailure other) {
if (other == gauge.messages.Spec.ProtoHookFailure.getDefaultInstance()) return this;
if (!other.getStackTrace().isEmpty()) {
stackTrace_ = other.stackTrace_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getScreenShot() != com.google.protobuf.ByteString.EMPTY) {
setScreenShot(other.getScreenShot());
}
if (other.getTableRowIndex() != 0) {
setTableRowIndex(other.getTableRowIndex());
}
if (other.getFailureScreenshot() != com.google.protobuf.ByteString.EMPTY) {
setFailureScreenshot(other.getFailureScreenshot());
}
if (!other.getFailureScreenshotFile().isEmpty()) {
failureScreenshotFile_ = other.failureScreenshotFile_;
bitField0_ |= 0x00000020;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
stackTrace_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
errorMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
screenShot_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
tableRowIndex_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
failureScreenshot_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
failureScreenshotFile_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object stackTrace_ = "";
/**
*
*
* string timestamp = 11;
* @return The bytes for timestamp.
*/
com.google.protobuf.ByteString
getTimestampBytes();
/**
* int32 specsSkippedCount = 12;
* @return The specsSkippedCount.
*/
int getSpecsSkippedCount();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 13;
* @return A list containing the preHookMessages.
*/
java.util.List
getPreHookMessagesList();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 13;
* @return The count of preHookMessages.
*/
int getPreHookMessagesCount();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 13;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
java.lang.String getPreHookMessages(int index);
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 13;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
com.google.protobuf.ByteString
getPreHookMessagesBytes(int index);
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 14;
* @return A list containing the postHookMessages.
*/
java.util.List
getPostHookMessagesList();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 14;
* @return The count of postHookMessages.
*/
int getPostHookMessagesCount();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 14;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
java.lang.String getPostHookMessages(int index);
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 14;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
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 = 15 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookMessage is deprecated.
* See spec.proto;l=362
* @return A list containing the preHookMessage.
*/
@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 = 15 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookMessage is deprecated.
* See spec.proto;l=362
* @return The count of preHookMessage.
*/
@java.lang.Deprecated int getPreHookMessageCount();
/**
*
* / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 15 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookMessage is deprecated.
* See spec.proto;l=362
* @param index The index of the element to return.
* @return The preHookMessage at the given index.
*/
@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 = 15 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookMessage is deprecated.
* See spec.proto;l=362
* @param index The index of the value to return.
* @return The bytes of the preHookMessage at the given index.
*/
@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 = 16 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookMessage is deprecated.
* See spec.proto;l=364
* @return A list containing the postHookMessage.
*/
@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 = 16 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookMessage is deprecated.
* See spec.proto;l=364
* @return The count of postHookMessage.
*/
@java.lang.Deprecated int getPostHookMessageCount();
/**
*
* / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 16 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookMessage is deprecated.
* See spec.proto;l=364
* @param index The index of the element to return.
* @return The postHookMessage at the given index.
*/
@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 = 16 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookMessage is deprecated.
* See spec.proto;l=364
* @param index The index of the value to return.
* @return The bytes of the postHookMessage at the given index.
*/
@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 = 17 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookScreenshots is deprecated.
* See spec.proto;l=366
* @return A list containing the preHookScreenshots.
*/
@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 = 17 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookScreenshots is deprecated.
* See spec.proto;l=366
* @return The count of preHookScreenshots.
*/
@java.lang.Deprecated int getPreHookScreenshotsCount();
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 17 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookScreenshots is deprecated.
* See spec.proto;l=366
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@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 = 18 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookScreenshots is deprecated.
* See spec.proto;l=368
* @return A list containing the postHookScreenshots.
*/
@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 = 18 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookScreenshots is deprecated.
* See spec.proto;l=368
* @return The count of postHookScreenshots.
*/
@java.lang.Deprecated int getPostHookScreenshotsCount();
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 18 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookScreenshots is deprecated.
* See spec.proto;l=368
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@java.lang.Deprecated com.google.protobuf.ByteString getPostHookScreenshots(int index);
/**
*
* Indicates the number of chunks to expect after this
*
*
* int64 chunkSize = 20;
* @return The chunkSize.
*/
long getChunkSize();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @return A list containing the preHookScreenshotFiles.
*/
java.util.List
getPreHookScreenshotFilesList();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @return The count of preHookScreenshotFiles.
*/
int getPreHookScreenshotFilesCount();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
java.lang.String getPreHookScreenshotFiles(int index);
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index);
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @return A list containing the postHookScreenshotFiles.
*/
java.util.List
getPostHookScreenshotFilesList();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @return The count of postHookScreenshotFiles.
*/
int getPostHookScreenshotFilesCount();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
java.lang.String getPostHookScreenshotFiles(int index);
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
com.google.protobuf.ByteString
getPostHookScreenshotFilesBytes(int index);
}
/**
*
* / A proto object representing the result of entire Suite execution.
*
*
* Protobuf type {@code gauge.messages.ProtoSuiteResult}
*/
public static final class ProtoSuiteResult extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gauge.messages.ProtoSuiteResult)
ProtoSuiteResultOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ProtoSuiteResult.class.getName());
}
// Use ProtoSuiteResult.newBuilder() to construct.
private ProtoSuiteResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProtoSuiteResult() {
specResults_ = java.util.Collections.emptyList();
environment_ = "";
tags_ = "";
projectName_ = "";
timestamp_ = "";
preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
postHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoSuiteResult.class, gauge.messages.Spec.ProtoSuiteResult.Builder.class);
}
private int bitField0_;
public static final int SPECRESULTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List specResults_;
/**
*
* / Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error
*
*
* .gauge.messages.ProtoHookFailure postHookFailure = 3;
*/
@java.lang.Override
public gauge.messages.Spec.ProtoHookFailureOrBuilder getPostHookFailureOrBuilder() {
return postHookFailure_ == null ? gauge.messages.Spec.ProtoHookFailure.getDefaultInstance() : postHookFailure_;
}
public static final int FAILED_FIELD_NUMBER = 4;
private boolean failed_ = false;
/**
*
* / Flag to indicate failure
*
*
* bool failed = 4;
* @return The failed.
*/
@java.lang.Override
public boolean getFailed() {
return failed_;
}
public static final int SPECSFAILEDCOUNT_FIELD_NUMBER = 5;
private int specsFailedCount_ = 0;
/**
*
* / Holds the count of number of Specifications that failed.
*
*
* int32 specsFailedCount = 5;
* @return The specsFailedCount.
*/
@java.lang.Override
public int getSpecsFailedCount() {
return specsFailedCount_;
}
public static final int EXECUTIONTIME_FIELD_NUMBER = 6;
private long executionTime_ = 0L;
/**
*
* / Holds the time taken for executing the whole suite.
*
*
* int64 executionTime = 6;
* @return The executionTime.
*/
@java.lang.Override
public long getExecutionTime() {
return executionTime_;
}
public static final int SUCCESSRATE_FIELD_NUMBER = 7;
private float successRate_ = 0F;
/**
*
* / Holds a metric indicating the success rate of the execution.
*
*
* float successRate = 7;
* @return The successRate.
*/
@java.lang.Override
public float getSuccessRate() {
return successRate_;
}
public static final int ENVIRONMENT_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object environment_ = "";
/**
*
* / The environment against which execution was done
*
*
* string timestamp = 11;
* @return The bytes for timestamp.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTimestampBytes() {
java.lang.Object ref = timestamp_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timestamp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPECSSKIPPEDCOUNT_FIELD_NUMBER = 12;
private int specsSkippedCount_ = 0;
/**
* int32 specsSkippedCount = 12;
* @return The specsSkippedCount.
*/
@java.lang.Override
public int getSpecsSkippedCount() {
return specsSkippedCount_;
}
public static final int PREHOOKMESSAGES_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 13;
* @return A list containing the preHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPreHookMessagesList() {
return preHookMessages_;
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 13;
* @return The count of preHookMessages.
*/
public int getPreHookMessagesCount() {
return preHookMessages_.size();
}
/**
*
* / Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessages = 13;
* @param index The index of the element to return.
* @return The preHookMessages at the given index.
*/
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 = 13;
* @param index The index of the value to return.
* @return The bytes of the preHookMessages at the given index.
*/
public com.google.protobuf.ByteString
getPreHookMessagesBytes(int index) {
return preHookMessages_.getByteString(index);
}
public static final int POSTHOOKMESSAGES_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 14;
* @return A list containing the postHookMessages.
*/
public com.google.protobuf.ProtocolStringList
getPostHookMessagesList() {
return postHookMessages_;
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 14;
* @return The count of postHookMessages.
*/
public int getPostHookMessagesCount() {
return postHookMessages_.size();
}
/**
*
* / Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessages = 14;
* @param index The index of the element to return.
* @return The postHookMessages at the given index.
*/
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 = 14;
* @param index The index of the value to return.
* @return The bytes of the postHookMessages at the given index.
*/
public com.google.protobuf.ByteString
getPostHookMessagesBytes(int index) {
return postHookMessages_.getByteString(index);
}
public static final int PREHOOKMESSAGE_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
*
*
* repeated string preHookMessage = 15 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookMessage is deprecated.
* See spec.proto;l=362
* @return A list containing the preHookMessage.
*/
@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 = 15 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookMessage is deprecated.
* See spec.proto;l=362
* @return The count of preHookMessage.
*/
@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 = 15 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookMessage is deprecated.
* See spec.proto;l=362
* @param index The index of the element to return.
* @return The preHookMessage at the given index.
*/
@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 = 15 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookMessage is deprecated.
* See spec.proto;l=362
* @param index The index of the value to return.
* @return The bytes of the preHookMessage at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPreHookMessageBytes(int index) {
return preHookMessage_.getByteString(index);
}
public static final int POSTHOOKMESSAGE_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
*
*
* repeated string postHookMessage = 16 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookMessage is deprecated.
* See spec.proto;l=364
* @return A list containing the postHookMessage.
*/
@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 = 16 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookMessage is deprecated.
* See spec.proto;l=364
* @return The count of postHookMessage.
*/
@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 = 16 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookMessage is deprecated.
* See spec.proto;l=364
* @param index The index of the element to return.
* @return The postHookMessage at the given index.
*/
@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 = 16 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookMessage is deprecated.
* See spec.proto;l=364
* @param index The index of the value to return.
* @return The bytes of the postHookMessage at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPostHookMessageBytes(int index) {
return postHookMessage_.getByteString(index);
}
public static final int PREHOOKSCREENSHOTS_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList preHookScreenshots_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
*
*
* repeated bytes preHookScreenshots = 17 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookScreenshots is deprecated.
* See spec.proto;l=366
* @return A list containing the preHookScreenshots.
*/
@java.lang.Override
@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 = 17 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookScreenshots is deprecated.
* See spec.proto;l=366
* @return The count of preHookScreenshots.
*/
@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 = 17 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.preHookScreenshots is deprecated.
* See spec.proto;l=366
* @param index The index of the element to return.
* @return The preHookScreenshots at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPreHookScreenshots(int index) {
return preHookScreenshots_.get(index);
}
public static final int POSTHOOKSCREENSHOTS_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList postHookScreenshots_ =
emptyList(com.google.protobuf.ByteString.class);
/**
*
* / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
*
*
* repeated bytes postHookScreenshots = 18 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookScreenshots is deprecated.
* See spec.proto;l=368
* @return A list containing the postHookScreenshots.
*/
@java.lang.Override
@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 = 18 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookScreenshots is deprecated.
* See spec.proto;l=368
* @return The count of postHookScreenshots.
*/
@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 = 18 [deprecated = true];
* @deprecated gauge.messages.ProtoSuiteResult.postHookScreenshots is deprecated.
* See spec.proto;l=368
* @param index The index of the element to return.
* @return The postHookScreenshots at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString getPostHookScreenshots(int index) {
return postHookScreenshots_.get(index);
}
public static final int CHUNKED_FIELD_NUMBER = 19;
private boolean chunked_ = false;
/**
*
* Indicates if the result is sent in chunks
*
*
* bool chunked = 19;
* @return The chunked.
*/
@java.lang.Override
public boolean getChunked() {
return chunked_;
}
public static final int CHUNKSIZE_FIELD_NUMBER = 20;
private long chunkSize_ = 0L;
/**
*
* Indicates the number of chunks to expect after this
*
*
* int64 chunkSize = 20;
* @return The chunkSize.
*/
@java.lang.Override
public long getChunkSize() {
return chunkSize_;
}
public static final int PREHOOKSCREENSHOTFILES_FIELD_NUMBER = 21;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @return A list containing the preHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPreHookScreenshotFilesList() {
return preHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @return The count of preHookScreenshotFiles.
*/
public int getPreHookScreenshotFilesCount() {
return preHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on pre hook exec time to be available on reports
*
*
* repeated string preHookScreenshotFiles = 21;
* @param index The index of the element to return.
* @return The preHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preHookScreenshotFiles at the given index.
*/
public com.google.protobuf.ByteString
getPreHookScreenshotFilesBytes(int index) {
return preHookScreenshotFiles_.getByteString(index);
}
public static final int POSTHOOKSCREENSHOTFILES_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @return A list containing the postHookScreenshotFiles.
*/
public com.google.protobuf.ProtocolStringList
getPostHookScreenshotFilesList() {
return postHookScreenshotFiles_;
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @return The count of postHookScreenshotFiles.
*/
public int getPostHookScreenshotFilesCount() {
return postHookScreenshotFiles_.size();
}
/**
*
* / Screenshots captured on post hook exec time to be available on reports
*
*
* repeated string postHookScreenshotFiles = 22;
* @param index The index of the element to return.
* @return The postHookScreenshotFiles at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the postHookScreenshotFiles at the given index.
*/
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 {
for (int i = 0; i < specResults_.size(); i++) {
output.writeMessage(1, specResults_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getPreHookFailure());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getPostHookFailure());
}
if (failed_ != false) {
output.writeBool(4, failed_);
}
if (specsFailedCount_ != 0) {
output.writeInt32(5, specsFailedCount_);
}
if (executionTime_ != 0L) {
output.writeInt64(6, executionTime_);
}
if (java.lang.Float.floatToRawIntBits(successRate_) != 0) {
output.writeFloat(7, successRate_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environment_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 8, environment_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tags_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 9, tags_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 10, projectName_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timestamp_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 11, timestamp_);
}
if (specsSkippedCount_ != 0) {
output.writeInt32(12, specsSkippedCount_);
}
for (int i = 0; i < preHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 13, preHookMessages_.getRaw(i));
}
for (int i = 0; i < postHookMessages_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 14, postHookMessages_.getRaw(i));
}
for (int i = 0; i < preHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 15, preHookMessage_.getRaw(i));
}
for (int i = 0; i < postHookMessage_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 16, postHookMessage_.getRaw(i));
}
for (int i = 0; i < preHookScreenshots_.size(); i++) {
output.writeBytes(17, preHookScreenshots_.get(i));
}
for (int i = 0; i < postHookScreenshots_.size(); i++) {
output.writeBytes(18, postHookScreenshots_.get(i));
}
if (chunked_ != false) {
output.writeBool(19, chunked_);
}
if (chunkSize_ != 0L) {
output.writeInt64(20, chunkSize_);
}
for (int i = 0; i < preHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 21, preHookScreenshotFiles_.getRaw(i));
}
for (int i = 0; i < postHookScreenshotFiles_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 22, postHookScreenshotFiles_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < specResults_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, specResults_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPreHookFailure());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPostHookFailure());
}
if (failed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, failed_);
}
if (specsFailedCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, specsFailedCount_);
}
if (executionTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, executionTime_);
}
if (java.lang.Float.floatToRawIntBits(successRate_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(7, successRate_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environment_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(8, environment_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tags_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(9, tags_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectName_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(10, projectName_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timestamp_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(11, timestamp_);
}
if (specsSkippedCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, specsSkippedCount_);
}
{
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 += 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();
}
if (chunked_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(19, chunked_);
}
if (chunkSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(20, chunkSize_);
}
{
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 += getUnknownFields().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.ProtoSuiteResult)) {
return super.equals(obj);
}
gauge.messages.Spec.ProtoSuiteResult other = (gauge.messages.Spec.ProtoSuiteResult) obj;
if (!getSpecResultsList()
.equals(other.getSpecResultsList())) return false;
if (hasPreHookFailure() != other.hasPreHookFailure()) return false;
if (hasPreHookFailure()) {
if (!getPreHookFailure()
.equals(other.getPreHookFailure())) return false;
}
if (hasPostHookFailure() != other.hasPostHookFailure()) return false;
if (hasPostHookFailure()) {
if (!getPostHookFailure()
.equals(other.getPostHookFailure())) return false;
}
if (getFailed()
!= other.getFailed()) return false;
if (getSpecsFailedCount()
!= other.getSpecsFailedCount()) return false;
if (getExecutionTime()
!= other.getExecutionTime()) return false;
if (java.lang.Float.floatToIntBits(getSuccessRate())
!= java.lang.Float.floatToIntBits(
other.getSuccessRate())) return false;
if (!getEnvironment()
.equals(other.getEnvironment())) return false;
if (!getTags()
.equals(other.getTags())) return false;
if (!getProjectName()
.equals(other.getProjectName())) return false;
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
if (getSpecsSkippedCount()
!= other.getSpecsSkippedCount()) return false;
if (!getPreHookMessagesList()
.equals(other.getPreHookMessagesList())) return false;
if (!getPostHookMessagesList()
.equals(other.getPostHookMessagesList())) return false;
if (!getPreHookMessageList()
.equals(other.getPreHookMessageList())) return false;
if (!getPostHookMessageList()
.equals(other.getPostHookMessageList())) return false;
if (!getPreHookScreenshotsList()
.equals(other.getPreHookScreenshotsList())) return false;
if (!getPostHookScreenshotsList()
.equals(other.getPostHookScreenshotsList())) return false;
if (getChunked()
!= other.getChunked()) return false;
if (getChunkSize()
!= other.getChunkSize()) return false;
if (!getPreHookScreenshotFilesList()
.equals(other.getPreHookScreenshotFilesList())) return false;
if (!getPostHookScreenshotFilesList()
.equals(other.getPostHookScreenshotFilesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSpecResultsCount() > 0) {
hash = (37 * hash) + SPECRESULTS_FIELD_NUMBER;
hash = (53 * hash) + getSpecResultsList().hashCode();
}
if (hasPreHookFailure()) {
hash = (37 * hash) + PREHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPreHookFailure().hashCode();
}
if (hasPostHookFailure()) {
hash = (37 * hash) + POSTHOOKFAILURE_FIELD_NUMBER;
hash = (53 * hash) + getPostHookFailure().hashCode();
}
hash = (37 * hash) + FAILED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailed());
hash = (37 * hash) + SPECSFAILEDCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getSpecsFailedCount();
hash = (37 * hash) + EXECUTIONTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecutionTime());
hash = (37 * hash) + SUCCESSRATE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getSuccessRate());
hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + getEnvironment().hashCode();
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTags().hashCode();
hash = (37 * hash) + PROJECTNAME_FIELD_NUMBER;
hash = (53 * hash) + getProjectName().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
hash = (37 * hash) + SPECSSKIPPEDCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getSpecsSkippedCount();
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) + CHUNKED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getChunked());
hash = (37 * hash) + CHUNKSIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getChunkSize());
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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSuiteResult 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.ProtoSuiteResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSuiteResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSuiteResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static gauge.messages.Spec.ProtoSuiteResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.ProtoSuiteResult 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* / A proto object representing the result of entire Suite execution.
*
*
* Protobuf type {@code gauge.messages.ProtoSuiteResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:gauge.messages.ProtoSuiteResult)
gauge.messages.Spec.ProtoSuiteResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
gauge.messages.Spec.ProtoSuiteResult.class, gauge.messages.Spec.ProtoSuiteResult.Builder.class);
}
// Construct using gauge.messages.Spec.ProtoSuiteResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getSpecResultsFieldBuilder();
getPreHookFailureFieldBuilder();
getPostHookFailureFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (specResultsBuilder_ == null) {
specResults_ = java.util.Collections.emptyList();
} else {
specResults_ = null;
specResultsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
preHookFailure_ = null;
if (preHookFailureBuilder_ != null) {
preHookFailureBuilder_.dispose();
preHookFailureBuilder_ = null;
}
postHookFailure_ = null;
if (postHookFailureBuilder_ != null) {
postHookFailureBuilder_.dispose();
postHookFailureBuilder_ = null;
}
failed_ = false;
specsFailedCount_ = 0;
executionTime_ = 0L;
successRate_ = 0F;
environment_ = "";
tags_ = "";
projectName_ = "";
timestamp_ = "";
specsSkippedCount_ = 0;
preHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessages_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookMessage_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
postHookScreenshots_ = emptyList(com.google.protobuf.ByteString.class);
chunked_ = false;
chunkSize_ = 0L;
preHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
postHookScreenshotFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return gauge.messages.Spec.internal_static_gauge_messages_ProtoSuiteResult_descriptor;
}
@java.lang.Override
public gauge.messages.Spec.ProtoSuiteResult getDefaultInstanceForType() {
return gauge.messages.Spec.ProtoSuiteResult.getDefaultInstance();
}
@java.lang.Override
public gauge.messages.Spec.ProtoSuiteResult build() {
gauge.messages.Spec.ProtoSuiteResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public gauge.messages.Spec.ProtoSuiteResult buildPartial() {
gauge.messages.Spec.ProtoSuiteResult result = new gauge.messages.Spec.ProtoSuiteResult(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(gauge.messages.Spec.ProtoSuiteResult result) {
if (specResultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
specResults_ = java.util.Collections.unmodifiableList(specResults_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.specResults_ = specResults_;
} else {
result.specResults_ = specResultsBuilder_.build();
}
}
private void buildPartial0(gauge.messages.Spec.ProtoSuiteResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.preHookFailure_ = preHookFailureBuilder_ == null
? preHookFailure_
: preHookFailureBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.postHookFailure_ = postHookFailureBuilder_ == null
? postHookFailure_
: postHookFailureBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.failed_ = failed_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.specsFailedCount_ = specsFailedCount_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.executionTime_ = executionTime_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.successRate_ = successRate_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.environment_ = environment_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.tags_ = tags_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.projectName_ = projectName_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.timestamp_ = timestamp_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.specsSkippedCount_ = specsSkippedCount_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
preHookMessages_.makeImmutable();
result.preHookMessages_ = preHookMessages_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
postHookMessages_.makeImmutable();
result.postHookMessages_ = postHookMessages_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
preHookMessage_.makeImmutable();
result.preHookMessage_ = preHookMessage_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
postHookMessage_.makeImmutable();
result.postHookMessage_ = postHookMessage_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
preHookScreenshots_.makeImmutable();
result.preHookScreenshots_ = preHookScreenshots_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
postHookScreenshots_.makeImmutable();
result.postHookScreenshots_ = postHookScreenshots_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.chunked_ = chunked_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.chunkSize_ = chunkSize_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
preHookScreenshotFiles_.makeImmutable();
result.preHookScreenshotFiles_ = preHookScreenshotFiles_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
postHookScreenshotFiles_.makeImmutable();
result.postHookScreenshotFiles_ = postHookScreenshotFiles_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof gauge.messages.Spec.ProtoSuiteResult) {
return mergeFrom((gauge.messages.Spec.ProtoSuiteResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(gauge.messages.Spec.ProtoSuiteResult other) {
if (other == gauge.messages.Spec.ProtoSuiteResult.getDefaultInstance()) return this;
if (specResultsBuilder_ == null) {
if (!other.specResults_.isEmpty()) {
if (specResults_.isEmpty()) {
specResults_ = other.specResults_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSpecResultsIsMutable();
specResults_.addAll(other.specResults_);
}
onChanged();
}
} else {
if (!other.specResults_.isEmpty()) {
if (specResultsBuilder_.isEmpty()) {
specResultsBuilder_.dispose();
specResultsBuilder_ = null;
specResults_ = other.specResults_;
bitField0_ = (bitField0_ & ~0x00000001);
specResultsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getSpecResultsFieldBuilder() : null;
} else {
specResultsBuilder_.addAllMessages(other.specResults_);
}
}
}
if (other.hasPreHookFailure()) {
mergePreHookFailure(other.getPreHookFailure());
}
if (other.hasPostHookFailure()) {
mergePostHookFailure(other.getPostHookFailure());
}
if (other.getFailed() != false) {
setFailed(other.getFailed());
}
if (other.getSpecsFailedCount() != 0) {
setSpecsFailedCount(other.getSpecsFailedCount());
}
if (other.getExecutionTime() != 0L) {
setExecutionTime(other.getExecutionTime());
}
if (other.getSuccessRate() != 0F) {
setSuccessRate(other.getSuccessRate());
}
if (!other.getEnvironment().isEmpty()) {
environment_ = other.environment_;
bitField0_ |= 0x00000080;
onChanged();
}
if (!other.getTags().isEmpty()) {
tags_ = other.tags_;
bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getProjectName().isEmpty()) {
projectName_ = other.projectName_;
bitField0_ |= 0x00000200;
onChanged();
}
if (!other.getTimestamp().isEmpty()) {
timestamp_ = other.timestamp_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.getSpecsSkippedCount() != 0) {
setSpecsSkippedCount(other.getSpecsSkippedCount());
}
if (!other.preHookMessages_.isEmpty()) {
if (preHookMessages_.isEmpty()) {
preHookMessages_ = other.preHookMessages_;
bitField0_ |= 0x00001000;
} else {
ensurePreHookMessagesIsMutable();
preHookMessages_.addAll(other.preHookMessages_);
}
onChanged();
}
if (!other.postHookMessages_.isEmpty()) {
if (postHookMessages_.isEmpty()) {
postHookMessages_ = other.postHookMessages_;
bitField0_ |= 0x00002000;
} else {
ensurePostHookMessagesIsMutable();
postHookMessages_.addAll(other.postHookMessages_);
}
onChanged();
}
if (!other.preHookMessage_.isEmpty()) {
if (preHookMessage_.isEmpty()) {
preHookMessage_ = other.preHookMessage_;
bitField0_ |= 0x00004000;
} else {
ensurePreHookMessageIsMutable();
preHookMessage_.addAll(other.preHookMessage_);
}
onChanged();
}
if (!other.postHookMessage_.isEmpty()) {
if (postHookMessage_.isEmpty()) {
postHookMessage_ = other.postHookMessage_;
bitField0_ |= 0x00008000;
} else {
ensurePostHookMessageIsMutable();
postHookMessage_.addAll(other.postHookMessage_);
}
onChanged();
}
if (!other.preHookScreenshots_.isEmpty()) {
if (preHookScreenshots_.isEmpty()) {
preHookScreenshots_ = other.preHookScreenshots_;
preHookScreenshots_.makeImmutable();
bitField0_ |= 0x00010000;
} else {
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.addAll(other.preHookScreenshots_);
}
onChanged();
}
if (!other.postHookScreenshots_.isEmpty()) {
if (postHookScreenshots_.isEmpty()) {
postHookScreenshots_ = other.postHookScreenshots_;
postHookScreenshots_.makeImmutable();
bitField0_ |= 0x00020000;
} else {
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.addAll(other.postHookScreenshots_);
}
onChanged();
}
if (other.getChunked() != false) {
setChunked(other.getChunked());
}
if (other.getChunkSize() != 0L) {
setChunkSize(other.getChunkSize());
}
if (!other.preHookScreenshotFiles_.isEmpty()) {
if (preHookScreenshotFiles_.isEmpty()) {
preHookScreenshotFiles_ = other.preHookScreenshotFiles_;
bitField0_ |= 0x00100000;
} else {
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.addAll(other.preHookScreenshotFiles_);
}
onChanged();
}
if (!other.postHookScreenshotFiles_.isEmpty()) {
if (postHookScreenshotFiles_.isEmpty()) {
postHookScreenshotFiles_ = other.postHookScreenshotFiles_;
bitField0_ |= 0x00200000;
} else {
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.addAll(other.postHookScreenshotFiles_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
gauge.messages.Spec.ProtoSpecResult m =
input.readMessage(
gauge.messages.Spec.ProtoSpecResult.parser(),
extensionRegistry);
if (specResultsBuilder_ == null) {
ensureSpecResultsIsMutable();
specResults_.add(m);
} else {
specResultsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getPreHookFailureFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getPostHookFailureFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
failed_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
specsFailedCount_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
executionTime_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 61: {
successRate_ = input.readFloat();
bitField0_ |= 0x00000040;
break;
} // case 61
case 66: {
environment_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
tags_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
projectName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
timestamp_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 96: {
specsSkippedCount_ = input.readInt32();
bitField0_ |= 0x00000800;
break;
} // case 96
case 106: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookMessagesIsMutable();
preHookMessages_.add(s);
break;
} // case 106
case 114: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookMessagesIsMutable();
postHookMessages_.add(s);
break;
} // case 114
case 122: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookMessageIsMutable();
preHookMessage_.add(s);
break;
} // case 122
case 130: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookMessageIsMutable();
postHookMessage_.add(s);
break;
} // case 130
case 138: {
com.google.protobuf.ByteString v = input.readBytes();
ensurePreHookScreenshotsIsMutable();
preHookScreenshots_.add(v);
break;
} // case 138
case 146: {
com.google.protobuf.ByteString v = input.readBytes();
ensurePostHookScreenshotsIsMutable();
postHookScreenshots_.add(v);
break;
} // case 146
case 152: {
chunked_ = input.readBool();
bitField0_ |= 0x00040000;
break;
} // case 152
case 160: {
chunkSize_ = input.readInt64();
bitField0_ |= 0x00080000;
break;
} // case 160
case 170: {
java.lang.String s = input.readStringRequireUtf8();
ensurePreHookScreenshotFilesIsMutable();
preHookScreenshotFiles_.add(s);
break;
} // case 170
case 178: {
java.lang.String s = input.readStringRequireUtf8();
ensurePostHookScreenshotFilesIsMutable();
postHookScreenshotFiles_.add(s);
break;
} // case 178
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List