Class Spec.ProtoSpec

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Spec.ProtoSpecOrBuilder, Serializable
    Enclosing class:
    Spec

    public static final class Spec.ProtoSpec
    extends com.google.protobuf.GeneratedMessageV3
    implements Spec.ProtoSpecOrBuilder
    / A proto object representing a Specification
     / A specification can contain Scenarios or Steps, besides Comments
     
    Protobuf type gauge.messages.ProtoSpec
    See Also:
    Serialized Form
    • Field Detail

      • SPECHEADING_FIELD_NUMBER

        public static final int SPECHEADING_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ISTABLEDRIVEN_FIELD_NUMBER

        public static final int ISTABLEDRIVEN_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREHOOKFAILURES_FIELD_NUMBER

        public static final int PREHOOKFAILURES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POSTHOOKFAILURES_FIELD_NUMBER

        public static final int POSTHOOKFAILURES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREHOOKMESSAGES_FIELD_NUMBER

        public static final int PREHOOKMESSAGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POSTHOOKMESSAGES_FIELD_NUMBER

        public static final int POSTHOOKMESSAGES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREHOOKMESSAGE_FIELD_NUMBER

        public static final int PREHOOKMESSAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POSTHOOKMESSAGE_FIELD_NUMBER

        public static final int POSTHOOKMESSAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREHOOKSCREENSHOTS_FIELD_NUMBER

        public static final int PREHOOKSCREENSHOTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POSTHOOKSCREENSHOTS_FIELD_NUMBER

        public static final int POSTHOOKSCREENSHOTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PREHOOKSCREENSHOTFILES_FIELD_NUMBER

        public static final int PREHOOKSCREENSHOTFILES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POSTHOOKSCREENSHOTFILES_FIELD_NUMBER

        public static final int POSTHOOKSCREENSHOTFILES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getSpecHeadingBytes

        public com.google.protobuf.ByteString getSpecHeadingBytes()
        / Heading describing the Specification
         
        string specHeading = 1;
        Specified by:
        getSpecHeadingBytes in interface Spec.ProtoSpecOrBuilder
      • getItemsCount

        public int getItemsCount()
        / A collection of items that come under this step
         
        repeated .gauge.messages.ProtoItem items = 2;
        Specified by:
        getItemsCount in interface Spec.ProtoSpecOrBuilder
      • getIsTableDriven

        public boolean getIsTableDriven()
        / Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
         
        bool isTableDriven = 3;
        Specified by:
        getIsTableDriven in interface Spec.ProtoSpecOrBuilder
      • getPreHookFailuresCount

        public int getPreHookFailuresCount()
        / Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
         
        repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
        Specified by:
        getPreHookFailuresCount in interface Spec.ProtoSpecOrBuilder
      • getPreHookFailures

        public Spec.ProtoHookFailure getPreHookFailures​(int index)
        / Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
         
        repeated .gauge.messages.ProtoHookFailure preHookFailures = 4;
        Specified by:
        getPreHookFailures in interface Spec.ProtoSpecOrBuilder
      • getPostHookFailuresCount

        public int getPostHookFailuresCount()
        / Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
         
        repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
        Specified by:
        getPostHookFailuresCount in interface Spec.ProtoSpecOrBuilder
      • getPostHookFailures

        public Spec.ProtoHookFailure getPostHookFailures​(int index)
        / Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
         
        repeated .gauge.messages.ProtoHookFailure postHookFailures = 5;
        Specified by:
        getPostHookFailures in interface Spec.ProtoSpecOrBuilder
      • getFileNameBytes

        public com.google.protobuf.ByteString getFileNameBytes()
        / Contains the filename for that holds this specification.
         
        string fileName = 6;
        Specified by:
        getFileNameBytes in interface Spec.ProtoSpecOrBuilder
      • getTagsList

        public com.google.protobuf.ProtocolStringList getTagsList()
        / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
         
        repeated string tags = 7;
        Specified by:
        getTagsList in interface Spec.ProtoSpecOrBuilder
      • getTagsCount

        public int getTagsCount()
        / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
         
        repeated string tags = 7;
        Specified by:
        getTagsCount in interface Spec.ProtoSpecOrBuilder
      • getTags

        public 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;
        Specified by:
        getTags in interface Spec.ProtoSpecOrBuilder
      • getTagsBytes

        public com.google.protobuf.ByteString getTagsBytes​(int index)
        / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
         
        repeated string tags = 7;
        Specified by:
        getTagsBytes in interface Spec.ProtoSpecOrBuilder
      • getPreHookMessagesList

        public com.google.protobuf.ProtocolStringList getPreHookMessagesList()
        / Additional information at pre hook exec time to be available on reports
         
        repeated string preHookMessages = 8;
        Specified by:
        getPreHookMessagesList in interface Spec.ProtoSpecOrBuilder
      • getPreHookMessagesCount

        public int getPreHookMessagesCount()
        / Additional information at pre hook exec time to be available on reports
         
        repeated string preHookMessages = 8;
        Specified by:
        getPreHookMessagesCount in interface Spec.ProtoSpecOrBuilder
      • getPreHookMessages

        public String getPreHookMessages​(int index)
        / Additional information at pre hook exec time to be available on reports
         
        repeated string preHookMessages = 8;
        Specified by:
        getPreHookMessages in interface Spec.ProtoSpecOrBuilder
      • getPreHookMessagesBytes

        public com.google.protobuf.ByteString getPreHookMessagesBytes​(int index)
        / Additional information at pre hook exec time to be available on reports
         
        repeated string preHookMessages = 8;
        Specified by:
        getPreHookMessagesBytes in interface Spec.ProtoSpecOrBuilder
      • getPostHookMessagesList

        public com.google.protobuf.ProtocolStringList getPostHookMessagesList()
        / Additional information at post hook exec time to be available on reports
         
        repeated string postHookMessages = 9;
        Specified by:
        getPostHookMessagesList in interface Spec.ProtoSpecOrBuilder
      • getPostHookMessagesCount

        public int getPostHookMessagesCount()
        / Additional information at post hook exec time to be available on reports
         
        repeated string postHookMessages = 9;
        Specified by:
        getPostHookMessagesCount in interface Spec.ProtoSpecOrBuilder
      • getPostHookMessages

        public String getPostHookMessages​(int index)
        / Additional information at post hook exec time to be available on reports
         
        repeated string postHookMessages = 9;
        Specified by:
        getPostHookMessages in interface Spec.ProtoSpecOrBuilder
      • getPostHookMessagesBytes

        public com.google.protobuf.ByteString getPostHookMessagesBytes​(int index)
        / Additional information at post hook exec time to be available on reports
         
        repeated string postHookMessages = 9;
        Specified by:
        getPostHookMessagesBytes in interface Spec.ProtoSpecOrBuilder
      • getPreHookMessageList

        @Deprecated
        public com.google.protobuf.ProtocolStringList getPreHookMessageList()
        Deprecated.
        / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
         
        repeated string preHookMessage = 10 [deprecated = true];
        Specified by:
        getPreHookMessageList in interface Spec.ProtoSpecOrBuilder
      • getPreHookMessageCount

        @Deprecated
        public int getPreHookMessageCount()
        Deprecated.
        / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
         
        repeated string preHookMessage = 10 [deprecated = true];
        Specified by:
        getPreHookMessageCount in interface Spec.ProtoSpecOrBuilder
      • getPreHookMessage

        @Deprecated
        public String getPreHookMessage​(int index)
        Deprecated.
        / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
         
        repeated string preHookMessage = 10 [deprecated = true];
        Specified by:
        getPreHookMessage in interface Spec.ProtoSpecOrBuilder
      • getPreHookMessageBytes

        @Deprecated
        public com.google.protobuf.ByteString getPreHookMessageBytes​(int index)
        Deprecated.
        / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
         
        repeated string preHookMessage = 10 [deprecated = true];
        Specified by:
        getPreHookMessageBytes in interface Spec.ProtoSpecOrBuilder
      • getPostHookMessageList

        @Deprecated
        public com.google.protobuf.ProtocolStringList getPostHookMessageList()
        Deprecated.
        / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
         
        repeated string postHookMessage = 11 [deprecated = true];
        Specified by:
        getPostHookMessageList in interface Spec.ProtoSpecOrBuilder
      • getPostHookMessageCount

        @Deprecated
        public int getPostHookMessageCount()
        Deprecated.
        / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
         
        repeated string postHookMessage = 11 [deprecated = true];
        Specified by:
        getPostHookMessageCount in interface Spec.ProtoSpecOrBuilder
      • getPostHookMessage

        @Deprecated
        public String getPostHookMessage​(int index)
        Deprecated.
        / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
         
        repeated string postHookMessage = 11 [deprecated = true];
        Specified by:
        getPostHookMessage in interface Spec.ProtoSpecOrBuilder
      • getPostHookMessageBytes

        @Deprecated
        public com.google.protobuf.ByteString getPostHookMessageBytes​(int index)
        Deprecated.
        / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
         
        repeated string postHookMessage = 11 [deprecated = true];
        Specified by:
        getPostHookMessageBytes in interface Spec.ProtoSpecOrBuilder
      • getPreHookScreenshotsList

        @Deprecated
        public List<com.google.protobuf.ByteString> getPreHookScreenshotsList()
        Deprecated.
        / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
         
        repeated bytes preHookScreenshots = 12 [deprecated = true];
        Specified by:
        getPreHookScreenshotsList in interface Spec.ProtoSpecOrBuilder
      • getPreHookScreenshotsCount

        @Deprecated
        public int getPreHookScreenshotsCount()
        Deprecated.
        / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
         
        repeated bytes preHookScreenshots = 12 [deprecated = true];
        Specified by:
        getPreHookScreenshotsCount in interface Spec.ProtoSpecOrBuilder
      • getPreHookScreenshots

        @Deprecated
        public com.google.protobuf.ByteString getPreHookScreenshots​(int index)
        Deprecated.
        / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
         
        repeated bytes preHookScreenshots = 12 [deprecated = true];
        Specified by:
        getPreHookScreenshots in interface Spec.ProtoSpecOrBuilder
      • getPostHookScreenshotsList

        @Deprecated
        public List<com.google.protobuf.ByteString> getPostHookScreenshotsList()
        Deprecated.
        / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
         
        repeated bytes postHookScreenshots = 13 [deprecated = true];
        Specified by:
        getPostHookScreenshotsList in interface Spec.ProtoSpecOrBuilder
      • getPostHookScreenshotsCount

        @Deprecated
        public int getPostHookScreenshotsCount()
        Deprecated.
        / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
         
        repeated bytes postHookScreenshots = 13 [deprecated = true];
        Specified by:
        getPostHookScreenshotsCount in interface Spec.ProtoSpecOrBuilder
      • getPostHookScreenshots

        @Deprecated
        public com.google.protobuf.ByteString getPostHookScreenshots​(int index)
        Deprecated.
        / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
         
        repeated bytes postHookScreenshots = 13 [deprecated = true];
        Specified by:
        getPostHookScreenshots in interface Spec.ProtoSpecOrBuilder
      • getItemCount

        public long getItemCount()
        / meta field to indicate the number of items in the list
         / used when items are sent as individual chunk
         
        int64 itemCount = 14;
        Specified by:
        getItemCount in interface Spec.ProtoSpecOrBuilder
      • getPreHookScreenshotFilesList

        public com.google.protobuf.ProtocolStringList getPreHookScreenshotFilesList()
        / Screenshots captured on pre hook exec time to be available on reports
         
        repeated string preHookScreenshotFiles = 15;
        Specified by:
        getPreHookScreenshotFilesList in interface Spec.ProtoSpecOrBuilder
      • getPreHookScreenshotFilesCount

        public int getPreHookScreenshotFilesCount()
        / Screenshots captured on pre hook exec time to be available on reports
         
        repeated string preHookScreenshotFiles = 15;
        Specified by:
        getPreHookScreenshotFilesCount in interface Spec.ProtoSpecOrBuilder
      • getPreHookScreenshotFiles

        public String getPreHookScreenshotFiles​(int index)
        / Screenshots captured on pre hook exec time to be available on reports
         
        repeated string preHookScreenshotFiles = 15;
        Specified by:
        getPreHookScreenshotFiles in interface Spec.ProtoSpecOrBuilder
      • getPreHookScreenshotFilesBytes

        public com.google.protobuf.ByteString getPreHookScreenshotFilesBytes​(int index)
        / Screenshots captured on pre hook exec time to be available on reports
         
        repeated string preHookScreenshotFiles = 15;
        Specified by:
        getPreHookScreenshotFilesBytes in interface Spec.ProtoSpecOrBuilder
      • getPostHookScreenshotFilesList

        public com.google.protobuf.ProtocolStringList getPostHookScreenshotFilesList()
        / Screenshots captured on post hook exec time to be available on reports
         
        repeated string postHookScreenshotFiles = 16;
        Specified by:
        getPostHookScreenshotFilesList in interface Spec.ProtoSpecOrBuilder
      • getPostHookScreenshotFilesCount

        public int getPostHookScreenshotFilesCount()
        / Screenshots captured on post hook exec time to be available on reports
         
        repeated string postHookScreenshotFiles = 16;
        Specified by:
        getPostHookScreenshotFilesCount in interface Spec.ProtoSpecOrBuilder
      • getPostHookScreenshotFiles

        public String getPostHookScreenshotFiles​(int index)
        / Screenshots captured on post hook exec time to be available on reports
         
        repeated string postHookScreenshotFiles = 16;
        Specified by:
        getPostHookScreenshotFiles in interface Spec.ProtoSpecOrBuilder
      • getPostHookScreenshotFilesBytes

        public com.google.protobuf.ByteString getPostHookScreenshotFilesBytes​(int index)
        / Screenshots captured on post hook exec time to be available on reports
         
        repeated string postHookScreenshotFiles = 16;
        Specified by:
        getPostHookScreenshotFilesBytes in interface Spec.ProtoSpecOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Spec.ProtoSpec parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Spec.ProtoSpec parseFrom​(ByteBuffer data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Spec.ProtoSpec parseFrom​(com.google.protobuf.ByteString data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Spec.ProtoSpec parseFrom​(com.google.protobuf.ByteString data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Spec.ProtoSpec parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Spec.ProtoSpec parseFrom​(byte[] data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Spec.ProtoSpec parseFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Spec.ProtoSpec.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Spec.ProtoSpec.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Spec.ProtoSpec.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Spec.ProtoSpec getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Spec.ProtoSpec> parser()
      • getParserForType

        public com.google.protobuf.Parser<Spec.ProtoSpec> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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