Package io.cucumber.messages
Class Messages.Attachment
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.cucumber.messages.Messages.Attachment
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Messages.AttachmentOrBuilder,Serializable
- Enclosing class:
- Messages
public static final class Messages.Attachment extends com.google.protobuf.GeneratedMessageV3 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 typeio.cucumber.messages.Attachment- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessages.Attachment.BuilderAn attachment represents any kind of data associated with a line in a [Source](#io.cucumber.messages.Source) file.static classMessages.Attachment.ContentEncodingProtobuf enumio.cucumber.messages.Attachment.ContentEncoding-
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 intBODY_FIELD_NUMBERstatic intCONTENT_ENCODING_FIELD_NUMBERstatic intFILE_NAME_FIELD_NUMBERstatic intMEDIA_TYPE_FIELD_NUMBERstatic intSOURCE_FIELD_NUMBERstatic intTEST_CASE_STARTED_ID_FIELD_NUMBERstatic intTEST_STEP_ID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetBody()string body = 4;com.google.protobuf.ByteStringgetBodyBytes()string body = 4;Messages.Attachment.ContentEncodinggetContentEncoding()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 => BASE64intgetContentEncodingValue()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 => BASE64static Messages.AttachmentgetDefaultInstance()Messages.AttachmentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetFileName()Suggested file name of the attachment.com.google.protobuf.ByteStringgetFileNameBytes()Suggested file name of the attachment.StringgetMediaType()The media type of the data.com.google.protobuf.ByteStringgetMediaTypeBytes()The media type of the data.com.google.protobuf.Parser<Messages.Attachment>getParserForType()intgetSerializedSize()Messages.SourceReferencegetSource().io.cucumber.messages.SourceReference source = 1;Messages.SourceReferenceOrBuildergetSourceOrBuilder().io.cucumber.messages.SourceReference source = 1;StringgetTestCaseStartedId()string test_case_started_id = 3;com.google.protobuf.ByteStringgetTestCaseStartedIdBytes()string test_case_started_id = 3;StringgetTestStepId()string test_step_id = 2;com.google.protobuf.ByteStringgetTestStepIdBytes()string test_step_id = 2;com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasSource().io.cucumber.messages.SourceReference source = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Messages.Attachment.BuildernewBuilder()static Messages.Attachment.BuildernewBuilder(Messages.Attachment prototype)Messages.Attachment.BuildernewBuilderForType()protected Messages.Attachment.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)static Messages.AttachmentparseDelimitedFrom(InputStream input)static Messages.AttachmentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.AttachmentparseFrom(byte[] data)static Messages.AttachmentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.AttachmentparseFrom(com.google.protobuf.ByteString data)static Messages.AttachmentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.AttachmentparseFrom(com.google.protobuf.CodedInputStream input)static Messages.AttachmentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.AttachmentparseFrom(InputStream input)static Messages.AttachmentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.AttachmentparseFrom(ByteBuffer data)static Messages.AttachmentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Messages.Attachment>parser()Messages.Attachment.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
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEST_STEP_ID_FIELD_NUMBER
public static final int TEST_STEP_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEST_CASE_STARTED_ID_FIELD_NUMBER
public static final int TEST_CASE_STARTED_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEDIA_TYPE_FIELD_NUMBER
public static final int MEDIA_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTENT_ENCODING_FIELD_NUMBER
public static final int CONTENT_ENCODING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILE_NAME_FIELD_NUMBER
public static final int FILE_NAME_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
-
hasSource
public boolean hasSource()
.io.cucumber.messages.SourceReference source = 1;- Specified by:
hasSourcein interfaceMessages.AttachmentOrBuilder
-
getSource
public Messages.SourceReference getSource()
.io.cucumber.messages.SourceReference source = 1;- Specified by:
getSourcein interfaceMessages.AttachmentOrBuilder
-
getSourceOrBuilder
public Messages.SourceReferenceOrBuilder getSourceOrBuilder()
.io.cucumber.messages.SourceReference source = 1;- Specified by:
getSourceOrBuilderin interfaceMessages.AttachmentOrBuilder
-
getTestStepId
public String getTestStepId()
string test_step_id = 2;- Specified by:
getTestStepIdin interfaceMessages.AttachmentOrBuilder
-
getTestStepIdBytes
public com.google.protobuf.ByteString getTestStepIdBytes()
string test_step_id = 2;- Specified by:
getTestStepIdBytesin interfaceMessages.AttachmentOrBuilder
-
getTestCaseStartedId
public String getTestCaseStartedId()
string test_case_started_id = 3;- Specified by:
getTestCaseStartedIdin interfaceMessages.AttachmentOrBuilder
-
getTestCaseStartedIdBytes
public com.google.protobuf.ByteString getTestCaseStartedIdBytes()
string test_case_started_id = 3;- Specified by:
getTestCaseStartedIdBytesin interfaceMessages.AttachmentOrBuilder
-
getBody
public String getBody()
string body = 4;- Specified by:
getBodyin interfaceMessages.AttachmentOrBuilder
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()
string body = 4;- Specified by:
getBodyBytesin interfaceMessages.AttachmentOrBuilder
-
getMediaType
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;- Specified by:
getMediaTypein interfaceMessages.AttachmentOrBuilder
-
getMediaTypeBytes
public 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;- Specified by:
getMediaTypeBytesin interfaceMessages.AttachmentOrBuilder
-
getContentEncodingValue
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;- Specified by:
getContentEncodingValuein interfaceMessages.AttachmentOrBuilder
-
getContentEncoding
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;- Specified by:
getContentEncodingin interfaceMessages.AttachmentOrBuilder
-
getFileName
public String getFileName()
Suggested file name of the attachment.
string file_name = 7;- Specified by:
getFileNamein interfaceMessages.AttachmentOrBuilder
-
getFileNameBytes
public com.google.protobuf.ByteString getFileNameBytes()
Suggested file name of the attachment.
string file_name = 7;- Specified by:
getFileNameBytesin interfaceMessages.AttachmentOrBuilder
-
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.Attachment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Attachment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Attachment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Attachment 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.Attachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Attachment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.Attachment parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Messages.Attachment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Messages.Attachment parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Messages.Attachment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Messages.Attachment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Messages.Attachment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Messages.Attachment.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Messages.Attachment.Builder newBuilder()
-
newBuilder
public static Messages.Attachment.Builder newBuilder(Messages.Attachment prototype)
-
toBuilder
public Messages.Attachment.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Messages.Attachment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Messages.Attachment getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Messages.Attachment> parser()
-
getParserForType
public com.google.protobuf.Parser<Messages.Attachment> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Messages.Attachment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-