Class Spec.ProtoItem

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

    public static final class Spec.ProtoItem
    extends com.google.protobuf.GeneratedMessageV3
    implements Spec.ProtoItemOrBuilder
    / Container for all valid Items under a Specification.
     
    Protobuf type gauge.messages.ProtoItem
    See Also:
    Serialized Form
    • 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
      • getItemTypeValue

        public int getItemTypeValue()
        / Itemtype of the current ProtoItem
         
        .gauge.messages.ProtoItem.ItemType itemType = 1;
        Specified by:
        getItemTypeValue in interface Spec.ProtoItemOrBuilder
      • hasStep

        public boolean hasStep()
        / Holds the Step definition. Valid only if ItemType = Step
         
        .gauge.messages.ProtoStep step = 2;
        Specified by:
        hasStep in interface Spec.ProtoItemOrBuilder
      • hasConcept

        public boolean hasConcept()
        / Holds the Concept definition. Valid only if ItemType = Concept
         
        .gauge.messages.ProtoConcept concept = 3;
        Specified by:
        hasConcept in interface Spec.ProtoItemOrBuilder
      • hasScenario

        public boolean hasScenario()
        / Holds the Scenario definition. Valid only if ItemType = Scenario
         
        .gauge.messages.ProtoScenario scenario = 4;
        Specified by:
        hasScenario in interface Spec.ProtoItemOrBuilder
      • hasTableDrivenScenario

        public boolean hasTableDrivenScenario()
        / Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
         
        .gauge.messages.ProtoTableDrivenScenario tableDrivenScenario = 5;
        Specified by:
        hasTableDrivenScenario in interface Spec.ProtoItemOrBuilder
      • hasComment

        public boolean hasComment()
        / Holds the Comment definition. Valid only if ItemType = Comment
         
        .gauge.messages.ProtoComment comment = 6;
        Specified by:
        hasComment in interface Spec.ProtoItemOrBuilder
      • hasTable

        public boolean hasTable()
        / Holds the Table definition. Valid only if ItemType = Table
         
        .gauge.messages.ProtoTable table = 7;
        Specified by:
        hasTable in interface Spec.ProtoItemOrBuilder
      • hasTags

        public boolean hasTags()
        / Holds the Tags definition. Valid only if ItemType = Tags
         
        .gauge.messages.ProtoTags tags = 8;
        Specified by:
        hasTags in interface Spec.ProtoItemOrBuilder
      • getFileNameBytes

        public com.google.protobuf.ByteString getFileNameBytes()
        / Holds the Filename that the item belongs to
         
        string fileName = 9;
        Specified by:
        getFileNameBytes in interface Spec.ProtoItemOrBuilder
      • 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.ProtoItem parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static Spec.ProtoItem 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.ProtoItem parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static Spec.ProtoItem getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<Spec.ProtoItem> 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.ProtoItem getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder