Package io.cucumber.messages
Class Messages.GherkinDocument.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
- io.cucumber.messages.Messages.GherkinDocument.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Messages.GherkinDocumentOrBuilder,Cloneable
- Enclosing class:
- Messages.GherkinDocument
public static final class Messages.GherkinDocument.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder> implements Messages.GherkinDocumentOrBuilder
The [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) of a Gherkin document. Cucumber implementations should *not* depend on `GherkinDocument` or any of its children for execution - use [Pickle](#io.cucumber.messages.Pickle) instead. The only consumers of `GherkinDocument` should only be formatters that produce "rich" output, resembling the original Gherkin document.
Protobuf typeio.cucumber.messages.GherkinDocument
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Messages.GherkinDocument.BuilderaddAllComments(Iterable<? extends Messages.GherkinDocument.Comment> values)All the comments in the Gherkin documentMessages.GherkinDocument.BuilderaddComments(int index, Messages.GherkinDocument.Comment value)All the comments in the Gherkin documentMessages.GherkinDocument.BuilderaddComments(int index, Messages.GherkinDocument.Comment.Builder builderForValue)All the comments in the Gherkin documentMessages.GherkinDocument.BuilderaddComments(Messages.GherkinDocument.Comment value)All the comments in the Gherkin documentMessages.GherkinDocument.BuilderaddComments(Messages.GherkinDocument.Comment.Builder builderForValue)All the comments in the Gherkin documentMessages.GherkinDocument.Comment.BuilderaddCommentsBuilder()All the comments in the Gherkin documentMessages.GherkinDocument.Comment.BuilderaddCommentsBuilder(int index)All the comments in the Gherkin documentMessages.GherkinDocument.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Messages.GherkinDocumentbuild()Messages.GherkinDocumentbuildPartial()Messages.GherkinDocument.Builderclear()Messages.GherkinDocument.BuilderclearComments()All the comments in the Gherkin documentMessages.GherkinDocument.BuilderclearFeature().io.cucumber.messages.GherkinDocument.Feature feature = 2;Messages.GherkinDocument.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Messages.GherkinDocument.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Messages.GherkinDocument.BuilderclearUri()The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directoryMessages.GherkinDocument.Builderclone()Messages.GherkinDocument.CommentgetComments(int index)All the comments in the Gherkin documentMessages.GherkinDocument.Comment.BuildergetCommentsBuilder(int index)All the comments in the Gherkin documentList<Messages.GherkinDocument.Comment.Builder>getCommentsBuilderList()All the comments in the Gherkin documentintgetCommentsCount()All the comments in the Gherkin documentList<Messages.GherkinDocument.Comment>getCommentsList()All the comments in the Gherkin documentMessages.GherkinDocument.CommentOrBuildergetCommentsOrBuilder(int index)All the comments in the Gherkin documentList<? extends Messages.GherkinDocument.CommentOrBuilder>getCommentsOrBuilderList()All the comments in the Gherkin documentMessages.GherkinDocumentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Messages.GherkinDocument.FeaturegetFeature().io.cucumber.messages.GherkinDocument.Feature feature = 2;Messages.GherkinDocument.Feature.BuildergetFeatureBuilder().io.cucumber.messages.GherkinDocument.Feature feature = 2;Messages.GherkinDocument.FeatureOrBuildergetFeatureOrBuilder().io.cucumber.messages.GherkinDocument.Feature feature = 2;StringgetUri()The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directorycom.google.protobuf.ByteStringgetUriBytes()The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directorybooleanhasFeature().io.cucumber.messages.GherkinDocument.Feature feature = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Messages.GherkinDocument.BuildermergeFeature(Messages.GherkinDocument.Feature value).io.cucumber.messages.GherkinDocument.Feature feature = 2;Messages.GherkinDocument.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Messages.GherkinDocument.BuildermergeFrom(com.google.protobuf.Message other)Messages.GherkinDocument.BuildermergeFrom(Messages.GherkinDocument other)Messages.GherkinDocument.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Messages.GherkinDocument.BuilderremoveComments(int index)All the comments in the Gherkin documentMessages.GherkinDocument.BuildersetComments(int index, Messages.GherkinDocument.Comment value)All the comments in the Gherkin documentMessages.GherkinDocument.BuildersetComments(int index, Messages.GherkinDocument.Comment.Builder builderForValue)All the comments in the Gherkin documentMessages.GherkinDocument.BuildersetFeature(Messages.GherkinDocument.Feature value).io.cucumber.messages.GherkinDocument.Feature feature = 2;Messages.GherkinDocument.BuildersetFeature(Messages.GherkinDocument.Feature.Builder builderForValue).io.cucumber.messages.GherkinDocument.Feature feature = 2;Messages.GherkinDocument.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Messages.GherkinDocument.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Messages.GherkinDocument.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Messages.GherkinDocument.BuildersetUri(String value)The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directoryMessages.GherkinDocument.BuildersetUriBytes(com.google.protobuf.ByteString value)The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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.Builder<Messages.GherkinDocument.Builder>
-
clear
public Messages.GherkinDocument.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
getDefaultInstanceForType
public Messages.GherkinDocument getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Messages.GherkinDocument build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Messages.GherkinDocument buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Messages.GherkinDocument.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
setField
public Messages.GherkinDocument.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
clearField
public Messages.GherkinDocument.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
clearOneof
public Messages.GherkinDocument.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
setRepeatedField
public Messages.GherkinDocument.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
addRepeatedField
public Messages.GherkinDocument.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
mergeFrom
public Messages.GherkinDocument.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Messages.GherkinDocument.Builder>
-
mergeFrom
public Messages.GherkinDocument.Builder mergeFrom(Messages.GherkinDocument other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
mergeFrom
public Messages.GherkinDocument.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Messages.GherkinDocument.Builder>- Throws:
IOException
-
getUri
public String getUri()
The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory
string uri = 1;- Specified by:
getUriin interfaceMessages.GherkinDocumentOrBuilder
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory
string uri = 1;- Specified by:
getUriBytesin interfaceMessages.GherkinDocumentOrBuilder
-
setUri
public Messages.GherkinDocument.Builder setUri(String value)
The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory
string uri = 1;
-
clearUri
public Messages.GherkinDocument.Builder clearUri()
The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory
string uri = 1;
-
setUriBytes
public Messages.GherkinDocument.Builder setUriBytes(com.google.protobuf.ByteString value)
The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory
string uri = 1;
-
hasFeature
public boolean hasFeature()
.io.cucumber.messages.GherkinDocument.Feature feature = 2;- Specified by:
hasFeaturein interfaceMessages.GherkinDocumentOrBuilder
-
getFeature
public Messages.GherkinDocument.Feature getFeature()
.io.cucumber.messages.GherkinDocument.Feature feature = 2;- Specified by:
getFeaturein interfaceMessages.GherkinDocumentOrBuilder
-
setFeature
public Messages.GherkinDocument.Builder setFeature(Messages.GherkinDocument.Feature value)
.io.cucumber.messages.GherkinDocument.Feature feature = 2;
-
setFeature
public Messages.GherkinDocument.Builder setFeature(Messages.GherkinDocument.Feature.Builder builderForValue)
.io.cucumber.messages.GherkinDocument.Feature feature = 2;
-
mergeFeature
public Messages.GherkinDocument.Builder mergeFeature(Messages.GherkinDocument.Feature value)
.io.cucumber.messages.GherkinDocument.Feature feature = 2;
-
clearFeature
public Messages.GherkinDocument.Builder clearFeature()
.io.cucumber.messages.GherkinDocument.Feature feature = 2;
-
getFeatureBuilder
public Messages.GherkinDocument.Feature.Builder getFeatureBuilder()
.io.cucumber.messages.GherkinDocument.Feature feature = 2;
-
getFeatureOrBuilder
public Messages.GherkinDocument.FeatureOrBuilder getFeatureOrBuilder()
.io.cucumber.messages.GherkinDocument.Feature feature = 2;- Specified by:
getFeatureOrBuilderin interfaceMessages.GherkinDocumentOrBuilder
-
getCommentsList
public List<Messages.GherkinDocument.Comment> getCommentsList()
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;- Specified by:
getCommentsListin interfaceMessages.GherkinDocumentOrBuilder
-
getCommentsCount
public int getCommentsCount()
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;- Specified by:
getCommentsCountin interfaceMessages.GherkinDocumentOrBuilder
-
getComments
public Messages.GherkinDocument.Comment getComments(int index)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;- Specified by:
getCommentsin interfaceMessages.GherkinDocumentOrBuilder
-
setComments
public Messages.GherkinDocument.Builder setComments(int index, Messages.GherkinDocument.Comment value)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
setComments
public Messages.GherkinDocument.Builder setComments(int index, Messages.GherkinDocument.Comment.Builder builderForValue)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
addComments
public Messages.GherkinDocument.Builder addComments(Messages.GherkinDocument.Comment value)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
addComments
public Messages.GherkinDocument.Builder addComments(int index, Messages.GherkinDocument.Comment value)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
addComments
public Messages.GherkinDocument.Builder addComments(Messages.GherkinDocument.Comment.Builder builderForValue)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
addComments
public Messages.GherkinDocument.Builder addComments(int index, Messages.GherkinDocument.Comment.Builder builderForValue)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
addAllComments
public Messages.GherkinDocument.Builder addAllComments(Iterable<? extends Messages.GherkinDocument.Comment> values)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
clearComments
public Messages.GherkinDocument.Builder clearComments()
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
removeComments
public Messages.GherkinDocument.Builder removeComments(int index)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
getCommentsBuilder
public Messages.GherkinDocument.Comment.Builder getCommentsBuilder(int index)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
getCommentsOrBuilder
public Messages.GherkinDocument.CommentOrBuilder getCommentsOrBuilder(int index)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;- Specified by:
getCommentsOrBuilderin interfaceMessages.GherkinDocumentOrBuilder
-
getCommentsOrBuilderList
public List<? extends Messages.GherkinDocument.CommentOrBuilder> getCommentsOrBuilderList()
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;- Specified by:
getCommentsOrBuilderListin interfaceMessages.GherkinDocumentOrBuilder
-
addCommentsBuilder
public Messages.GherkinDocument.Comment.Builder addCommentsBuilder()
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
addCommentsBuilder
public Messages.GherkinDocument.Comment.Builder addCommentsBuilder(int index)
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
getCommentsBuilderList
public List<Messages.GherkinDocument.Comment.Builder> getCommentsBuilderList()
All the comments in the Gherkin document
repeated .io.cucumber.messages.GherkinDocument.Comment comments = 3;
-
setUnknownFields
public final Messages.GherkinDocument.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
mergeUnknownFields
public final Messages.GherkinDocument.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.GherkinDocument.Builder>
-
-