Package org.finos.tracdap.api
Class FileWriteRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<FileWriteRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<FileWriteRequest.Builder>
org.finos.tracdap.api.FileWriteRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,FileWriteRequestOrBuilder
- Enclosing class:
FileWriteRequest
public static final class FileWriteRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FileWriteRequest.Builder>
implements FileWriteRequestOrBuilder
* Request to create or update a FILE and store content to the platform. @see TracDataApi.createFile @see TracDataApi.updateFileProtobuf type
tracdap.api.FileWriteRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllTagUpdates(Iterable<? extends org.finos.tracdap.metadata.TagUpdate> values) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.addTagUpdates(int index, org.finos.tracdap.metadata.TagUpdate value) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.addTagUpdates(int index, org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.addTagUpdates(org.finos.tracdap.metadata.TagUpdate value) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.addTagUpdates(org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.org.finos.tracdap.metadata.TagUpdate.Builder* Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.org.finos.tracdap.metadata.TagUpdate.BuilderaddTagUpdatesBuilder(int index) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.build()clear()* A chunk of the file content The file content should be sent as a stream of chunks (byte buffers), with one chunk in each message.* Mime type of the file being saved, always required Must be a valid mime type.* File name of the file being saved, always required Must be a valid file name with no path component (i.e.* Prior object/tag version to use for update operations This field should be omitted when creating a new file.* Size of the file being saved, if known in advance When a size is supplied, TRAC will check the size against the number of bytes stored.* Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.* Tenant code for the requested operation, always requiredcom.google.protobuf.ByteString* A chunk of the file content The file content should be sent as a stream of chunks (byte buffers), with one chunk in each message.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor* Mime type of the file being saved, always required Must be a valid mime type.com.google.protobuf.ByteString* Mime type of the file being saved, always required Must be a valid mime type.getName()* File name of the file being saved, always required Must be a valid file name with no path component (i.e.com.google.protobuf.ByteString* File name of the file being saved, always required Must be a valid file name with no path component (i.e.org.finos.tracdap.metadata.TagSelector* Prior object/tag version to use for update operations This field should be omitted when creating a new file.org.finos.tracdap.metadata.TagSelector.Builder* Prior object/tag version to use for update operations This field should be omitted when creating a new file.org.finos.tracdap.metadata.TagSelectorOrBuilder* Prior object/tag version to use for update operations This field should be omitted when creating a new file.longgetSize()* Size of the file being saved, if known in advance When a size is supplied, TRAC will check the size against the number of bytes stored.org.finos.tracdap.metadata.TagUpdategetTagUpdates(int index) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.org.finos.tracdap.metadata.TagUpdate.BuildergetTagUpdatesBuilder(int index) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.List<org.finos.tracdap.metadata.TagUpdate.Builder> * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.int* Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.List<org.finos.tracdap.metadata.TagUpdate> * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.org.finos.tracdap.metadata.TagUpdateOrBuildergetTagUpdatesOrBuilder(int index) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.List<? extends org.finos.tracdap.metadata.TagUpdateOrBuilder> * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.* Tenant code for the requested operation, always requiredcom.google.protobuf.ByteString* Tenant code for the requested operation, always requiredboolean* Prior object/tag version to use for update operations This field should be omitted when creating a new file.booleanhasSize()* Size of the file being saved, if known in advance When a size is supplied, TRAC will check the size against the number of bytes stored.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FileWriteRequest other) mergePriorVersion(org.finos.tracdap.metadata.TagSelector value) * Prior object/tag version to use for update operations This field should be omitted when creating a new file.removeTagUpdates(int index) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.setContent(com.google.protobuf.ByteString value) * A chunk of the file content The file content should be sent as a stream of chunks (byte buffers), with one chunk in each message.setMimeType(String value) * Mime type of the file being saved, always required Must be a valid mime type.setMimeTypeBytes(com.google.protobuf.ByteString value) * Mime type of the file being saved, always required Must be a valid mime type.* File name of the file being saved, always required Must be a valid file name with no path component (i.e.setNameBytes(com.google.protobuf.ByteString value) * File name of the file being saved, always required Must be a valid file name with no path component (i.e.setPriorVersion(org.finos.tracdap.metadata.TagSelector value) * Prior object/tag version to use for update operations This field should be omitted when creating a new file.setPriorVersion(org.finos.tracdap.metadata.TagSelector.Builder builderForValue) * Prior object/tag version to use for update operations This field should be omitted when creating a new file.setSize(long value) * Size of the file being saved, if known in advance When a size is supplied, TRAC will check the size against the number of bytes stored.setTagUpdates(int index, org.finos.tracdap.metadata.TagUpdate value) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.setTagUpdates(int index, org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) * Tag update operations to be applied Tag updates are applied in exactly the same way as for metadata write requests.* Tenant code for the requested operation, always requiredsetTenantBytes(com.google.protobuf.ByteString value) * Tenant code for the requested operation, always requiredMethods 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<FileWriteRequest.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<FileWriteRequest.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<FileWriteRequest.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<FileWriteRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FileWriteRequest.Builder>
-
mergeFrom
public FileWriteRequest.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<FileWriteRequest.Builder>- Throws:
IOException
-
getTenant
* Tenant code for the requested operation, always required
string tenant = 1;- Specified by:
getTenantin interfaceFileWriteRequestOrBuilder- Returns:
- The tenant.
-
getTenantBytes
public com.google.protobuf.ByteString getTenantBytes()* Tenant code for the requested operation, always required
string tenant = 1;- Specified by:
getTenantBytesin interfaceFileWriteRequestOrBuilder- 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.
-
hasPriorVersion
public boolean hasPriorVersion()* Prior object/tag version to use for update operations This field should be omitted when creating a new file.
optional .tracdap.metadata.TagSelector priorVersion = 2;- Specified by:
hasPriorVersionin interfaceFileWriteRequestOrBuilder- 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 file.
optional .tracdap.metadata.TagSelector priorVersion = 2;- Specified by:
getPriorVersionin interfaceFileWriteRequestOrBuilder- Returns:
- The priorVersion.
-
setPriorVersion
* Prior object/tag version to use for update operations This field should be omitted when creating a new file.
optional .tracdap.metadata.TagSelector priorVersion = 2; -
setPriorVersion
public FileWriteRequest.Builder setPriorVersion(org.finos.tracdap.metadata.TagSelector.Builder builderForValue) * Prior object/tag version to use for update operations This field should be omitted when creating a new file.
optional .tracdap.metadata.TagSelector priorVersion = 2; -
mergePriorVersion
* Prior object/tag version to use for update operations This field should be omitted when creating a new file.
optional .tracdap.metadata.TagSelector priorVersion = 2; -
clearPriorVersion
* Prior object/tag version to use for update operations This field should be omitted when creating a new file.
optional .tracdap.metadata.TagSelector priorVersion = 2; -
getPriorVersionBuilder
public org.finos.tracdap.metadata.TagSelector.Builder getPriorVersionBuilder()* Prior object/tag version to use for update operations This field should be omitted when creating a new file.
optional .tracdap.metadata.TagSelector priorVersion = 2; -
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 file.
optional .tracdap.metadata.TagSelector priorVersion = 2;- Specified by:
getPriorVersionOrBuilderin interfaceFileWriteRequestOrBuilder
-
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 interfaceFileWriteRequestOrBuilder
-
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 interfaceFileWriteRequestOrBuilder
-
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 interfaceFileWriteRequestOrBuilder
-
setTagUpdates
public FileWriteRequest.Builder setTagUpdates(int index, org.finos.tracdap.metadata.TagUpdate value) * 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; -
setTagUpdates
public FileWriteRequest.Builder setTagUpdates(int index, org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) * 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; -
addTagUpdates
* 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; -
addTagUpdates
public FileWriteRequest.Builder addTagUpdates(int index, org.finos.tracdap.metadata.TagUpdate value) * 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; -
addTagUpdates
public FileWriteRequest.Builder addTagUpdates(org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) * 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; -
addTagUpdates
public FileWriteRequest.Builder addTagUpdates(int index, org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) * 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; -
addAllTagUpdates
public FileWriteRequest.Builder addAllTagUpdates(Iterable<? extends org.finos.tracdap.metadata.TagUpdate> values) * 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; -
clearTagUpdates
* 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; -
removeTagUpdates
* 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; -
getTagUpdatesBuilder
public org.finos.tracdap.metadata.TagUpdate.Builder getTagUpdatesBuilder(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; -
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 interfaceFileWriteRequestOrBuilder
-
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 interfaceFileWriteRequestOrBuilder
-
addTagUpdatesBuilder
public org.finos.tracdap.metadata.TagUpdate.Builder addTagUpdatesBuilder()* 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; -
addTagUpdatesBuilder
public org.finos.tracdap.metadata.TagUpdate.Builder addTagUpdatesBuilder(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; -
getTagUpdatesBuilderList
* 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; -
getName
* File name of the file being saved, always required Must be a valid file name with no path component (i.e. the name may not contain slashes). If the name contains a period character, the file extension will be set as the portion of the name following the last period. Otherwise the file extension will be blank. For update requests the name may change but the extension must stay the same. E.g. a file can be created as "my_file_v1.txt" and updated as "my_file_v2.txt", but updating with the name as "my_file_v1.doc" would not be allowed. Attempting to change the extension in an update will result in an error status of FAILED_PRECONDITION. Fle name and extension are stored in the file definition, and in the trac_file_name and trac_file_extension attributes.
string name = 4;- Specified by:
getNamein interfaceFileWriteRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()* File name of the file being saved, always required Must be a valid file name with no path component (i.e. the name may not contain slashes). If the name contains a period character, the file extension will be set as the portion of the name following the last period. Otherwise the file extension will be blank. For update requests the name may change but the extension must stay the same. E.g. a file can be created as "my_file_v1.txt" and updated as "my_file_v2.txt", but updating with the name as "my_file_v1.doc" would not be allowed. Attempting to change the extension in an update will result in an error status of FAILED_PRECONDITION. Fle name and extension are stored in the file definition, and in the trac_file_name and trac_file_extension attributes.
string name = 4;- Specified by:
getNameBytesin interfaceFileWriteRequestOrBuilder- Returns:
- The bytes for name.
-
setName
* File name of the file being saved, always required Must be a valid file name with no path component (i.e. the name may not contain slashes). If the name contains a period character, the file extension will be set as the portion of the name following the last period. Otherwise the file extension will be blank. For update requests the name may change but the extension must stay the same. E.g. a file can be created as "my_file_v1.txt" and updated as "my_file_v2.txt", but updating with the name as "my_file_v1.doc" would not be allowed. Attempting to change the extension in an update will result in an error status of FAILED_PRECONDITION. Fle name and extension are stored in the file definition, and in the trac_file_name and trac_file_extension attributes.
string name = 4;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
* File name of the file being saved, always required Must be a valid file name with no path component (i.e. the name may not contain slashes). If the name contains a period character, the file extension will be set as the portion of the name following the last period. Otherwise the file extension will be blank. For update requests the name may change but the extension must stay the same. E.g. a file can be created as "my_file_v1.txt" and updated as "my_file_v2.txt", but updating with the name as "my_file_v1.doc" would not be allowed. Attempting to change the extension in an update will result in an error status of FAILED_PRECONDITION. Fle name and extension are stored in the file definition, and in the trac_file_name and trac_file_extension attributes.
string name = 4;- Returns:
- This builder for chaining.
-
setNameBytes
* File name of the file being saved, always required Must be a valid file name with no path component (i.e. the name may not contain slashes). If the name contains a period character, the file extension will be set as the portion of the name following the last period. Otherwise the file extension will be blank. For update requests the name may change but the extension must stay the same. E.g. a file can be created as "my_file_v1.txt" and updated as "my_file_v2.txt", but updating with the name as "my_file_v1.doc" would not be allowed. Attempting to change the extension in an update will result in an error status of FAILED_PRECONDITION. Fle name and extension are stored in the file definition, and in the trac_file_name and trac_file_extension attributes.
string name = 4;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getMimeType
* Mime type of the file being saved, always required Must be a valid mime type. For update requests, the mime type must match exactly with the mime type supplied when the file was originally created. Attempting to change the mime type in an update will result in an error status of FAILED_PRECONDITION. Mime type is stored in the file definition and in the trac_file_mime_type attribute.
string mimeType = 5;- Specified by:
getMimeTypein interfaceFileWriteRequestOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()* Mime type of the file being saved, always required Must be a valid mime type. For update requests, the mime type must match exactly with the mime type supplied when the file was originally created. Attempting to change the mime type in an update will result in an error status of FAILED_PRECONDITION. Mime type is stored in the file definition and in the trac_file_mime_type attribute.
string mimeType = 5;- Specified by:
getMimeTypeBytesin interfaceFileWriteRequestOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
* Mime type of the file being saved, always required Must be a valid mime type. For update requests, the mime type must match exactly with the mime type supplied when the file was originally created. Attempting to change the mime type in an update will result in an error status of FAILED_PRECONDITION. Mime type is stored in the file definition and in the trac_file_mime_type attribute.
string mimeType = 5;- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
* Mime type of the file being saved, always required Must be a valid mime type. For update requests, the mime type must match exactly with the mime type supplied when the file was originally created. Attempting to change the mime type in an update will result in an error status of FAILED_PRECONDITION. Mime type is stored in the file definition and in the trac_file_mime_type attribute.
string mimeType = 5;- Returns:
- This builder for chaining.
-
setMimeTypeBytes
* Mime type of the file being saved, always required Must be a valid mime type. For update requests, the mime type must match exactly with the mime type supplied when the file was originally created. Attempting to change the mime type in an update will result in an error status of FAILED_PRECONDITION. Mime type is stored in the file definition and in the trac_file_mime_type attribute.
string mimeType = 5;- Parameters:
value- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
hasSize
public boolean hasSize()* Size of the file being saved, if known in advance When a size is supplied, TRAC will check the size against the number of bytes stored. If the stored file size does not match the supplied value, the error will be reported with an error status of DATA_LOSS. When no size is supplied the check cannot be performed. File size is stored in the created file definition and in the trac_file_size attribute.
optional uint64 size = 6;- Specified by:
hasSizein interfaceFileWriteRequestOrBuilder- Returns:
- Whether the size field is set.
-
getSize
public long getSize()* Size of the file being saved, if known in advance When a size is supplied, TRAC will check the size against the number of bytes stored. If the stored file size does not match the supplied value, the error will be reported with an error status of DATA_LOSS. When no size is supplied the check cannot be performed. File size is stored in the created file definition and in the trac_file_size attribute.
optional uint64 size = 6;- Specified by:
getSizein interfaceFileWriteRequestOrBuilder- Returns:
- The size.
-
setSize
* Size of the file being saved, if known in advance When a size is supplied, TRAC will check the size against the number of bytes stored. If the stored file size does not match the supplied value, the error will be reported with an error status of DATA_LOSS. When no size is supplied the check cannot be performed. File size is stored in the created file definition and in the trac_file_size attribute.
optional uint64 size = 6;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
* Size of the file being saved, if known in advance When a size is supplied, TRAC will check the size against the number of bytes stored. If the stored file size does not match the supplied value, the error will be reported with an error status of DATA_LOSS. When no size is supplied the check cannot be performed. File size is stored in the created file definition and in the trac_file_size attribute.
optional uint64 size = 6;- Returns:
- This builder for chaining.
-
getContent
public com.google.protobuf.ByteString getContent()* A chunk of the file content The file content should be sent as a stream of chunks (byte buffers), with one chunk in each message. Empty chunks can be included at any point in the request stream and will be ignored.
bytes content = 1000;- Specified by:
getContentin interfaceFileWriteRequestOrBuilder- Returns:
- The content.
-
setContent
* A chunk of the file content The file content should be sent as a stream of chunks (byte buffers), with one chunk in each message. Empty chunks can be included at any point in the request stream and will be ignored.
bytes content = 1000;- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
clearContent
* A chunk of the file content The file content should be sent as a stream of chunks (byte buffers), with one chunk in each message. Empty chunks can be included at any point in the request stream and will be ignored.
bytes content = 1000;- Returns:
- This builder for chaining.
-