public static final class Messages.Attachment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder> implements Messages.AttachmentOrBuilder
An attachment represents any kind of data associated with a line in a [Source](#io.cucumber.messages.Source) file. It can be used for: * Syntax errors during parse time * Screenshots captured and attached during execution * Logs captured and attached during execution It is not to be used for runtime errors raised/thrown during execution. This is captured in `TestResult`.Protobuf type
io.cucumber.messages.Attachment| Modifier and Type | Method and Description |
|---|---|
Messages.Attachment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Messages.Attachment |
build() |
Messages.Attachment |
buildPartial() |
Messages.Attachment.Builder |
clear() |
Messages.Attachment.Builder |
clearBody()
string body = 4; |
Messages.Attachment.Builder |
clearContentEncoding()
Content encoding is *not* determined by the media type, but rather by the type
of the object being attached:
- string => IDENTITY
- byte array => BASE64
- stream => BASE64
|
Messages.Attachment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Messages.Attachment.Builder |
clearMediaType()
The media type of the data.
|
Messages.Attachment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Messages.Attachment.Builder |
clearSource()
.io.cucumber.messages.SourceReference source = 1; |
Messages.Attachment.Builder |
clearTestCaseStartedId()
string test_case_started_id = 3; |
Messages.Attachment.Builder |
clearTestStepId()
string test_step_id = 2; |
Messages.Attachment.Builder |
clone() |
String |
getBody()
string body = 4; |
com.google.protobuf.ByteString |
getBodyBytes()
string body = 4; |
Messages.Attachment.ContentEncoding |
getContentEncoding()
Content encoding is *not* determined by the media type, but rather by the type
of the object being attached:
- string => IDENTITY
- byte array => BASE64
- stream => BASE64
|
int |
getContentEncodingValue()
Content encoding is *not* determined by the media type, but rather by the type
of the object being attached:
- string => IDENTITY
- byte array => BASE64
- stream => BASE64
|
Messages.Attachment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMediaType()
The media type of the data.
|
com.google.protobuf.ByteString |
getMediaTypeBytes()
The media type of the data.
|
Messages.SourceReference |
getSource()
.io.cucumber.messages.SourceReference source = 1; |
Messages.SourceReference.Builder |
getSourceBuilder()
.io.cucumber.messages.SourceReference source = 1; |
Messages.SourceReferenceOrBuilder |
getSourceOrBuilder()
.io.cucumber.messages.SourceReference source = 1; |
String |
getTestCaseStartedId()
string test_case_started_id = 3; |
com.google.protobuf.ByteString |
getTestCaseStartedIdBytes()
string test_case_started_id = 3; |
String |
getTestStepId()
string test_step_id = 2; |
com.google.protobuf.ByteString |
getTestStepIdBytes()
string test_step_id = 2; |
boolean |
hasSource()
.io.cucumber.messages.SourceReference source = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Messages.Attachment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Messages.Attachment.Builder |
mergeFrom(com.google.protobuf.Message other) |
Messages.Attachment.Builder |
mergeFrom(Messages.Attachment other) |
Messages.Attachment.Builder |
mergeSource(Messages.SourceReference value)
.io.cucumber.messages.SourceReference source = 1; |
Messages.Attachment.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Messages.Attachment.Builder |
setBody(String value)
string body = 4; |
Messages.Attachment.Builder |
setBodyBytes(com.google.protobuf.ByteString value)
string body = 4; |
Messages.Attachment.Builder |
setContentEncoding(Messages.Attachment.ContentEncoding value)
Content encoding is *not* determined by the media type, but rather by the type
of the object being attached:
- string => IDENTITY
- byte array => BASE64
- stream => BASE64
|
Messages.Attachment.Builder |
setContentEncodingValue(int value)
Content encoding is *not* determined by the media type, but rather by the type
of the object being attached:
- string => IDENTITY
- byte array => BASE64
- stream => BASE64
|
Messages.Attachment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Messages.Attachment.Builder |
setMediaType(String value)
The media type of the data.
|
Messages.Attachment.Builder |
setMediaTypeBytes(com.google.protobuf.ByteString value)
The media type of the data.
|
Messages.Attachment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Messages.Attachment.Builder |
setSource(Messages.SourceReference.Builder builderForValue)
.io.cucumber.messages.SourceReference source = 1; |
Messages.Attachment.Builder |
setSource(Messages.SourceReference value)
.io.cucumber.messages.SourceReference source = 1; |
Messages.Attachment.Builder |
setTestCaseStartedId(String value)
string test_case_started_id = 3; |
Messages.Attachment.Builder |
setTestCaseStartedIdBytes(com.google.protobuf.ByteString value)
string test_case_started_id = 3; |
Messages.Attachment.Builder |
setTestStepId(String value)
string test_step_id = 2; |
Messages.Attachment.Builder |
setTestStepIdBytes(com.google.protobuf.ByteString value)
string test_step_id = 2; |
Messages.Attachment.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public Messages.Attachment.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public Messages.Attachment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Messages.Attachment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Messages.Attachment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Messages.Attachment.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public Messages.Attachment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public Messages.Attachment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public Messages.Attachment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public Messages.Attachment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public Messages.Attachment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public Messages.Attachment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Messages.Attachment.Builder>public Messages.Attachment.Builder mergeFrom(Messages.Attachment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public Messages.Attachment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Messages.Attachment.Builder>IOExceptionpublic boolean hasSource()
.io.cucumber.messages.SourceReference source = 1;hasSource in interface Messages.AttachmentOrBuilderpublic Messages.SourceReference getSource()
.io.cucumber.messages.SourceReference source = 1;getSource in interface Messages.AttachmentOrBuilderpublic Messages.Attachment.Builder setSource(Messages.SourceReference value)
.io.cucumber.messages.SourceReference source = 1;public Messages.Attachment.Builder setSource(Messages.SourceReference.Builder builderForValue)
.io.cucumber.messages.SourceReference source = 1;public Messages.Attachment.Builder mergeSource(Messages.SourceReference value)
.io.cucumber.messages.SourceReference source = 1;public Messages.Attachment.Builder clearSource()
.io.cucumber.messages.SourceReference source = 1;public Messages.SourceReference.Builder getSourceBuilder()
.io.cucumber.messages.SourceReference source = 1;public Messages.SourceReferenceOrBuilder getSourceOrBuilder()
.io.cucumber.messages.SourceReference source = 1;getSourceOrBuilder in interface Messages.AttachmentOrBuilderpublic String getTestStepId()
string test_step_id = 2;getTestStepId in interface Messages.AttachmentOrBuilderpublic com.google.protobuf.ByteString getTestStepIdBytes()
string test_step_id = 2;getTestStepIdBytes in interface Messages.AttachmentOrBuilderpublic Messages.Attachment.Builder setTestStepId(String value)
string test_step_id = 2;public Messages.Attachment.Builder clearTestStepId()
string test_step_id = 2;public Messages.Attachment.Builder setTestStepIdBytes(com.google.protobuf.ByteString value)
string test_step_id = 2;public String getTestCaseStartedId()
string test_case_started_id = 3;getTestCaseStartedId in interface Messages.AttachmentOrBuilderpublic com.google.protobuf.ByteString getTestCaseStartedIdBytes()
string test_case_started_id = 3;getTestCaseStartedIdBytes in interface Messages.AttachmentOrBuilderpublic Messages.Attachment.Builder setTestCaseStartedId(String value)
string test_case_started_id = 3;public Messages.Attachment.Builder clearTestCaseStartedId()
string test_case_started_id = 3;public Messages.Attachment.Builder setTestCaseStartedIdBytes(com.google.protobuf.ByteString value)
string test_case_started_id = 3;public String getBody()
string body = 4;getBody in interface Messages.AttachmentOrBuilderpublic com.google.protobuf.ByteString getBodyBytes()
string body = 4;getBodyBytes in interface Messages.AttachmentOrBuilderpublic Messages.Attachment.Builder setBody(String value)
string body = 4;public Messages.Attachment.Builder clearBody()
string body = 4;public Messages.Attachment.Builder setBodyBytes(com.google.protobuf.ByteString value)
string body = 4;public String getMediaType()
The media type of the data. This can be any valid [IANA Media Type](https://www.iana.org/assignments/media-types/media-types.xhtml) as well as Cucumber-specific media types such as `text/x.cucumber.gherkin+plain` and `text/x.cucumber.stacktrace+plain`
string media_type = 5;getMediaType in interface Messages.AttachmentOrBuilderpublic com.google.protobuf.ByteString getMediaTypeBytes()
The media type of the data. This can be any valid [IANA Media Type](https://www.iana.org/assignments/media-types/media-types.xhtml) as well as Cucumber-specific media types such as `text/x.cucumber.gherkin+plain` and `text/x.cucumber.stacktrace+plain`
string media_type = 5;getMediaTypeBytes in interface Messages.AttachmentOrBuilderpublic Messages.Attachment.Builder setMediaType(String value)
The media type of the data. This can be any valid [IANA Media Type](https://www.iana.org/assignments/media-types/media-types.xhtml) as well as Cucumber-specific media types such as `text/x.cucumber.gherkin+plain` and `text/x.cucumber.stacktrace+plain`
string media_type = 5;public Messages.Attachment.Builder clearMediaType()
The media type of the data. This can be any valid [IANA Media Type](https://www.iana.org/assignments/media-types/media-types.xhtml) as well as Cucumber-specific media types such as `text/x.cucumber.gherkin+plain` and `text/x.cucumber.stacktrace+plain`
string media_type = 5;public Messages.Attachment.Builder setMediaTypeBytes(com.google.protobuf.ByteString value)
The media type of the data. This can be any valid [IANA Media Type](https://www.iana.org/assignments/media-types/media-types.xhtml) as well as Cucumber-specific media types such as `text/x.cucumber.gherkin+plain` and `text/x.cucumber.stacktrace+plain`
string media_type = 5;public int getContentEncodingValue()
Content encoding is *not* determined by the media type, but rather by the type of the object being attached: - string => IDENTITY - byte array => BASE64 - stream => BASE64
.io.cucumber.messages.Attachment.ContentEncoding content_encoding = 6;getContentEncodingValue in interface Messages.AttachmentOrBuilderpublic Messages.Attachment.Builder setContentEncodingValue(int value)
Content encoding is *not* determined by the media type, but rather by the type of the object being attached: - string => IDENTITY - byte array => BASE64 - stream => BASE64
.io.cucumber.messages.Attachment.ContentEncoding content_encoding = 6;public Messages.Attachment.ContentEncoding getContentEncoding()
Content encoding is *not* determined by the media type, but rather by the type of the object being attached: - string => IDENTITY - byte array => BASE64 - stream => BASE64
.io.cucumber.messages.Attachment.ContentEncoding content_encoding = 6;getContentEncoding in interface Messages.AttachmentOrBuilderpublic Messages.Attachment.Builder setContentEncoding(Messages.Attachment.ContentEncoding value)
Content encoding is *not* determined by the media type, but rather by the type of the object being attached: - string => IDENTITY - byte array => BASE64 - stream => BASE64
.io.cucumber.messages.Attachment.ContentEncoding content_encoding = 6;public Messages.Attachment.Builder clearContentEncoding()
Content encoding is *not* determined by the media type, but rather by the type of the object being attached: - string => IDENTITY - byte array => BASE64 - stream => BASE64
.io.cucumber.messages.Attachment.ContentEncoding content_encoding = 6;public final Messages.Attachment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>public final Messages.Attachment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>Copyright © 2020. All rights reserved.