Package io.cucumber.messages
Class Messages.Attachment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>
-
- io.cucumber.messages.Messages.Attachment.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Messages.AttachmentOrBuilder,Cloneable
- Enclosing class:
- Messages.Attachment
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 typeio.cucumber.messages.Attachment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Messages.Attachment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Messages.Attachmentbuild()Messages.AttachmentbuildPartial()Messages.Attachment.Builderclear()Messages.Attachment.BuilderclearBody()The body of the attachment.Messages.Attachment.BuilderclearContentEncoding()Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64).Messages.Attachment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Messages.Attachment.BuilderclearFileName()Suggested file name of the attachment.Messages.Attachment.BuilderclearMediaType()The media type of the data.Messages.Attachment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Messages.Attachment.BuilderclearSource().io.cucumber.messages.SourceReference source = 1;Messages.Attachment.BuilderclearTestCaseStartedId()string test_case_started_id = 3;Messages.Attachment.BuilderclearTestStepId()string test_step_id = 2;Messages.Attachment.BuilderclearUrl()A URL where the attachment can be retrieved.Messages.Attachment.Builderclone()StringgetBody()The body of the attachment.com.google.protobuf.ByteStringgetBodyBytes()The body of the attachment.Messages.Attachment.ContentEncodinggetContentEncoding()Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64).intgetContentEncodingValue()Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64).Messages.AttachmentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.Messages.SourceReferencegetSource().io.cucumber.messages.SourceReference source = 1;Messages.SourceReference.BuildergetSourceBuilder().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;StringgetUrl()A URL where the attachment can be retrieved.com.google.protobuf.ByteStringgetUrlBytes()A URL where the attachment can be retrieved.booleanhasSource().io.cucumber.messages.SourceReference source = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Messages.Attachment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Messages.Attachment.BuildermergeFrom(com.google.protobuf.Message other)Messages.Attachment.BuildermergeFrom(Messages.Attachment other)Messages.Attachment.BuildermergeSource(Messages.SourceReference value).io.cucumber.messages.SourceReference source = 1;Messages.Attachment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Messages.Attachment.BuildersetBody(String value)The body of the attachment.Messages.Attachment.BuildersetBodyBytes(com.google.protobuf.ByteString value)The body of the attachment.Messages.Attachment.BuildersetContentEncoding(Messages.Attachment.ContentEncoding value)Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64).Messages.Attachment.BuildersetContentEncodingValue(int value)Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64).Messages.Attachment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Messages.Attachment.BuildersetFileName(String value)Suggested file name of the attachment.Messages.Attachment.BuildersetFileNameBytes(com.google.protobuf.ByteString value)Suggested file name of the attachment.Messages.Attachment.BuildersetMediaType(String value)The media type of the data.Messages.Attachment.BuildersetMediaTypeBytes(com.google.protobuf.ByteString value)The media type of the data.Messages.Attachment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Messages.Attachment.BuildersetSource(Messages.SourceReference value).io.cucumber.messages.SourceReference source = 1;Messages.Attachment.BuildersetSource(Messages.SourceReference.Builder builderForValue).io.cucumber.messages.SourceReference source = 1;Messages.Attachment.BuildersetTestCaseStartedId(String value)string test_case_started_id = 3;Messages.Attachment.BuildersetTestCaseStartedIdBytes(com.google.protobuf.ByteString value)string test_case_started_id = 3;Messages.Attachment.BuildersetTestStepId(String value)string test_step_id = 2;Messages.Attachment.BuildersetTestStepIdBytes(com.google.protobuf.ByteString value)string test_step_id = 2;Messages.Attachment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Messages.Attachment.BuildersetUrl(String value)A URL where the attachment can be retrieved.Messages.Attachment.BuildersetUrlBytes(com.google.protobuf.ByteString value)A URL where the attachment can be retrieved.-
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.Attachment.Builder>
-
clear
public Messages.Attachment.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.Attachment.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.Attachment.Builder>
-
getDefaultInstanceForType
public Messages.Attachment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Messages.Attachment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Messages.Attachment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Messages.Attachment.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.Attachment.Builder>
-
setField
public Messages.Attachment.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.Attachment.Builder>
-
clearField
public Messages.Attachment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>
-
clearOneof
public Messages.Attachment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>
-
setRepeatedField
public Messages.Attachment.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.Attachment.Builder>
-
addRepeatedField
public Messages.Attachment.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.Attachment.Builder>
-
mergeFrom
public Messages.Attachment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Messages.Attachment.Builder>
-
mergeFrom
public Messages.Attachment.Builder mergeFrom(Messages.Attachment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>
-
mergeFrom
public Messages.Attachment.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.Attachment.Builder>- Throws:
IOException
-
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
-
setSource
public Messages.Attachment.Builder setSource(Messages.SourceReference value)
.io.cucumber.messages.SourceReference source = 1;
-
setSource
public Messages.Attachment.Builder setSource(Messages.SourceReference.Builder builderForValue)
.io.cucumber.messages.SourceReference source = 1;
-
mergeSource
public Messages.Attachment.Builder mergeSource(Messages.SourceReference value)
.io.cucumber.messages.SourceReference source = 1;
-
clearSource
public Messages.Attachment.Builder clearSource()
.io.cucumber.messages.SourceReference source = 1;
-
getSourceBuilder
public Messages.SourceReference.Builder getSourceBuilder()
.io.cucumber.messages.SourceReference source = 1;
-
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
-
setTestStepId
public Messages.Attachment.Builder setTestStepId(String value)
string test_step_id = 2;
-
clearTestStepId
public Messages.Attachment.Builder clearTestStepId()
string test_step_id = 2;
-
setTestStepIdBytes
public Messages.Attachment.Builder setTestStepIdBytes(com.google.protobuf.ByteString value)
string test_step_id = 2;
-
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
-
setTestCaseStartedId
public Messages.Attachment.Builder setTestCaseStartedId(String value)
string test_case_started_id = 3;
-
clearTestCaseStartedId
public Messages.Attachment.Builder clearTestCaseStartedId()
string test_case_started_id = 3;
-
setTestCaseStartedIdBytes
public Messages.Attachment.Builder setTestCaseStartedIdBytes(com.google.protobuf.ByteString value)
string test_case_started_id = 3;
-
getBody
public String getBody()
The body of the attachment. If `content_encoding` is `IDENTITY`, the attachment is simply the string. If it's `BASE64`, the string should be Base64 decoded to obtain the attachment.
string body = 4;- Specified by:
getBodyin interfaceMessages.AttachmentOrBuilder
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()
The body of the attachment. If `content_encoding` is `IDENTITY`, the attachment is simply the string. If it's `BASE64`, the string should be Base64 decoded to obtain the attachment.
string body = 4;- Specified by:
getBodyBytesin interfaceMessages.AttachmentOrBuilder
-
setBody
public Messages.Attachment.Builder setBody(String value)
The body of the attachment. If `content_encoding` is `IDENTITY`, the attachment is simply the string. If it's `BASE64`, the string should be Base64 decoded to obtain the attachment.
string body = 4;
-
clearBody
public Messages.Attachment.Builder clearBody()
The body of the attachment. If `content_encoding` is `IDENTITY`, the attachment is simply the string. If it's `BASE64`, the string should be Base64 decoded to obtain the attachment.
string body = 4;
-
setBodyBytes
public Messages.Attachment.Builder setBodyBytes(com.google.protobuf.ByteString value)
The body of the attachment. If `content_encoding` is `IDENTITY`, the attachment is simply the string. If it's `BASE64`, the string should be Base64 decoded to obtain the attachment.
string body = 4;
-
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
-
setMediaType
public 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;
-
clearMediaType
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;
-
setMediaTypeBytes
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;
-
getContentEncodingValue
public int getContentEncodingValue()
Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64). 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
-
setContentEncodingValue
public Messages.Attachment.Builder setContentEncodingValue(int value)
Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64). 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
public Messages.Attachment.ContentEncoding getContentEncoding()
Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64). 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
-
setContentEncoding
public Messages.Attachment.Builder setContentEncoding(Messages.Attachment.ContentEncoding value)
Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64). 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;
-
clearContentEncoding
public Messages.Attachment.Builder clearContentEncoding()
Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64). 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;
-
getFileName
public String getFileName()
Suggested file name of the attachment. (Provided by the user as an argument to `attach`)
string file_name = 7;- Specified by:
getFileNamein interfaceMessages.AttachmentOrBuilder
-
getFileNameBytes
public com.google.protobuf.ByteString getFileNameBytes()
Suggested file name of the attachment. (Provided by the user as an argument to `attach`)
string file_name = 7;- Specified by:
getFileNameBytesin interfaceMessages.AttachmentOrBuilder
-
setFileName
public Messages.Attachment.Builder setFileName(String value)
Suggested file name of the attachment. (Provided by the user as an argument to `attach`)
string file_name = 7;
-
clearFileName
public Messages.Attachment.Builder clearFileName()
Suggested file name of the attachment. (Provided by the user as an argument to `attach`)
string file_name = 7;
-
setFileNameBytes
public Messages.Attachment.Builder setFileNameBytes(com.google.protobuf.ByteString value)
Suggested file name of the attachment. (Provided by the user as an argument to `attach`)
string file_name = 7;
-
getUrl
public String getUrl()
A URL where the attachment can be retrieved. This field should not be set by Cucumber. It should be set by a program that reads a message stream and does the following for each Attachment message: - Writes the body (after base64 decoding if necessary) to a new file. - Sets `body` and `content_encoding` to `null` - Writes out the new attachment message This will result in a smaller message stream, which can improve performance and reduce bandwidth of message consumers. It also makes it easier to process and download attachments separately from reports.
string url = 8;- Specified by:
getUrlin interfaceMessages.AttachmentOrBuilder
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()
A URL where the attachment can be retrieved. This field should not be set by Cucumber. It should be set by a program that reads a message stream and does the following for each Attachment message: - Writes the body (after base64 decoding if necessary) to a new file. - Sets `body` and `content_encoding` to `null` - Writes out the new attachment message This will result in a smaller message stream, which can improve performance and reduce bandwidth of message consumers. It also makes it easier to process and download attachments separately from reports.
string url = 8;- Specified by:
getUrlBytesin interfaceMessages.AttachmentOrBuilder
-
setUrl
public Messages.Attachment.Builder setUrl(String value)
A URL where the attachment can be retrieved. This field should not be set by Cucumber. It should be set by a program that reads a message stream and does the following for each Attachment message: - Writes the body (after base64 decoding if necessary) to a new file. - Sets `body` and `content_encoding` to `null` - Writes out the new attachment message This will result in a smaller message stream, which can improve performance and reduce bandwidth of message consumers. It also makes it easier to process and download attachments separately from reports.
string url = 8;
-
clearUrl
public Messages.Attachment.Builder clearUrl()
A URL where the attachment can be retrieved. This field should not be set by Cucumber. It should be set by a program that reads a message stream and does the following for each Attachment message: - Writes the body (after base64 decoding if necessary) to a new file. - Sets `body` and `content_encoding` to `null` - Writes out the new attachment message This will result in a smaller message stream, which can improve performance and reduce bandwidth of message consumers. It also makes it easier to process and download attachments separately from reports.
string url = 8;
-
setUrlBytes
public Messages.Attachment.Builder setUrlBytes(com.google.protobuf.ByteString value)
A URL where the attachment can be retrieved. This field should not be set by Cucumber. It should be set by a program that reads a message stream and does the following for each Attachment message: - Writes the body (after base64 decoding if necessary) to a new file. - Sets `body` and `content_encoding` to `null` - Writes out the new attachment message This will result in a smaller message stream, which can improve performance and reduce bandwidth of message consumers. It also makes it easier to process and download attachments separately from reports.
string url = 8;
-
setUnknownFields
public final Messages.Attachment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>
-
mergeUnknownFields
public final Messages.Attachment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Messages.Attachment.Builder>
-
-