Package org.finos.tracdap.api
Class DataWriteRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.finos.tracdap.api.DataWriteRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable,DataWriteRequestOrBuilder
public final class DataWriteRequest extends com.google.protobuf.GeneratedMessageV3 implements DataWriteRequestOrBuilder
Request to create of update a dataset stored in the TRAC platform. @see TracDataApi.createDataset @see TracDataApi.updateDataset
Protobuf typetracdap.api.DataWriteRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataWriteRequest.BuilderRequest to create of update a dataset stored in the TRAC platform.static classDataWriteRequest.SchemaSpecifierCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTENT_FIELD_NUMBERstatic intFORMAT_FIELD_NUMBERstatic intPRIORVERSION_FIELD_NUMBERstatic intSCHEMA_FIELD_NUMBERstatic intSCHEMAID_FIELD_NUMBERstatic intTAGUPDATES_FIELD_NUMBERstatic intTENANT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)com.google.protobuf.ByteStringgetContent()The content of the dataset, encoded as per the "format" field.static DataWriteRequestgetDefaultInstance()DataWriteRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetFormat()Format that will be used for uploading data.com.google.protobuf.ByteStringgetFormatBytes()Format that will be used for uploading data.com.google.protobuf.Parser<DataWriteRequest>getParserForType()org.finos.tracdap.metadata.TagSelectorgetPriorVersion()Prior object/tag version to use for update operations.org.finos.tracdap.metadata.TagSelectorOrBuildergetPriorVersionOrBuilder()Prior object/tag version to use for update operations.org.finos.tracdap.metadata.SchemaDefinitiongetSchema()Specify the schema with an explicit schema definition.org.finos.tracdap.metadata.TagSelectorgetSchemaId()Specify the schema using an external schema definition.org.finos.tracdap.metadata.TagSelectorOrBuildergetSchemaIdOrBuilder()Specify the schema using an external schema definition.org.finos.tracdap.metadata.SchemaDefinitionOrBuildergetSchemaOrBuilder()Specify the schema with an explicit schema definition.DataWriteRequest.SchemaSpecifierCasegetSchemaSpecifierCase()intgetSerializedSize()org.finos.tracdap.metadata.TagUpdategetTagUpdates(int index)Tag update operations to be applied.intgetTagUpdatesCount()Tag update operations to be applied.java.util.List<org.finos.tracdap.metadata.TagUpdate>getTagUpdatesList()Tag update operations to be applied.org.finos.tracdap.metadata.TagUpdateOrBuildergetTagUpdatesOrBuilder(int index)Tag update operations to be applied.java.util.List<? extends org.finos.tracdap.metadata.TagUpdateOrBuilder>getTagUpdatesOrBuilderList()Tag update operations to be applied.java.lang.StringgetTenant()Tenant code for the requested operation, always required.com.google.protobuf.ByteStringgetTenantBytes()Tenant code for the requested operation, always required.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasPriorVersion()Prior object/tag version to use for update operations.booleanhasSchema()Specify the schema with an explicit schema definition.booleanhasSchemaId()Specify the schema using an external schema definition.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DataWriteRequest.BuildernewBuilder()static DataWriteRequest.BuildernewBuilder(DataWriteRequest prototype)DataWriteRequest.BuildernewBuilderForType()protected DataWriteRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DataWriteRequestparseDelimitedFrom(java.io.InputStream input)static DataWriteRequestparseDelimitedFrom(java.io.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(java.io.InputStream input)static DataWriteRequestparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataWriteRequestparseFrom(java.nio.ByteBuffer data)static DataWriteRequestparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DataWriteRequest>parser()DataWriteRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TENANT_FIELD_NUMBER
public static final int TENANT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIORVERSION_FIELD_NUMBER
public static final int PRIORVERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGUPDATES_FIELD_NUMBER
public static final int TAGUPDATES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEMAID_FIELD_NUMBER
public static final int SCHEMAID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEMA_FIELD_NUMBER
public static final int SCHEMA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORMAT_FIELD_NUMBER
public static final int FORMAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSchemaSpecifierCase
public DataWriteRequest.SchemaSpecifierCase getSchemaSpecifierCase()
- Specified by:
getSchemaSpecifierCasein interfaceDataWriteRequestOrBuilder
-
getTenant
public java.lang.String 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
public java.util.List<org.finos.tracdap.metadata.TagUpdate> 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
public java.util.List<? extends org.finos.tracdap.metadata.TagUpdateOrBuilder> 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
public java.lang.String 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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataWriteRequest parseFrom(java.nio.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
public static DataWriteRequest parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DataWriteRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DataWriteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DataWriteRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DataWriteRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DataWriteRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DataWriteRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DataWriteRequest.Builder newBuilder()
-
newBuilder
public static DataWriteRequest.Builder newBuilder(DataWriteRequest prototype)
-
toBuilder
public DataWriteRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataWriteRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DataWriteRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DataWriteRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<DataWriteRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DataWriteRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-