Package org.finos.tracdap.api
Class DataWriteRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.finos.tracdap.api.DataWriteRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,DataWriteRequestOrBuilder
public final class DataWriteRequest
extends com.google.protobuf.GeneratedMessage
implements DataWriteRequestOrBuilder
* Request to create of update a dataset stored in the TRAC platform. @see TracDataApi.createDataset @see TracDataApi.updateDatasetProtobuf type
tracdap.api.DataWriteRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Request to create of update a dataset stored in the TRAC platform.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.ByteString* The content of the dataset, encoded as per the "format" field.static DataWriteRequeststatic final com.google.protobuf.Descriptors.Descriptor* Format that will be used for uploading data.com.google.protobuf.ByteString* Format that will be used for uploading data.com.google.protobuf.Parser<DataWriteRequest> org.finos.tracdap.metadata.TagSelector* Prior object/tag version to use for update operations.org.finos.tracdap.metadata.TagSelectorOrBuilder* Prior object/tag version to use for update operations.org.finos.tracdap.metadata.SchemaDefinition* Specify the schema with an explicit schema definition.org.finos.tracdap.metadata.TagSelector* Specify the schema using an external schema definition.org.finos.tracdap.metadata.TagSelectorOrBuilder* Specify the schema using an external schema definition.org.finos.tracdap.metadata.SchemaDefinitionOrBuilder* Specify the schema with an explicit schema definition.intorg.finos.tracdap.metadata.TagUpdategetTagUpdates(int index) * Tag update operations to be applied.int* Tag update operations to be applied.List<org.finos.tracdap.metadata.TagUpdate> * Tag update operations to be applied.org.finos.tracdap.metadata.TagUpdateOrBuildergetTagUpdatesOrBuilder(int index) * Tag update operations to be applied.List<? extends org.finos.tracdap.metadata.TagUpdateOrBuilder> * Tag update operations to be applied.* Tenant code for the requested operation, always required.com.google.protobuf.ByteString* Tenant code for the requested operation, always required.inthashCode()boolean* Prior object/tag version to use for update operations.boolean* Specify the schema with an explicit schema definition.boolean* Specify the schema using an external schema definition.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic DataWriteRequest.Builderstatic DataWriteRequest.BuildernewBuilder(DataWriteRequest prototype) protected DataWriteRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DataWriteRequestparseDelimitedFrom(InputStream input) static DataWriteRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataWriteRequestparseFrom(byte[] data) static DataWriteRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataWriteRequestparseFrom(com.google.protobuf.ByteString data) static DataWriteRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataWriteRequestparseFrom(com.google.protobuf.CodedInputStream input) static DataWriteRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataWriteRequestparseFrom(InputStream input) static DataWriteRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataWriteRequestparseFrom(ByteBuffer data) static DataWriteRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DataWriteRequest> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TENANT_FIELD_NUMBER
public static final int TENANT_FIELD_NUMBER- See Also:
-
PRIORVERSION_FIELD_NUMBER
public static final int PRIORVERSION_FIELD_NUMBER- See Also:
-
TAGUPDATES_FIELD_NUMBER
public static final int TAGUPDATES_FIELD_NUMBER- See Also:
-
SCHEMAID_FIELD_NUMBER
public static final int SCHEMAID_FIELD_NUMBER- See Also:
-
SCHEMA_FIELD_NUMBER
public static final int SCHEMA_FIELD_NUMBER- See Also:
-
FORMAT_FIELD_NUMBER
public static final int FORMAT_FIELD_NUMBER- See Also:
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER- See Also:
-
-
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
-
getSchemaSpecifierCase
- Specified by:
getSchemaSpecifierCasein interfaceDataWriteRequestOrBuilder
-
getTenant
* Tenant code for the requested operation, always required.
string tenant = 1;- Specified by:
getTenantin interfaceDataWriteRequestOrBuilder- Returns:
- The tenant.
-
getTenantBytes
public com.google.protobuf.ByteString getTenantBytes()* Tenant code for the requested operation, always required.
string tenant = 1;- Specified by:
getTenantBytesin interfaceDataWriteRequestOrBuilder- Returns:
- The bytes for tenant.
-
hasPriorVersion
public boolean hasPriorVersion()* Prior object/tag version to use for update operations. This field should be omitted when creating a new dataset.
optional .tracdap.metadata.TagSelector priorVersion = 2;- Specified by:
hasPriorVersionin interfaceDataWriteRequestOrBuilder- Returns:
- Whether the priorVersion field is set.
-
getPriorVersion
public org.finos.tracdap.metadata.TagSelector getPriorVersion()* Prior object/tag version to use for update operations. This field should be omitted when creating a new dataset.
optional .tracdap.metadata.TagSelector priorVersion = 2;- Specified by:
getPriorVersionin interfaceDataWriteRequestOrBuilder- Returns:
- The priorVersion.
-
getPriorVersionOrBuilder
public org.finos.tracdap.metadata.TagSelectorOrBuilder getPriorVersionOrBuilder()* Prior object/tag version to use for update operations. This field should be omitted when creating a new dataset.
optional .tracdap.metadata.TagSelector priorVersion = 2;- Specified by:
getPriorVersionOrBuilderin interfaceDataWriteRequestOrBuilder
-
getTagUpdatesList
* Tag update operations to be applied. Tag updates are applied in exactly the same way as for metadata write requests. @see MetadataWriteRequest @see TracMetadataApi
repeated .tracdap.metadata.TagUpdate tagUpdates = 3;- Specified by:
getTagUpdatesListin interfaceDataWriteRequestOrBuilder
-
getTagUpdatesOrBuilderList
* Tag update operations to be applied. Tag updates are applied in exactly the same way as for metadata write requests. @see MetadataWriteRequest @see TracMetadataApi
repeated .tracdap.metadata.TagUpdate tagUpdates = 3;- Specified by:
getTagUpdatesOrBuilderListin interfaceDataWriteRequestOrBuilder
-
getTagUpdatesCount
public int getTagUpdatesCount()* Tag update operations to be applied. Tag updates are applied in exactly the same way as for metadata write requests. @see MetadataWriteRequest @see TracMetadataApi
repeated .tracdap.metadata.TagUpdate tagUpdates = 3;- Specified by:
getTagUpdatesCountin interfaceDataWriteRequestOrBuilder
-
getTagUpdates
public org.finos.tracdap.metadata.TagUpdate getTagUpdates(int index) * Tag update operations to be applied. Tag updates are applied in exactly the same way as for metadata write requests. @see MetadataWriteRequest @see TracMetadataApi
repeated .tracdap.metadata.TagUpdate tagUpdates = 3;- Specified by:
getTagUpdatesin interfaceDataWriteRequestOrBuilder
-
getTagUpdatesOrBuilder
public org.finos.tracdap.metadata.TagUpdateOrBuilder getTagUpdatesOrBuilder(int index) * Tag update operations to be applied. Tag updates are applied in exactly the same way as for metadata write requests. @see MetadataWriteRequest @see TracMetadataApi
repeated .tracdap.metadata.TagUpdate tagUpdates = 3;- Specified by:
getTagUpdatesOrBuilderin interfaceDataWriteRequestOrBuilder
-
hasSchemaId
public boolean hasSchemaId()* Specify the schema using an external schema definition. If a schema ID is supplied, it must be a valid tag selector for an existing SCHEMA object. All future versions of the dataset must use either the same schema ID or a later version of the same schema object. TRAC will look up the external schema and validate incoming data to make sure it is conformant.
.tracdap.metadata.TagSelector schemaId = 4;- Specified by:
hasSchemaIdin interfaceDataWriteRequestOrBuilder- Returns:
- Whether the schemaId field is set.
-
getSchemaId
public org.finos.tracdap.metadata.TagSelector getSchemaId()* Specify the schema using an external schema definition. If a schema ID is supplied, it must be a valid tag selector for an existing SCHEMA object. All future versions of the dataset must use either the same schema ID or a later version of the same schema object. TRAC will look up the external schema and validate incoming data to make sure it is conformant.
.tracdap.metadata.TagSelector schemaId = 4;- Specified by:
getSchemaIdin interfaceDataWriteRequestOrBuilder- Returns:
- The schemaId.
-
getSchemaIdOrBuilder
public org.finos.tracdap.metadata.TagSelectorOrBuilder getSchemaIdOrBuilder()* Specify the schema using an external schema definition. If a schema ID is supplied, it must be a valid tag selector for an existing SCHEMA object. All future versions of the dataset must use either the same schema ID or a later version of the same schema object. TRAC will look up the external schema and validate incoming data to make sure it is conformant.
.tracdap.metadata.TagSelector schemaId = 4;- Specified by:
getSchemaIdOrBuilderin interfaceDataWriteRequestOrBuilder
-
hasSchema
public boolean hasSchema()* Specify the schema with an explicit schema definition. If an explicit schema is supplied TRAC will save the schema as part of the DATA object, creating an embedded schema this individual dataset. All future versions of the dataset must also use an embedded schema which can either be the same schema or a compatible one, with compatibility following the rules of schema versioning (fields can be added but not removed or materially altered). TRAC will validate incoming data to make sure it is conformant with the schema.
.tracdap.metadata.SchemaDefinition schema = 5;- Specified by:
hasSchemain interfaceDataWriteRequestOrBuilder- Returns:
- Whether the schema field is set.
-
getSchema
public org.finos.tracdap.metadata.SchemaDefinition getSchema()* Specify the schema with an explicit schema definition. If an explicit schema is supplied TRAC will save the schema as part of the DATA object, creating an embedded schema this individual dataset. All future versions of the dataset must also use an embedded schema which can either be the same schema or a compatible one, with compatibility following the rules of schema versioning (fields can be added but not removed or materially altered). TRAC will validate incoming data to make sure it is conformant with the schema.
.tracdap.metadata.SchemaDefinition schema = 5;- Specified by:
getSchemain interfaceDataWriteRequestOrBuilder- Returns:
- The schema.
-
getSchemaOrBuilder
public org.finos.tracdap.metadata.SchemaDefinitionOrBuilder getSchemaOrBuilder()* Specify the schema with an explicit schema definition. If an explicit schema is supplied TRAC will save the schema as part of the DATA object, creating an embedded schema this individual dataset. All future versions of the dataset must also use an embedded schema which can either be the same schema or a compatible one, with compatibility following the rules of schema versioning (fields can be added but not removed or materially altered). TRAC will validate incoming data to make sure it is conformant with the schema.
.tracdap.metadata.SchemaDefinition schema = 5;- Specified by:
getSchemaOrBuilderin interfaceDataWriteRequestOrBuilder
-
getFormat
* Format that will be used for uploading data. This field tells TRAC what format the data will be sent in, it must be the mime type of a supported data format. Data provided in the "content" field can then be encoded in this format. The "format" field does not affect how TRAC stores data. Incoming data is decoded and translated into a format recognised by the underlying data platform.
string format = 9;- Specified by:
getFormatin interfaceDataWriteRequestOrBuilder- Returns:
- The format.
-
getFormatBytes
public com.google.protobuf.ByteString getFormatBytes()* Format that will be used for uploading data. This field tells TRAC what format the data will be sent in, it must be the mime type of a supported data format. Data provided in the "content" field can then be encoded in this format. The "format" field does not affect how TRAC stores data. Incoming data is decoded and translated into a format recognised by the underlying data platform.
string format = 9;- Specified by:
getFormatBytesin interfaceDataWriteRequestOrBuilder- Returns:
- The bytes for format.
-
getContent
public com.google.protobuf.ByteString getContent()* The content of the dataset, encoded as per the "format" field. For client streaming requests, each message contains a chunk of the encoded dataset. Empty (i.e. zero-length) chunks can be included in the stream and will be ignored. For unary requests (createSmallDataset, updateSmallDataset) the encoded content of the dataset must be included in the request as a single blob.
bytes content = 1000;- Specified by:
getContentin interfaceDataWriteRequestOrBuilder- Returns:
- The content.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DataWriteRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataWriteRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataWriteRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataWriteRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataWriteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataWriteRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DataWriteRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DataWriteRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DataWriteRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DataWriteRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataWriteRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-