public static final class Messages.Pickle extends com.google.protobuf.GeneratedMessageV3 implements Messages.PickleOrBuilder
A `Pickle` represents a test case Cucumber can *execute*. 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).Protobuf type
io.cucumber.messages.Pickle| Modifier and Type | Class and Description |
|---|---|
static class |
Messages.Pickle.Builder
A `Pickle` represents a test case Cucumber can *execute*.
|
static class |
Messages.Pickle.PickleStep
An executable step
|
static interface |
Messages.Pickle.PickleStepOrBuilder |
static class |
Messages.Pickle.PickleTag
A tag
|
static interface |
Messages.Pickle.PickleTagOrBuilder |
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| Modifier and Type | Field and Description |
|---|---|
static int |
ID_FIELD_NUMBER |
static int |
LANGUAGE_FIELD_NUMBER |
static int |
LOCATIONS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
STEPS_FIELD_NUMBER |
static int |
TAGS_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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 pickle
|
com.google.protobuf.ByteString |
getLanguageBytes()
The language of the pickle
|
Messages.Location |
getLocations(int index)
The source locations of the pickle.
|
int |
getLocationsCount()
The source locations of the pickle.
|
List<Messages.Location> |
getLocationsList()
The source locations of the pickle.
|
Messages.LocationOrBuilder |
getLocationsOrBuilder(int index)
The source locations of the pickle.
|
List<? extends Messages.LocationOrBuilder> |
getLocationsOrBuilderList()
The source locations of the pickle.
|
String |
getName()
The name of the pickle
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the pickle
|
com.google.protobuf.Parser<Messages.Pickle> |
getParserForType() |
int |
getSerializedSize() |
Messages.Pickle.PickleStep |
getSteps(int index)
One or more steps
|
int |
getStepsCount()
One or more steps
|
List<Messages.Pickle.PickleStep> |
getStepsList()
One or more steps
|
Messages.Pickle.PickleStepOrBuilder |
getStepsOrBuilder(int index)
One or more steps
|
List<? extends Messages.Pickle.PickleStepOrBuilder> |
getStepsOrBuilderList()
One or more steps
|
Messages.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 file
|
com.google.protobuf.ByteString |
getUriBytes()
The uri of the source file
|
int |
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(ByteBuffer data) |
static Messages.Pickle |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<Messages.Pickle> |
parser() |
Messages.Pickle.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, getSerializedSizeInternal, isInitializedInternal, makeImmutableInternal, mergeFromInternal, toByteArray, toByteString, writeDelimitedTo, writeTo, writeToInternalclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int LANGUAGE_FIELD_NUMBER
public static final int STEPS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;getId in interface Messages.PickleOrBuilderpublic 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;getIdBytes in interface Messages.PickleOrBuilderpublic String getUri()
The uri of the source file
string uri = 2;getUri in interface Messages.PickleOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
The uri of the source file
string uri = 2;getUriBytes in interface Messages.PickleOrBuilderpublic String getName()
The name of the pickle
string name = 3;getName in interface Messages.PickleOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the pickle
string name = 3;getNameBytes in interface Messages.PickleOrBuilderpublic String getLanguage()
The language of the pickle
string language = 4;getLanguage in interface Messages.PickleOrBuilderpublic com.google.protobuf.ByteString getLanguageBytes()
The language of the pickle
string language = 4;getLanguageBytes in interface Messages.PickleOrBuilderpublic List<Messages.Pickle.PickleStep> getStepsList()
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;getStepsList in interface Messages.PickleOrBuilderpublic List<? extends Messages.Pickle.PickleStepOrBuilder> getStepsOrBuilderList()
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;getStepsOrBuilderList in interface Messages.PickleOrBuilderpublic int getStepsCount()
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;getStepsCount in interface Messages.PickleOrBuilderpublic Messages.Pickle.PickleStep getSteps(int index)
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;getSteps in interface Messages.PickleOrBuilderpublic Messages.Pickle.PickleStepOrBuilder getStepsOrBuilder(int index)
One or more steps
repeated .io.cucumber.messages.Pickle.PickleStep steps = 5;getStepsOrBuilder in interface Messages.PickleOrBuilderpublic 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;getTagsList in interface Messages.PickleOrBuilderpublic 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;getTagsOrBuilderList in interface Messages.PickleOrBuilderpublic 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;getTagsCount in interface Messages.PickleOrBuilderpublic 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;getTags in interface Messages.PickleOrBuilderpublic 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;getTagsOrBuilder in interface Messages.PickleOrBuilderpublic List<Messages.Location> getLocationsList()
The source locations of the pickle. The last one represents the unique line number. A pickle constructed from `Examples` will have the first location originating from the `Step`, and the second from the table row.
repeated .io.cucumber.messages.Location locations = 7;getLocationsList in interface Messages.PickleOrBuilderpublic List<? extends Messages.LocationOrBuilder> getLocationsOrBuilderList()
The source locations of the pickle. The last one represents the unique line number. A pickle constructed from `Examples` will have the first location originating from the `Step`, and the second from the table row.
repeated .io.cucumber.messages.Location locations = 7;getLocationsOrBuilderList in interface Messages.PickleOrBuilderpublic int getLocationsCount()
The source locations of the pickle. The last one represents the unique line number. A pickle constructed from `Examples` will have the first location originating from the `Step`, and the second from the table row.
repeated .io.cucumber.messages.Location locations = 7;getLocationsCount in interface Messages.PickleOrBuilderpublic Messages.Location getLocations(int index)
The source locations of the pickle. The last one represents the unique line number. A pickle constructed from `Examples` will have the first location originating from the `Step`, and the second from the table row.
repeated .io.cucumber.messages.Location locations = 7;getLocations in interface Messages.PickleOrBuilderpublic Messages.LocationOrBuilder getLocationsOrBuilder(int index)
The source locations of the pickle. The last one represents the unique line number. A pickle constructed from `Examples` will have the first location originating from the `Step`, and the second from the table row.
repeated .io.cucumber.messages.Location locations = 7;getLocationsOrBuilder in interface Messages.PickleOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Messages.Pickle parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.Pickle parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.Pickle parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.Pickle parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.Pickle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.Pickle parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.Pickle parseFrom(InputStream input) throws IOException
IOExceptionpublic static Messages.Pickle parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Messages.Pickle parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Messages.Pickle parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Messages.Pickle parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Messages.Pickle parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Messages.Pickle.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Messages.Pickle.Builder newBuilder()
public static Messages.Pickle.Builder newBuilder(Messages.Pickle prototype)
public Messages.Pickle.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Messages.Pickle.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Messages.Pickle getDefaultInstance()
public static com.google.protobuf.Parser<Messages.Pickle> parser()
public com.google.protobuf.Parser<Messages.Pickle> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Messages.Pickle getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.