Package org.finos.tracdap.api
Class DataReadRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DataReadRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<DataReadRequest.Builder>
org.finos.tracdap.api.DataReadRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,DataReadRequestOrBuilder
- Enclosing class:
DataReadRequest
public static final class DataReadRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataReadRequest.Builder>
implements DataReadRequestOrBuilder
* Request to read a dataset stored in the TRAC platform. @see TracDataApi.readDatasetProtobuf type
tracdap.api.DataReadRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()* Format that the dataset will be returned in.* Limit the number of rows returned by the request (optional).* Read dataset starting at the row with the given offset (optional).* Selector for the dataset being read* Tenant code for the requested operation, always required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor* Format that the dataset will be returned in.com.google.protobuf.ByteString* Format that the dataset will be returned in.longgetLimit()* Limit the number of rows returned by the request (optional).long* Read dataset starting at the row with the given offset (optional).org.finos.tracdap.metadata.TagSelector* Selector for the dataset being readorg.finos.tracdap.metadata.TagSelector.Builder* Selector for the dataset being readorg.finos.tracdap.metadata.TagSelectorOrBuilder* Selector for the dataset being read* Tenant code for the requested operation, always required.com.google.protobuf.ByteString* Tenant code for the requested operation, always required.booleanhasLimit()* Limit the number of rows returned by the request (optional).boolean* Read dataset starting at the row with the given offset (optional).boolean* Selector for the dataset being readprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DataReadRequest other) mergeSelector(org.finos.tracdap.metadata.TagSelector value) * Selector for the dataset being read* Format that the dataset will be returned in.setFormatBytes(com.google.protobuf.ByteString value) * Format that the dataset will be returned in.setLimit(long value) * Limit the number of rows returned by the request (optional).setOffset(long value) * Read dataset starting at the row with the given offset (optional).setSelector(org.finos.tracdap.metadata.TagSelector value) * Selector for the dataset being readsetSelector(org.finos.tracdap.metadata.TagSelector.Builder builderForValue) * Selector for the dataset being read* Tenant code for the requested operation, always required.setTenantBytes(com.google.protobuf.ByteString value) * Tenant code for the requested operation, always required.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataReadRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataReadRequest.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.GeneratedMessage.Builder<DataReadRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataReadRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataReadRequest.Builder>
-
mergeFrom
public DataReadRequest.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<DataReadRequest.Builder>- Throws:
IOException
-
getTenant
* Tenant code for the requested operation, always required.
string tenant = 1;- Specified by:
getTenantin interfaceDataReadRequestOrBuilder- Returns:
- The tenant.
-
getTenantBytes
public com.google.protobuf.ByteString getTenantBytes()* Tenant code for the requested operation, always required.
string tenant = 1;- Specified by:
getTenantBytesin interfaceDataReadRequestOrBuilder- Returns:
- The bytes for tenant.
-
setTenant
* Tenant code for the requested operation, always required.
string tenant = 1;- Parameters:
value- The tenant to set.- Returns:
- This builder for chaining.
-
clearTenant
* Tenant code for the requested operation, always required.
string tenant = 1;- Returns:
- This builder for chaining.
-
setTenantBytes
* Tenant code for the requested operation, always required.
string tenant = 1;- Parameters:
value- The bytes for tenant to set.- Returns:
- This builder for chaining.
-
hasSelector
public boolean hasSelector()* Selector for the dataset being read
.tracdap.metadata.TagSelector selector = 2;- Specified by:
hasSelectorin interfaceDataReadRequestOrBuilder- Returns:
- Whether the selector field is set.
-
getSelector
public org.finos.tracdap.metadata.TagSelector getSelector()* Selector for the dataset being read
.tracdap.metadata.TagSelector selector = 2;- Specified by:
getSelectorin interfaceDataReadRequestOrBuilder- Returns:
- The selector.
-
setSelector
* Selector for the dataset being read
.tracdap.metadata.TagSelector selector = 2; -
setSelector
public DataReadRequest.Builder setSelector(org.finos.tracdap.metadata.TagSelector.Builder builderForValue) * Selector for the dataset being read
.tracdap.metadata.TagSelector selector = 2; -
mergeSelector
* Selector for the dataset being read
.tracdap.metadata.TagSelector selector = 2; -
clearSelector
* Selector for the dataset being read
.tracdap.metadata.TagSelector selector = 2; -
getSelectorBuilder
public org.finos.tracdap.metadata.TagSelector.Builder getSelectorBuilder()* Selector for the dataset being read
.tracdap.metadata.TagSelector selector = 2; -
getSelectorOrBuilder
public org.finos.tracdap.metadata.TagSelectorOrBuilder getSelectorOrBuilder()* Selector for the dataset being read
.tracdap.metadata.TagSelector selector = 2;- Specified by:
getSelectorOrBuilderin interfaceDataReadRequestOrBuilder
-
getFormat
* Format that the dataset will be returned in. The format must be the mime type of a supported data format. Data will be encoded in this format before it is sent back.
string format = 3;- Specified by:
getFormatin interfaceDataReadRequestOrBuilder- Returns:
- The format.
-
getFormatBytes
public com.google.protobuf.ByteString getFormatBytes()* Format that the dataset will be returned in. The format must be the mime type of a supported data format. Data will be encoded in this format before it is sent back.
string format = 3;- Specified by:
getFormatBytesin interfaceDataReadRequestOrBuilder- Returns:
- The bytes for format.
-
setFormat
* Format that the dataset will be returned in. The format must be the mime type of a supported data format. Data will be encoded in this format before it is sent back.
string format = 3;- Parameters:
value- The format to set.- Returns:
- This builder for chaining.
-
clearFormat
* Format that the dataset will be returned in. The format must be the mime type of a supported data format. Data will be encoded in this format before it is sent back.
string format = 3;- Returns:
- This builder for chaining.
-
setFormatBytes
* Format that the dataset will be returned in. The format must be the mime type of a supported data format. Data will be encoded in this format before it is sent back.
string format = 3;- Parameters:
value- The bytes for format to set.- Returns:
- This builder for chaining.
-
hasLimit
public boolean hasLimit()* Limit the number of rows returned by the request (optional). If specified the server will limit the number of rows returned. There is a hard limit configured in the back end, TRAC will never return more rows than the hard limit regardless of the limit value supplied by the client. If no limit value is supplied, the back end hard limit will still be applied. The returned rows are not ordered however ordering is guaranteed to stay the same for any particular dataset, i.e. two requests for the same dataset will return rows in the same order. If the dataset is expunged and recreated on the platform, e.g. by a re-run after an expired retention period, the ordering of the dataset may change.
optional uint64 limit = 4;- Specified by:
hasLimitin interfaceDataReadRequestOrBuilder- Returns:
- Whether the limit field is set.
-
getLimit
public long getLimit()* Limit the number of rows returned by the request (optional). If specified the server will limit the number of rows returned. There is a hard limit configured in the back end, TRAC will never return more rows than the hard limit regardless of the limit value supplied by the client. If no limit value is supplied, the back end hard limit will still be applied. The returned rows are not ordered however ordering is guaranteed to stay the same for any particular dataset, i.e. two requests for the same dataset will return rows in the same order. If the dataset is expunged and recreated on the platform, e.g. by a re-run after an expired retention period, the ordering of the dataset may change.
optional uint64 limit = 4;- Specified by:
getLimitin interfaceDataReadRequestOrBuilder- Returns:
- The limit.
-
setLimit
* Limit the number of rows returned by the request (optional). If specified the server will limit the number of rows returned. There is a hard limit configured in the back end, TRAC will never return more rows than the hard limit regardless of the limit value supplied by the client. If no limit value is supplied, the back end hard limit will still be applied. The returned rows are not ordered however ordering is guaranteed to stay the same for any particular dataset, i.e. two requests for the same dataset will return rows in the same order. If the dataset is expunged and recreated on the platform, e.g. by a re-run after an expired retention period, the ordering of the dataset may change.
optional uint64 limit = 4;- Parameters:
value- The limit to set.- Returns:
- This builder for chaining.
-
clearLimit
* Limit the number of rows returned by the request (optional). If specified the server will limit the number of rows returned. There is a hard limit configured in the back end, TRAC will never return more rows than the hard limit regardless of the limit value supplied by the client. If no limit value is supplied, the back end hard limit will still be applied. The returned rows are not ordered however ordering is guaranteed to stay the same for any particular dataset, i.e. two requests for the same dataset will return rows in the same order. If the dataset is expunged and recreated on the platform, e.g. by a re-run after an expired retention period, the ordering of the dataset may change.
optional uint64 limit = 4;- Returns:
- This builder for chaining.
-
hasOffset
public boolean hasOffset()* Read dataset starting at the row with the given offset (optional). If specified the server will start the read operation at the given row offset. Can be combined with the limit parameter to achieve pagination. If the offset is greater than the size of the dataset, no rows will be returned. The returned rows are not ordered however ordering is guaranteed to stay the same for any particular dataset, i.e. two requests for the same dataset will return rows in the same order. If the dataset is expunged and recreated on the platform, e.g. by a re-run after an expired retention period, the ordering of the dataset may change.
optional uint64 offset = 5;- Specified by:
hasOffsetin interfaceDataReadRequestOrBuilder- Returns:
- Whether the offset field is set.
-
getOffset
public long getOffset()* Read dataset starting at the row with the given offset (optional). If specified the server will start the read operation at the given row offset. Can be combined with the limit parameter to achieve pagination. If the offset is greater than the size of the dataset, no rows will be returned. The returned rows are not ordered however ordering is guaranteed to stay the same for any particular dataset, i.e. two requests for the same dataset will return rows in the same order. If the dataset is expunged and recreated on the platform, e.g. by a re-run after an expired retention period, the ordering of the dataset may change.
optional uint64 offset = 5;- Specified by:
getOffsetin interfaceDataReadRequestOrBuilder- Returns:
- The offset.
-
setOffset
* Read dataset starting at the row with the given offset (optional). If specified the server will start the read operation at the given row offset. Can be combined with the limit parameter to achieve pagination. If the offset is greater than the size of the dataset, no rows will be returned. The returned rows are not ordered however ordering is guaranteed to stay the same for any particular dataset, i.e. two requests for the same dataset will return rows in the same order. If the dataset is expunged and recreated on the platform, e.g. by a re-run after an expired retention period, the ordering of the dataset may change.
optional uint64 offset = 5;- Parameters:
value- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
* Read dataset starting at the row with the given offset (optional). If specified the server will start the read operation at the given row offset. Can be combined with the limit parameter to achieve pagination. If the offset is greater than the size of the dataset, no rows will be returned. The returned rows are not ordered however ordering is guaranteed to stay the same for any particular dataset, i.e. two requests for the same dataset will return rows in the same order. If the dataset is expunged and recreated on the platform, e.g. by a re-run after an expired retention period, the ordering of the dataset may change.
optional uint64 offset = 5;- Returns:
- This builder for chaining.
-