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 class
Messages.Pickle.Builder
A `Pickle` represents a template for a `TestCase`.static class
Messages.Pickle.PickleStep
An executable stepstatic interface
Messages.Pickle.PickleStepOrBuilder
static class
Messages.Pickle.PickleTag
A tagstatic interface
Messages.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 int
AST_NODE_IDS_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
LANGUAGE_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
STEPS_FIELD_NUMBER
static int
TAGS_FIELD_NUMBER
static int
URI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAstNodeIds(int index)
Points to the AST node locations of the pickle.com.google.protobuf.ByteString
getAstNodeIdsBytes(int index)
Points to the AST node locations of the pickle.int
getAstNodeIdsCount()
Points to the AST node locations of the pickle.com.google.protobuf.ProtocolStringList
getAstNodeIdsList()
Points to the AST node locations of the pickle.static Messages.Pickle
getDefaultInstance()
Messages.Pickle
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getId()
A unique id for the pickle.com.google.protobuf.ByteString
getIdBytes()
A unique id for the pickle.String
getLanguage()
The language of the picklecom.google.protobuf.ByteString
getLanguageBytes()
The language of the pickleString
getName()
The name of the picklecom.google.protobuf.ByteString
getNameBytes()
The name of the picklecom.google.protobuf.Parser<Messages.Pickle>
getParserForType()
int
getSerializedSize()
Messages.Pickle.PickleStep
getSteps(int index)
One or more stepsint
getStepsCount()
One or more stepsList<Messages.Pickle.PickleStep>
getStepsList()
One or more stepsMessages.Pickle.PickleStepOrBuilder
getStepsOrBuilder(int index)
One or more stepsList<? extends Messages.Pickle.PickleStepOrBuilder>
getStepsOrBuilderList()
One or more stepsMessages.Pickle.PickleTag
getTags(int index)
One or more tags.int
getTagsCount()
One or more tags.List<Messages.Pickle.PickleTag>
getTagsList()
One or more tags.Messages.Pickle.PickleTagOrBuilder
getTagsOrBuilder(int index)
One or more tags.List<? extends Messages.Pickle.PickleTagOrBuilder>
getTagsOrBuilderList()
One or more tags.com.google.protobuf.UnknownFieldSet
getUnknownFields()
String
getUri()
The uri of the source filecom.google.protobuf.ByteString
getUriBytes()
The uri of the source fileint
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Messages.Pickle.Builder
newBuilder()
static Messages.Pickle.Builder
newBuilder(Messages.Pickle prototype)
Messages.Pickle.Builder
newBuilderForType()
protected Messages.Pickle.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static Messages.Pickle
parseDelimitedFrom(InputStream input)
static Messages.Pickle
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Messages.Pickle
parseFrom(byte[] data)
static Messages.Pickle
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Messages.Pickle
parseFrom(com.google.protobuf.ByteString data)
static Messages.Pickle
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Messages.Pickle
parseFrom(com.google.protobuf.CodedInputStream input)
static Messages.Pickle
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Messages.Pickle
parseFrom(InputStream input)
static Messages.Pickle
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Messages.Pickle
parseFrom(ByteBuffer data)
static Messages.Pickle
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Messages.Pickle>
parser()
Messages.Pickle.Builder
toBuilder()
void
writeTo(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:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.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 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:
getId
in 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:
getIdBytes
in interfaceMessages.PickleOrBuilder
-
getUri
public String getUri()
The uri of the source file
string uri = 2;
- Specified by:
getUri
in interfaceMessages.PickleOrBuilder
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
The uri of the source file
string uri = 2;
- Specified by:
getUriBytes
in interfaceMessages.PickleOrBuilder
-
getName
public String getName()
The name of the pickle
string name = 3;
- Specified by:
getName
in interfaceMessages.PickleOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the pickle
string name = 3;
- Specified by:
getNameBytes
in interfaceMessages.PickleOrBuilder
-
getLanguage
public String getLanguage()
The language of the pickle
string language = 4;
- Specified by:
getLanguage
in interfaceMessages.PickleOrBuilder
-
getLanguageBytes
public com.google.protobuf.ByteString getLanguageBytes()
The language of the pickle
string language = 4;
- Specified by:
getLanguageBytes
in interfaceMessages.PickleOrBuilder
-
getStepsList
public List<Messages.Pickle.PickleStep> getStepsList()
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;
- Specified by:
getStepsList
in interfaceMessages.PickleOrBuilder
-
getStepsOrBuilderList
public List<? extends Messages.Pickle.PickleStepOrBuilder> getStepsOrBuilderList()
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;
- Specified by:
getStepsOrBuilderList
in interfaceMessages.PickleOrBuilder
-
getStepsCount
public int getStepsCount()
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;
- Specified by:
getStepsCount
in interfaceMessages.PickleOrBuilder
-
getSteps
public Messages.Pickle.PickleStep getSteps(int index)
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;
- Specified by:
getSteps
in interfaceMessages.PickleOrBuilder
-
getStepsOrBuilder
public Messages.Pickle.PickleStepOrBuilder getStepsOrBuilder(int index)
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;
- Specified by:
getStepsOrBuilder
in 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:
getTagsList
in 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:
getTagsOrBuilderList
in 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:
getTagsCount
in 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:
getTags
in 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:
getTagsOrBuilder
in 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:
getAstNodeIdsList
in 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:
getAstNodeIdsCount
in 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:
getAstNodeIds
in 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:
getAstNodeIdsBytes
in interfaceMessages.PickleOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Messages.Pickle.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Messages.Pickle getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-