Class DataReadResponse.Builder

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

public static final class DataReadResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataReadResponse.Builder> implements DataReadResponseOrBuilder
 *
 Response to a request to read a dataset stored in the TRAC platform.

 @see TracDataApi.readDataset
 
Protobuf type tracdap.api.DataReadResponse
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    * Content of the dataset, encoded in the requested format.
    * Schema of the dataset being returned.
    com.google.protobuf.ByteString
    * Content of the dataset, encoded in the requested format.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    org.finos.tracdap.metadata.SchemaDefinition
    * Schema of the dataset being returned.
    org.finos.tracdap.metadata.SchemaDefinition.Builder
    * Schema of the dataset being returned.
    org.finos.tracdap.metadata.SchemaDefinitionOrBuilder
    * Schema of the dataset being returned.
    boolean
    * Schema of the dataset being returned.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeSchema(org.finos.tracdap.metadata.SchemaDefinition value)
    * Schema of the dataset being returned.
    setContent(com.google.protobuf.ByteString value)
    * Content of the dataset, encoded in the requested format.
    setSchema(org.finos.tracdap.metadata.SchemaDefinition value)
    * Schema of the dataset being returned.
    setSchema(org.finos.tracdap.metadata.SchemaDefinition.Builder builderForValue)
    * Schema of the dataset being returned.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<DataReadResponse.Builder>
    • clear

      public DataReadResponse.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<DataReadResponse.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<DataReadResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public DataReadResponse.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<DataReadResponse.Builder>
    • mergeFrom

      public DataReadResponse.Builder mergeFrom(DataReadResponse other)
    • isInitialized

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

      public DataReadResponse.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<DataReadResponse.Builder>
      Throws:
      IOException
    • hasSchema

      public boolean hasSchema()
       *
       Schema of the dataset being returned.
      
       The schema is provided in the first message of the response stream.
       TRAC will always provide a full schema, regardless of whether the
       dataset is using am external schema or an embedded one.
       
      optional .tracdap.metadata.SchemaDefinition schema = 1;
      Specified by:
      hasSchema in interface DataReadResponseOrBuilder
      Returns:
      Whether the schema field is set.
    • getSchema

      public org.finos.tracdap.metadata.SchemaDefinition getSchema()
       *
       Schema of the dataset being returned.
      
       The schema is provided in the first message of the response stream.
       TRAC will always provide a full schema, regardless of whether the
       dataset is using am external schema or an embedded one.
       
      optional .tracdap.metadata.SchemaDefinition schema = 1;
      Specified by:
      getSchema in interface DataReadResponseOrBuilder
      Returns:
      The schema.
    • setSchema

      public DataReadResponse.Builder setSchema(org.finos.tracdap.metadata.SchemaDefinition value)
       *
       Schema of the dataset being returned.
      
       The schema is provided in the first message of the response stream.
       TRAC will always provide a full schema, regardless of whether the
       dataset is using am external schema or an embedded one.
       
      optional .tracdap.metadata.SchemaDefinition schema = 1;
    • setSchema

      public DataReadResponse.Builder setSchema(org.finos.tracdap.metadata.SchemaDefinition.Builder builderForValue)
       *
       Schema of the dataset being returned.
      
       The schema is provided in the first message of the response stream.
       TRAC will always provide a full schema, regardless of whether the
       dataset is using am external schema or an embedded one.
       
      optional .tracdap.metadata.SchemaDefinition schema = 1;
    • mergeSchema

      public DataReadResponse.Builder mergeSchema(org.finos.tracdap.metadata.SchemaDefinition value)
       *
       Schema of the dataset being returned.
      
       The schema is provided in the first message of the response stream.
       TRAC will always provide a full schema, regardless of whether the
       dataset is using am external schema or an embedded one.
       
      optional .tracdap.metadata.SchemaDefinition schema = 1;
    • clearSchema

      public DataReadResponse.Builder clearSchema()
       *
       Schema of the dataset being returned.
      
       The schema is provided in the first message of the response stream.
       TRAC will always provide a full schema, regardless of whether the
       dataset is using am external schema or an embedded one.
       
      optional .tracdap.metadata.SchemaDefinition schema = 1;
    • getSchemaBuilder

      public org.finos.tracdap.metadata.SchemaDefinition.Builder getSchemaBuilder()
       *
       Schema of the dataset being returned.
      
       The schema is provided in the first message of the response stream.
       TRAC will always provide a full schema, regardless of whether the
       dataset is using am external schema or an embedded one.
       
      optional .tracdap.metadata.SchemaDefinition schema = 1;
    • getSchemaOrBuilder

      public org.finos.tracdap.metadata.SchemaDefinitionOrBuilder getSchemaOrBuilder()
       *
       Schema of the dataset being returned.
      
       The schema is provided in the first message of the response stream.
       TRAC will always provide a full schema, regardless of whether the
       dataset is using am external schema or an embedded one.
       
      optional .tracdap.metadata.SchemaDefinition schema = 1;
      Specified by:
      getSchemaOrBuilder in interface DataReadResponseOrBuilder
    • getContent

      public com.google.protobuf.ByteString getContent()
       *
       Content of the dataset, encoded in the requested format.
      
       The first message in the response stream will always contain an empty
       content buffer. Subsequent messages will provided the content of the
       dataset as a series of chunks.
       
      bytes content = 1000;
      Specified by:
      getContent in interface DataReadResponseOrBuilder
      Returns:
      The content.
    • setContent

      public DataReadResponse.Builder setContent(com.google.protobuf.ByteString value)
       *
       Content of the dataset, encoded in the requested format.
      
       The first message in the response stream will always contain an empty
       content buffer. Subsequent messages will provided the content of the
       dataset as a series of chunks.
       
      bytes content = 1000;
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

      public DataReadResponse.Builder clearContent()
       *
       Content of the dataset, encoded in the requested format.
      
       The first message in the response stream will always contain an empty
       content buffer. Subsequent messages will provided the content of the
       dataset as a series of chunks.
       
      bytes content = 1000;
      Returns:
      This builder for chaining.