Package org.yamcs.api
Interface HttpBodyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpBody
,HttpBody.Builder
public interface HttpBodyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsMetadata(String key)
Any other metadata (used in multipart/form)String
getContentType()
The Content-Type header value for this body.com.google.protobuf.ByteString
getContentTypeBytes()
The Content-Type header value for this body.com.google.protobuf.ByteString
getData()
The body as raw binaryString
getFilename()
If set, a Content-Disposition header is added to the response.com.google.protobuf.ByteString
getFilenameBytes()
If set, a Content-Disposition header is added to the response.Map<String,String>
getMetadata()
Deprecated.int
getMetadataCount()
Any other metadata (used in multipart/form)Map<String,String>
getMetadataMap()
Any other metadata (used in multipart/form)String
getMetadataOrDefault(String key, String defaultValue)
Any other metadata (used in multipart/form)String
getMetadataOrThrow(String key)
Any other metadata (used in multipart/form)boolean
hasContentType()
The Content-Type header value for this body.boolean
hasData()
The body as raw binaryboolean
hasFilename()
If set, a Content-Disposition header is added to the response.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasContentType
boolean hasContentType()
The Content-Type header value for this body. If unspecified, defaults to application/octet-stream
optional string content_type = 1;
-
getContentType
String getContentType()
The Content-Type header value for this body. If unspecified, defaults to application/octet-stream
optional string content_type = 1;
-
getContentTypeBytes
com.google.protobuf.ByteString getContentTypeBytes()
The Content-Type header value for this body. If unspecified, defaults to application/octet-stream
optional string content_type = 1;
-
hasFilename
boolean hasFilename()
If set, a Content-Disposition header is added to the response. Weg agents use this to trigger a download.
optional string filename = 2;
-
getFilename
String getFilename()
If set, a Content-Disposition header is added to the response. Weg agents use this to trigger a download.
optional string filename = 2;
-
getFilenameBytes
com.google.protobuf.ByteString getFilenameBytes()
If set, a Content-Disposition header is added to the response. Weg agents use this to trigger a download.
optional string filename = 2;
-
hasData
boolean hasData()
The body as raw binary
optional bytes data = 3;
-
getData
com.google.protobuf.ByteString getData()
The body as raw binary
optional bytes data = 3;
-
getMetadataCount
int getMetadataCount()
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;
-
containsMetadata
boolean containsMetadata(String key)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;
-
getMetadata
@Deprecated Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()
instead.
-
getMetadataMap
Map<String,String> getMetadataMap()
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;
-
getMetadataOrDefault
String getMetadataOrDefault(String key, String defaultValue)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;
-
-