Package io.cucumber.messages
Class Messages.Pickle
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.cucumber.messages.Messages.Pickle
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Messages.PickleOrBuilder,Serializable
- Enclosing class:
- Messages
public static final class Messages.Pickle extends com.google.protobuf.GeneratedMessageV3 implements Messages.PickleOrBuilder
A `Pickle` represents a template for a `TestCase`. It is typically derived from another format, such as [GherkinDocument](#io.cucumber.messages.GherkinDocument). In the future a `Pickle` may be derived from other formats such as Markdown or Excel files. By making `Pickle` the main data structure Cucumber uses for execution, the implementation of Cucumber itself becomes simpler, as it doesn't have to deal with the complex structure of a [GherkinDocument](#io.cucumber.messages.GherkinDocument). Each `PickleStep` of a `Pickle` is matched with a `StepDefinition` to create a `TestCase`
Protobuf typeio.cucumber.messages.Pickle- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessages.Pickle.BuilderA `Pickle` represents a template for a `TestCase`.static classMessages.Pickle.PickleStepAn executable stepstatic interfaceMessages.Pickle.PickleStepOrBuilderstatic classMessages.Pickle.PickleTagA tagstatic interfaceMessages.Pickle.PickleTagOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAST_NODE_IDS_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intLANGUAGE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSTEPS_FIELD_NUMBERstatic intTAGS_FIELD_NUMBERstatic intURI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAstNodeIds(int index)Points to the AST node locations of the pickle.com.google.protobuf.ByteStringgetAstNodeIdsBytes(int index)Points to the AST node locations of the pickle.intgetAstNodeIdsCount()Points to the AST node locations of the pickle.com.google.protobuf.ProtocolStringListgetAstNodeIdsList()Points to the AST node locations of the pickle.static Messages.PicklegetDefaultInstance()Messages.PicklegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetId()A unique id for the pickle.com.google.protobuf.ByteStringgetIdBytes()A unique id for the pickle.StringgetLanguage()The language of the picklecom.google.protobuf.ByteStringgetLanguageBytes()The language of the pickleStringgetName()The name of the picklecom.google.protobuf.ByteStringgetNameBytes()The name of the picklecom.google.protobuf.Parser<Messages.Pickle>getParserForType()intgetSerializedSize()Messages.Pickle.PickleStepgetSteps(int index)One or more stepsintgetStepsCount()One or more stepsList<Messages.Pickle.PickleStep>getStepsList()One or more stepsMessages.Pickle.PickleStepOrBuildergetStepsOrBuilder(int index)One or more stepsList<? extends Messages.Pickle.PickleStepOrBuilder>getStepsOrBuilderList()One or more stepsMessages.Pickle.PickleTaggetTags(int index)One or more tags.intgetTagsCount()One or more tags.List<Messages.Pickle.PickleTag>getTagsList()One or more tags.Messages.Pickle.PickleTagOrBuildergetTagsOrBuilder(int index)One or more tags.List<? extends Messages.Pickle.PickleTagOrBuilder>getTagsOrBuilderList()One or more tags.com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetUri()The uri of the source filecom.google.protobuf.ByteStringgetUriBytes()The uri of the source fileinthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Messages.Pickle.BuildernewBuilder()static Messages.Pickle.BuildernewBuilder(Messages.Pickle prototype)Messages.Pickle.BuildernewBuilderForType()protected Messages.Pickle.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)static Messages.PickleparseDelimitedFrom(InputStream input)static Messages.PickleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.PickleparseFrom(byte[] data)static Messages.PickleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.PickleparseFrom(com.google.protobuf.ByteString data)static Messages.PickleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.PickleparseFrom(com.google.protobuf.CodedInputStream input)static Messages.PickleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.PickleparseFrom(InputStream input)static Messages.PickleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.PickleparseFrom(ByteBuffer data)static Messages.PickleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Messages.Pickle>parser()Messages.Pickle.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANGUAGE_FIELD_NUMBER
public static final int LANGUAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STEPS_FIELD_NUMBER
public static final int STEPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AST_NODE_IDS_FIELD_NUMBER
public static final int AST_NODE_IDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getId
public String getId()
A unique id for the pickle. This is a [SHA1](https://en.wikipedia.org/wiki/SHA-1) hash from the source data and the `locations` of the pickle. This ID will change if source the file is modified.
string id = 1;- Specified by:
getIdin interfaceMessages.PickleOrBuilder
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
A unique id for the pickle. This is a [SHA1](https://en.wikipedia.org/wiki/SHA-1) hash from the source data and the `locations` of the pickle. This ID will change if source the file is modified.
string id = 1;- Specified by:
getIdBytesin interfaceMessages.PickleOrBuilder
-
getUri
public String getUri()
The uri of the source file
string uri = 2;- Specified by:
getUriin interfaceMessages.PickleOrBuilder
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
The uri of the source file
string uri = 2;- Specified by:
getUriBytesin interfaceMessages.PickleOrBuilder
-
getName
public String getName()
The name of the pickle
string name = 3;- Specified by:
getNamein interfaceMessages.PickleOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the pickle
string name = 3;- Specified by:
getNameBytesin interfaceMessages.PickleOrBuilder
-
getLanguage
public String getLanguage()
The language of the pickle
string language = 4;- Specified by:
getLanguagein interfaceMessages.PickleOrBuilder
-
getLanguageBytes
public com.google.protobuf.ByteString getLanguageBytes()
The language of the pickle
string language = 4;- Specified by:
getLanguageBytesin interfaceMessages.PickleOrBuilder
-
getStepsList
public List<Messages.Pickle.PickleStep> getStepsList()
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;- Specified by:
getStepsListin interfaceMessages.PickleOrBuilder
-
getStepsOrBuilderList
public List<? extends Messages.Pickle.PickleStepOrBuilder> getStepsOrBuilderList()
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;- Specified by:
getStepsOrBuilderListin interfaceMessages.PickleOrBuilder
-
getStepsCount
public int getStepsCount()
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;- Specified by:
getStepsCountin interfaceMessages.PickleOrBuilder
-
getSteps
public Messages.Pickle.PickleStep getSteps(int index)
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;- Specified by:
getStepsin interfaceMessages.PickleOrBuilder
-
getStepsOrBuilder
public Messages.Pickle.PickleStepOrBuilder getStepsOrBuilder(int index)
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;- Specified by:
getStepsOrBuilderin interfaceMessages.PickleOrBuilder
-
getTagsList
public List<Messages.Pickle.PickleTag> getTagsList()
One or more tags. If this pickle is constructed from a Gherkin document, It includes inherited tags from the `Feature` as well.
repeated .io.cucumber.messages.Pickle.PickleTag tags = 6;- Specified by:
getTagsListin interfaceMessages.PickleOrBuilder
-
getTagsOrBuilderList
public List<? extends Messages.Pickle.PickleTagOrBuilder> getTagsOrBuilderList()
One or more tags. If this pickle is constructed from a Gherkin document, It includes inherited tags from the `Feature` as well.
repeated .io.cucumber.messages.Pickle.PickleTag tags = 6;- Specified by:
getTagsOrBuilderListin interfaceMessages.PickleOrBuilder
-
getTagsCount
public int getTagsCount()
One or more tags. If this pickle is constructed from a Gherkin document, It includes inherited tags from the `Feature` as well.
repeated .io.cucumber.messages.Pickle.PickleTag tags = 6;- Specified by:
getTagsCountin interfaceMessages.PickleOrBuilder
-
getTags
public Messages.Pickle.PickleTag getTags(int index)
One or more tags. If this pickle is constructed from a Gherkin document, It includes inherited tags from the `Feature` as well.
repeated .io.cucumber.messages.Pickle.PickleTag tags = 6;- Specified by:
getTagsin interfaceMessages.PickleOrBuilder
-
getTagsOrBuilder
public Messages.Pickle.PickleTagOrBuilder getTagsOrBuilder(int index)
One or more tags. If this pickle is constructed from a Gherkin document, It includes inherited tags from the `Feature` as well.
repeated .io.cucumber.messages.Pickle.PickleTag tags = 6;- Specified by:
getTagsOrBuilderin interfaceMessages.PickleOrBuilder
-
getAstNodeIdsList
public com.google.protobuf.ProtocolStringList getAstNodeIdsList()
Points to the AST node locations of the pickle. The last one represents the unique id of the pickle. A pickle constructed from `Examples` will have the first id originating from the `Scenario` AST node, and the second from the `TableRow` AST node.
repeated string ast_node_ids = 7;- Specified by:
getAstNodeIdsListin interfaceMessages.PickleOrBuilder
-
getAstNodeIdsCount
public int getAstNodeIdsCount()
Points to the AST node locations of the pickle. The last one represents the unique id of the pickle. A pickle constructed from `Examples` will have the first id originating from the `Scenario` AST node, and the second from the `TableRow` AST node.
repeated string ast_node_ids = 7;- Specified by:
getAstNodeIdsCountin interfaceMessages.PickleOrBuilder
-
getAstNodeIds
public String getAstNodeIds(int index)
Points to the AST node locations of the pickle. The last one represents the unique id of the pickle. A pickle constructed from `Examples` will have the first id originating from the `Scenario` AST node, and the second from the `TableRow` AST node.
repeated string ast_node_ids = 7;- Specified by:
getAstNodeIdsin interfaceMessages.PickleOrBuilder
-
getAstNodeIdsBytes
public com.google.protobuf.ByteString getAstNodeIdsBytes(int index)
Points to the AST node locations of the pickle. The last one represents the unique id of the pickle. A pickle constructed from `Examples` will have the first id originating from the `Scenario` AST node, and the second from the `TableRow` AST node.
repeated string ast_node_ids = 7;- Specified by:
getAstNodeIdsBytesin interfaceMessages.PickleOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Messages.Pickle parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Pickle parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Pickle parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Pickle parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Pickle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Pickle parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Pickle parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Messages.Pickle parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Messages.Pickle parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Messages.Pickle parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Messages.Pickle parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Messages.Pickle parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Messages.Pickle.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Messages.Pickle.Builder newBuilder()
-
newBuilder
public static Messages.Pickle.Builder newBuilder(Messages.Pickle prototype)
-
toBuilder
public Messages.Pickle.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Messages.Pickle.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Messages.Pickle getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Messages.Pickle> parser()
-
getParserForType
public com.google.protobuf.Parser<Messages.Pickle> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Messages.Pickle getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-