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

    Modifier and Type
    Method
    Description
    boolean
    Any other metadata (used in multipart/form)
    The Content-Type header value for this body.
    com.google.protobuf.ByteString
    The Content-Type header value for this body.
    com.google.protobuf.ByteString
    The body as raw binary
    If set, a Content-Disposition header is added to the response.
    com.google.protobuf.ByteString
    If set, a Content-Disposition header is added to the response.
    Deprecated.
    int
    Any other metadata (used in multipart/form)
    Any other metadata (used in multipart/form)
    getMetadataOrDefault(String key, String defaultValue)
    Any other metadata (used in multipart/form)
    Any other metadata (used in multipart/form)
    boolean
    The Content-Type header value for this body.
    boolean
    The body as raw binary
    boolean
    If set, a Content-Disposition header is added to the response.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasContentType

      boolean hasContentType()
       The Content-Type header value for this body.
       If unspecified, defaults to application/octet-stream
       
      optional string content_type = 1;
      Returns:
      Whether the contentType field is set.
    • getContentType

      String getContentType()
       The Content-Type header value for this body.
       If unspecified, defaults to application/octet-stream
       
      optional string content_type = 1;
      Returns:
      The contentType.
    • 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;
      Returns:
      The bytes for contentType.
    • 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;
      Returns:
      Whether the filename field is set.
    • 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;
      Returns:
      The filename.
    • 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;
      Returns:
      The bytes for filename.
    • hasData

      boolean hasData()
       The body as raw binary
       
      optional bytes data = 3;
      Returns:
      Whether the data field is set.
    • getData

      com.google.protobuf.ByteString getData()
       The body as raw binary
       
      optional bytes data = 3;
      Returns:
      The data.
    • 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.
      Use getMetadataMap() 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;
    • getMetadataOrThrow

      String getMetadataOrThrow(String key)
       Any other metadata (used in multipart/form)
       
      map<string, string> metadata = 4;