Class DownloadResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DownloadResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<DownloadResponse.Builder>
org.finos.tracdap.api.DownloadResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, DownloadResponseOrBuilder
Enclosing class:
DownloadResponse

public static final class DownloadResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<DownloadResponse.Builder> implements DownloadResponseOrBuilder
 *
 Response object for an HTTP download
 
Protobuf type tracdap.api.DownloadResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DownloadResponse.Builder>
    • clear

      public DownloadResponse.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DownloadResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DownloadResponse.Builder>
    • getDefaultInstanceForType

      public DownloadResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DownloadResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DownloadResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DownloadResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DownloadResponse.Builder>
    • mergeFrom

      public DownloadResponse.Builder mergeFrom(DownloadResponse other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DownloadResponse.Builder>
    • mergeFrom

      public DownloadResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DownloadResponse.Builder>
      Throws:
      IOException
    • hasContentType

      public boolean hasContentType()
      optional string contentType = 1;
      Specified by:
      hasContentType in interface DownloadResponseOrBuilder
      Returns:
      Whether the contentType field is set.
    • getContentType

      public String getContentType()
      optional string contentType = 1;
      Specified by:
      getContentType in interface DownloadResponseOrBuilder
      Returns:
      The contentType.
    • getContentTypeBytes

      public com.google.protobuf.ByteString getContentTypeBytes()
      optional string contentType = 1;
      Specified by:
      getContentTypeBytes in interface DownloadResponseOrBuilder
      Returns:
      The bytes for contentType.
    • setContentType

      public DownloadResponse.Builder setContentType(String value)
      optional string contentType = 1;
      Parameters:
      value - The contentType to set.
      Returns:
      This builder for chaining.
    • clearContentType

      public DownloadResponse.Builder clearContentType()
      optional string contentType = 1;
      Returns:
      This builder for chaining.
    • setContentTypeBytes

      public DownloadResponse.Builder setContentTypeBytes(com.google.protobuf.ByteString value)
      optional string contentType = 1;
      Parameters:
      value - The bytes for contentType to set.
      Returns:
      This builder for chaining.
    • hasContentLength

      public boolean hasContentLength()
      optional uint64 contentLength = 2;
      Specified by:
      hasContentLength in interface DownloadResponseOrBuilder
      Returns:
      Whether the contentLength field is set.
    • getContentLength

      public long getContentLength()
      optional uint64 contentLength = 2;
      Specified by:
      getContentLength in interface DownloadResponseOrBuilder
      Returns:
      The contentLength.
    • setContentLength

      public DownloadResponse.Builder setContentLength(long value)
      optional uint64 contentLength = 2;
      Parameters:
      value - The contentLength to set.
      Returns:
      This builder for chaining.
    • clearContentLength

      public DownloadResponse.Builder clearContentLength()
      optional uint64 contentLength = 2;
      Returns:
      This builder for chaining.
    • getContent

      public com.google.protobuf.ByteString getContent()
      bytes content = 1000;
      Specified by:
      getContent in interface DownloadResponseOrBuilder
      Returns:
      The content.
    • setContent

      public DownloadResponse.Builder setContent(com.google.protobuf.ByteString value)
      bytes content = 1000;
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public DownloadResponse.Builder clearContent()
      bytes content = 1000;
      Returns:
      This builder for chaining.