All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.finos.tracdap.api.DataWriteRequest Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: tracdap/api/data.proto
// Protobuf Java Version: 4.28.2

package org.finos.tracdap.api;

/**
 * 
 * *
 * Request to create of update a dataset stored in the TRAC platform.
 *
 * @see TracDataApi.createDataset
 * @see TracDataApi.updateDataset
 * 
* * Protobuf type {@code tracdap.api.DataWriteRequest} */ public final class DataWriteRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tracdap.api.DataWriteRequest) DataWriteRequestOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", DataWriteRequest.class.getName()); } // Use DataWriteRequest.newBuilder() to construct. private DataWriteRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DataWriteRequest() { tenant_ = ""; tagUpdates_ = java.util.Collections.emptyList(); format_ = ""; content_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DataWriteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DataWriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.DataWriteRequest.class, org.finos.tracdap.api.DataWriteRequest.Builder.class); } private int bitField0_; private int schemaSpecifierCase_ = 0; @SuppressWarnings("serial") private java.lang.Object schemaSpecifier_; public enum SchemaSpecifierCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SCHEMAID(4), SCHEMA(5), SCHEMASPECIFIER_NOT_SET(0); private final int value; private SchemaSpecifierCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SchemaSpecifierCase valueOf(int value) { return forNumber(value); } public static SchemaSpecifierCase forNumber(int value) { switch (value) { case 4: return SCHEMAID; case 5: return SCHEMA; case 0: return SCHEMASPECIFIER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SchemaSpecifierCase getSchemaSpecifierCase() { return SchemaSpecifierCase.forNumber( schemaSpecifierCase_); } public static final int TENANT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object tenant_ = ""; /** *
   * *
   * Tenant code for the requested operation, always required.
   * 
* * string tenant = 1; * @return The tenant. */ @java.lang.Override public java.lang.String getTenant() { java.lang.Object ref = tenant_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tenant_ = s; return s; } } /** *
   * *
   * Tenant code for the requested operation, always required.
   * 
* * string tenant = 1; * @return The bytes for tenant. */ @java.lang.Override public com.google.protobuf.ByteString getTenantBytes() { java.lang.Object ref = tenant_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tenant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIORVERSION_FIELD_NUMBER = 2; private org.finos.tracdap.metadata.TagSelector priorVersion_; /** *
   * *
   * 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; * @return Whether the priorVersion field is set. */ @java.lang.Override public boolean hasPriorVersion() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * *
   * 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; * @return The priorVersion. */ @java.lang.Override public org.finos.tracdap.metadata.TagSelector getPriorVersion() { return priorVersion_ == null ? org.finos.tracdap.metadata.TagSelector.getDefaultInstance() : priorVersion_; } /** *
   * *
   * 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; */ @java.lang.Override public org.finos.tracdap.metadata.TagSelectorOrBuilder getPriorVersionOrBuilder() { return priorVersion_ == null ? org.finos.tracdap.metadata.TagSelector.getDefaultInstance() : priorVersion_; } public static final int TAGUPDATES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List tagUpdates_; /** *
   * *
   * 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; */ @java.lang.Override public java.util.List getTagUpdatesList() { return tagUpdates_; } /** *
   * *
   * 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; */ @java.lang.Override public java.util.List getTagUpdatesOrBuilderList() { return tagUpdates_; } /** *
   * *
   * 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; */ @java.lang.Override public int getTagUpdatesCount() { return tagUpdates_.size(); } /** *
   * *
   * 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; */ @java.lang.Override public org.finos.tracdap.metadata.TagUpdate getTagUpdates(int index) { return tagUpdates_.get(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; */ @java.lang.Override public org.finos.tracdap.metadata.TagUpdateOrBuilder getTagUpdatesOrBuilder( int index) { return tagUpdates_.get(index); } public static final int SCHEMAID_FIELD_NUMBER = 4; /** *
   * *
   * 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; * @return Whether the schemaId field is set. */ @java.lang.Override public boolean hasSchemaId() { return schemaSpecifierCase_ == 4; } /** *
   * *
   * 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; * @return The schemaId. */ @java.lang.Override public org.finos.tracdap.metadata.TagSelector getSchemaId() { if (schemaSpecifierCase_ == 4) { return (org.finos.tracdap.metadata.TagSelector) schemaSpecifier_; } return org.finos.tracdap.metadata.TagSelector.getDefaultInstance(); } /** *
   * *
   * 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; */ @java.lang.Override public org.finos.tracdap.metadata.TagSelectorOrBuilder getSchemaIdOrBuilder() { if (schemaSpecifierCase_ == 4) { return (org.finos.tracdap.metadata.TagSelector) schemaSpecifier_; } return org.finos.tracdap.metadata.TagSelector.getDefaultInstance(); } public static final int SCHEMA_FIELD_NUMBER = 5; /** *
   * *
   * 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; * @return Whether the schema field is set. */ @java.lang.Override public boolean hasSchema() { return schemaSpecifierCase_ == 5; } /** *
   * *
   * 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; * @return The schema. */ @java.lang.Override public org.finos.tracdap.metadata.SchemaDefinition getSchema() { if (schemaSpecifierCase_ == 5) { return (org.finos.tracdap.metadata.SchemaDefinition) schemaSpecifier_; } return org.finos.tracdap.metadata.SchemaDefinition.getDefaultInstance(); } /** *
   * *
   * 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; */ @java.lang.Override public org.finos.tracdap.metadata.SchemaDefinitionOrBuilder getSchemaOrBuilder() { if (schemaSpecifierCase_ == 5) { return (org.finos.tracdap.metadata.SchemaDefinition) schemaSpecifier_; } return org.finos.tracdap.metadata.SchemaDefinition.getDefaultInstance(); } public static final int FORMAT_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object format_ = ""; /** *
   * *
   * 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; * @return The format. */ @java.lang.Override public java.lang.String getFormat() { java.lang.Object ref = format_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); format_ = s; return s; } } /** *
   * *
   * 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; * @return The bytes for format. */ @java.lang.Override public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); format_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTENT_FIELD_NUMBER = 1000; private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** *
   * *
   * 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; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, tenant_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPriorVersion()); } for (int i = 0; i < tagUpdates_.size(); i++) { output.writeMessage(3, tagUpdates_.get(i)); } if (schemaSpecifierCase_ == 4) { output.writeMessage(4, (org.finos.tracdap.metadata.TagSelector) schemaSpecifier_); } if (schemaSpecifierCase_ == 5) { output.writeMessage(5, (org.finos.tracdap.metadata.SchemaDefinition) schemaSpecifier_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(format_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, format_); } if (!content_.isEmpty()) { output.writeBytes(1000, content_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tenant_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPriorVersion()); } for (int i = 0; i < tagUpdates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, tagUpdates_.get(i)); } if (schemaSpecifierCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.finos.tracdap.metadata.TagSelector) schemaSpecifier_); } if (schemaSpecifierCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.finos.tracdap.metadata.SchemaDefinition) schemaSpecifier_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(format_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, format_); } if (!content_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1000, content_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.finos.tracdap.api.DataWriteRequest)) { return super.equals(obj); } org.finos.tracdap.api.DataWriteRequest other = (org.finos.tracdap.api.DataWriteRequest) obj; if (!getTenant() .equals(other.getTenant())) return false; if (hasPriorVersion() != other.hasPriorVersion()) return false; if (hasPriorVersion()) { if (!getPriorVersion() .equals(other.getPriorVersion())) return false; } if (!getTagUpdatesList() .equals(other.getTagUpdatesList())) return false; if (!getFormat() .equals(other.getFormat())) return false; if (!getContent() .equals(other.getContent())) return false; if (!getSchemaSpecifierCase().equals(other.getSchemaSpecifierCase())) return false; switch (schemaSpecifierCase_) { case 4: if (!getSchemaId() .equals(other.getSchemaId())) return false; break; case 5: if (!getSchema() .equals(other.getSchema())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TENANT_FIELD_NUMBER; hash = (53 * hash) + getTenant().hashCode(); if (hasPriorVersion()) { hash = (37 * hash) + PRIORVERSION_FIELD_NUMBER; hash = (53 * hash) + getPriorVersion().hashCode(); } if (getTagUpdatesCount() > 0) { hash = (37 * hash) + TAGUPDATES_FIELD_NUMBER; hash = (53 * hash) + getTagUpdatesList().hashCode(); } hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + getFormat().hashCode(); hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); switch (schemaSpecifierCase_) { case 4: hash = (37 * hash) + SCHEMAID_FIELD_NUMBER; hash = (53 * hash) + getSchemaId().hashCode(); break; case 5: hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.finos.tracdap.api.DataWriteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.DataWriteRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.DataWriteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.DataWriteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.DataWriteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.DataWriteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.DataWriteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.DataWriteRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.finos.tracdap.api.DataWriteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.finos.tracdap.api.DataWriteRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.finos.tracdap.api.DataWriteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.DataWriteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.finos.tracdap.api.DataWriteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * *
   * Request to create of update a dataset stored in the TRAC platform.
   *
   * @see TracDataApi.createDataset
   * @see TracDataApi.updateDataset
   * 
* * Protobuf type {@code tracdap.api.DataWriteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tracdap.api.DataWriteRequest) org.finos.tracdap.api.DataWriteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DataWriteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DataWriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.DataWriteRequest.class, org.finos.tracdap.api.DataWriteRequest.Builder.class); } // Construct using org.finos.tracdap.api.DataWriteRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getPriorVersionFieldBuilder(); getTagUpdatesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tenant_ = ""; priorVersion_ = null; if (priorVersionBuilder_ != null) { priorVersionBuilder_.dispose(); priorVersionBuilder_ = null; } if (tagUpdatesBuilder_ == null) { tagUpdates_ = java.util.Collections.emptyList(); } else { tagUpdates_ = null; tagUpdatesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (schemaIdBuilder_ != null) { schemaIdBuilder_.clear(); } if (schemaBuilder_ != null) { schemaBuilder_.clear(); } format_ = ""; content_ = com.google.protobuf.ByteString.EMPTY; schemaSpecifierCase_ = 0; schemaSpecifier_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DataWriteRequest_descriptor; } @java.lang.Override public org.finos.tracdap.api.DataWriteRequest getDefaultInstanceForType() { return org.finos.tracdap.api.DataWriteRequest.getDefaultInstance(); } @java.lang.Override public org.finos.tracdap.api.DataWriteRequest build() { org.finos.tracdap.api.DataWriteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.finos.tracdap.api.DataWriteRequest buildPartial() { org.finos.tracdap.api.DataWriteRequest result = new org.finos.tracdap.api.DataWriteRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(org.finos.tracdap.api.DataWriteRequest result) { if (tagUpdatesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { tagUpdates_ = java.util.Collections.unmodifiableList(tagUpdates_); bitField0_ = (bitField0_ & ~0x00000004); } result.tagUpdates_ = tagUpdates_; } else { result.tagUpdates_ = tagUpdatesBuilder_.build(); } } private void buildPartial0(org.finos.tracdap.api.DataWriteRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tenant_ = tenant_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.priorVersion_ = priorVersionBuilder_ == null ? priorVersion_ : priorVersionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.format_ = format_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.content_ = content_; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(org.finos.tracdap.api.DataWriteRequest result) { result.schemaSpecifierCase_ = schemaSpecifierCase_; result.schemaSpecifier_ = this.schemaSpecifier_; if (schemaSpecifierCase_ == 4 && schemaIdBuilder_ != null) { result.schemaSpecifier_ = schemaIdBuilder_.build(); } if (schemaSpecifierCase_ == 5 && schemaBuilder_ != null) { result.schemaSpecifier_ = schemaBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.finos.tracdap.api.DataWriteRequest) { return mergeFrom((org.finos.tracdap.api.DataWriteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.finos.tracdap.api.DataWriteRequest other) { if (other == org.finos.tracdap.api.DataWriteRequest.getDefaultInstance()) return this; if (!other.getTenant().isEmpty()) { tenant_ = other.tenant_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasPriorVersion()) { mergePriorVersion(other.getPriorVersion()); } if (tagUpdatesBuilder_ == null) { if (!other.tagUpdates_.isEmpty()) { if (tagUpdates_.isEmpty()) { tagUpdates_ = other.tagUpdates_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTagUpdatesIsMutable(); tagUpdates_.addAll(other.tagUpdates_); } onChanged(); } } else { if (!other.tagUpdates_.isEmpty()) { if (tagUpdatesBuilder_.isEmpty()) { tagUpdatesBuilder_.dispose(); tagUpdatesBuilder_ = null; tagUpdates_ = other.tagUpdates_; bitField0_ = (bitField0_ & ~0x00000004); tagUpdatesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTagUpdatesFieldBuilder() : null; } else { tagUpdatesBuilder_.addAllMessages(other.tagUpdates_); } } } if (!other.getFormat().isEmpty()) { format_ = other.format_; bitField0_ |= 0x00000020; onChanged(); } if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { setContent(other.getContent()); } switch (other.getSchemaSpecifierCase()) { case SCHEMAID: { mergeSchemaId(other.getSchemaId()); break; } case SCHEMA: { mergeSchema(other.getSchema()); break; } case SCHEMASPECIFIER_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tenant_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPriorVersionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { org.finos.tracdap.metadata.TagUpdate m = input.readMessage( org.finos.tracdap.metadata.TagUpdate.parser(), extensionRegistry); if (tagUpdatesBuilder_ == null) { ensureTagUpdatesIsMutable(); tagUpdates_.add(m); } else { tagUpdatesBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getSchemaIdFieldBuilder().getBuilder(), extensionRegistry); schemaSpecifierCase_ = 4; break; } // case 34 case 42: { input.readMessage( getSchemaFieldBuilder().getBuilder(), extensionRegistry); schemaSpecifierCase_ = 5; break; } // case 42 case 74: { format_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 74 case 8002: { content_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 8002 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int schemaSpecifierCase_ = 0; private java.lang.Object schemaSpecifier_; public SchemaSpecifierCase getSchemaSpecifierCase() { return SchemaSpecifierCase.forNumber( schemaSpecifierCase_); } public Builder clearSchemaSpecifier() { schemaSpecifierCase_ = 0; schemaSpecifier_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object tenant_ = ""; /** *
     * *
     * Tenant code for the requested operation, always required.
     * 
* * string tenant = 1; * @return The tenant. */ public java.lang.String getTenant() { java.lang.Object ref = tenant_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tenant_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * *
     * Tenant code for the requested operation, always required.
     * 
* * string tenant = 1; * @return The bytes for tenant. */ public com.google.protobuf.ByteString getTenantBytes() { java.lang.Object ref = tenant_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tenant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * *
     * Tenant code for the requested operation, always required.
     * 
* * string tenant = 1; * @param value The tenant to set. * @return This builder for chaining. */ public Builder setTenant( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tenant_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * *
     * Tenant code for the requested operation, always required.
     * 
* * string tenant = 1; * @return This builder for chaining. */ public Builder clearTenant() { tenant_ = getDefaultInstance().getTenant(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * *
     * Tenant code for the requested operation, always required.
     * 
* * string tenant = 1; * @param value The bytes for tenant to set. * @return This builder for chaining. */ public Builder setTenantBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tenant_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private org.finos.tracdap.metadata.TagSelector priorVersion_; private com.google.protobuf.SingleFieldBuilder< org.finos.tracdap.metadata.TagSelector, org.finos.tracdap.metadata.TagSelector.Builder, org.finos.tracdap.metadata.TagSelectorOrBuilder> priorVersionBuilder_; /** *
     * *
     * 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; * @return Whether the priorVersion field is set. */ public boolean hasPriorVersion() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * *
     * 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; * @return The priorVersion. */ public org.finos.tracdap.metadata.TagSelector getPriorVersion() { if (priorVersionBuilder_ == null) { return priorVersion_ == null ? org.finos.tracdap.metadata.TagSelector.getDefaultInstance() : priorVersion_; } else { return priorVersionBuilder_.getMessage(); } } /** *
     * *
     * 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; */ public Builder setPriorVersion(org.finos.tracdap.metadata.TagSelector value) { if (priorVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } priorVersion_ = value; } else { priorVersionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * *
     * 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; */ public Builder setPriorVersion( org.finos.tracdap.metadata.TagSelector.Builder builderForValue) { if (priorVersionBuilder_ == null) { priorVersion_ = builderForValue.build(); } else { priorVersionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * *
     * 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; */ public Builder mergePriorVersion(org.finos.tracdap.metadata.TagSelector value) { if (priorVersionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && priorVersion_ != null && priorVersion_ != org.finos.tracdap.metadata.TagSelector.getDefaultInstance()) { getPriorVersionBuilder().mergeFrom(value); } else { priorVersion_ = value; } } else { priorVersionBuilder_.mergeFrom(value); } if (priorVersion_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * *
     * 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; */ public Builder clearPriorVersion() { bitField0_ = (bitField0_ & ~0x00000002); priorVersion_ = null; if (priorVersionBuilder_ != null) { priorVersionBuilder_.dispose(); priorVersionBuilder_ = null; } onChanged(); return this; } /** *
     * *
     * 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; */ public org.finos.tracdap.metadata.TagSelector.Builder getPriorVersionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPriorVersionFieldBuilder().getBuilder(); } /** *
     * *
     * 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; */ public org.finos.tracdap.metadata.TagSelectorOrBuilder getPriorVersionOrBuilder() { if (priorVersionBuilder_ != null) { return priorVersionBuilder_.getMessageOrBuilder(); } else { return priorVersion_ == null ? org.finos.tracdap.metadata.TagSelector.getDefaultInstance() : priorVersion_; } } /** *
     * *
     * 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; */ private com.google.protobuf.SingleFieldBuilder< org.finos.tracdap.metadata.TagSelector, org.finos.tracdap.metadata.TagSelector.Builder, org.finos.tracdap.metadata.TagSelectorOrBuilder> getPriorVersionFieldBuilder() { if (priorVersionBuilder_ == null) { priorVersionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.finos.tracdap.metadata.TagSelector, org.finos.tracdap.metadata.TagSelector.Builder, org.finos.tracdap.metadata.TagSelectorOrBuilder>( getPriorVersion(), getParentForChildren(), isClean()); priorVersion_ = null; } return priorVersionBuilder_; } private java.util.List tagUpdates_ = java.util.Collections.emptyList(); private void ensureTagUpdatesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { tagUpdates_ = new java.util.ArrayList(tagUpdates_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.metadata.TagUpdate, org.finos.tracdap.metadata.TagUpdate.Builder, org.finos.tracdap.metadata.TagUpdateOrBuilder> tagUpdatesBuilder_; /** *
     * *
     * 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; */ public java.util.List getTagUpdatesList() { if (tagUpdatesBuilder_ == null) { return java.util.Collections.unmodifiableList(tagUpdates_); } else { return tagUpdatesBuilder_.getMessageList(); } } /** *
     * *
     * 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; */ public int getTagUpdatesCount() { if (tagUpdatesBuilder_ == null) { return tagUpdates_.size(); } else { return tagUpdatesBuilder_.getCount(); } } /** *
     * *
     * 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; */ public org.finos.tracdap.metadata.TagUpdate getTagUpdates(int index) { if (tagUpdatesBuilder_ == null) { return tagUpdates_.get(index); } else { return tagUpdatesBuilder_.getMessage(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; */ public Builder setTagUpdates( int index, org.finos.tracdap.metadata.TagUpdate value) { if (tagUpdatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagUpdatesIsMutable(); tagUpdates_.set(index, value); onChanged(); } else { tagUpdatesBuilder_.setMessage(index, value); } return this; } /** *
     * *
     * 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; */ public Builder setTagUpdates( int index, org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) { if (tagUpdatesBuilder_ == null) { ensureTagUpdatesIsMutable(); tagUpdates_.set(index, builderForValue.build()); onChanged(); } else { tagUpdatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * *
     * 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; */ public Builder addTagUpdates(org.finos.tracdap.metadata.TagUpdate value) { if (tagUpdatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagUpdatesIsMutable(); tagUpdates_.add(value); onChanged(); } else { tagUpdatesBuilder_.addMessage(value); } return this; } /** *
     * *
     * 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; */ public Builder addTagUpdates( int index, org.finos.tracdap.metadata.TagUpdate value) { if (tagUpdatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagUpdatesIsMutable(); tagUpdates_.add(index, value); onChanged(); } else { tagUpdatesBuilder_.addMessage(index, value); } return this; } /** *
     * *
     * 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; */ public Builder addTagUpdates( org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) { if (tagUpdatesBuilder_ == null) { ensureTagUpdatesIsMutable(); tagUpdates_.add(builderForValue.build()); onChanged(); } else { tagUpdatesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * *
     * 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; */ public Builder addTagUpdates( int index, org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) { if (tagUpdatesBuilder_ == null) { ensureTagUpdatesIsMutable(); tagUpdates_.add(index, builderForValue.build()); onChanged(); } else { tagUpdatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * *
     * 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; */ public Builder addAllTagUpdates( java.lang.Iterable values) { if (tagUpdatesBuilder_ == null) { ensureTagUpdatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tagUpdates_); onChanged(); } else { tagUpdatesBuilder_.addAllMessages(values); } return this; } /** *
     * *
     * 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; */ public Builder clearTagUpdates() { if (tagUpdatesBuilder_ == null) { tagUpdates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { tagUpdatesBuilder_.clear(); } return this; } /** *
     * *
     * 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; */ public Builder removeTagUpdates(int index) { if (tagUpdatesBuilder_ == null) { ensureTagUpdatesIsMutable(); tagUpdates_.remove(index); onChanged(); } else { tagUpdatesBuilder_.remove(index); } return this; } /** *
     * *
     * 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; */ public org.finos.tracdap.metadata.TagUpdate.Builder getTagUpdatesBuilder( int index) { return getTagUpdatesFieldBuilder().getBuilder(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; */ public org.finos.tracdap.metadata.TagUpdateOrBuilder getTagUpdatesOrBuilder( int index) { if (tagUpdatesBuilder_ == null) { return tagUpdates_.get(index); } else { return tagUpdatesBuilder_.getMessageOrBuilder(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; */ public java.util.List getTagUpdatesOrBuilderList() { if (tagUpdatesBuilder_ != null) { return tagUpdatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tagUpdates_); } } /** *
     * *
     * 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; */ public org.finos.tracdap.metadata.TagUpdate.Builder addTagUpdatesBuilder() { return getTagUpdatesFieldBuilder().addBuilder( org.finos.tracdap.metadata.TagUpdate.getDefaultInstance()); } /** *
     * *
     * 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; */ public org.finos.tracdap.metadata.TagUpdate.Builder addTagUpdatesBuilder( int index) { return getTagUpdatesFieldBuilder().addBuilder( index, org.finos.tracdap.metadata.TagUpdate.getDefaultInstance()); } /** *
     * *
     * 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; */ public java.util.List getTagUpdatesBuilderList() { return getTagUpdatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.metadata.TagUpdate, org.finos.tracdap.metadata.TagUpdate.Builder, org.finos.tracdap.metadata.TagUpdateOrBuilder> getTagUpdatesFieldBuilder() { if (tagUpdatesBuilder_ == null) { tagUpdatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.metadata.TagUpdate, org.finos.tracdap.metadata.TagUpdate.Builder, org.finos.tracdap.metadata.TagUpdateOrBuilder>( tagUpdates_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); tagUpdates_ = null; } return tagUpdatesBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.finos.tracdap.metadata.TagSelector, org.finos.tracdap.metadata.TagSelector.Builder, org.finos.tracdap.metadata.TagSelectorOrBuilder> schemaIdBuilder_; /** *
     * *
     * 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; * @return Whether the schemaId field is set. */ @java.lang.Override public boolean hasSchemaId() { return schemaSpecifierCase_ == 4; } /** *
     * *
     * 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; * @return The schemaId. */ @java.lang.Override public org.finos.tracdap.metadata.TagSelector getSchemaId() { if (schemaIdBuilder_ == null) { if (schemaSpecifierCase_ == 4) { return (org.finos.tracdap.metadata.TagSelector) schemaSpecifier_; } return org.finos.tracdap.metadata.TagSelector.getDefaultInstance(); } else { if (schemaSpecifierCase_ == 4) { return schemaIdBuilder_.getMessage(); } return org.finos.tracdap.metadata.TagSelector.getDefaultInstance(); } } /** *
     * *
     * 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; */ public Builder setSchemaId(org.finos.tracdap.metadata.TagSelector value) { if (schemaIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaSpecifier_ = value; onChanged(); } else { schemaIdBuilder_.setMessage(value); } schemaSpecifierCase_ = 4; return this; } /** *
     * *
     * 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; */ public Builder setSchemaId( org.finos.tracdap.metadata.TagSelector.Builder builderForValue) { if (schemaIdBuilder_ == null) { schemaSpecifier_ = builderForValue.build(); onChanged(); } else { schemaIdBuilder_.setMessage(builderForValue.build()); } schemaSpecifierCase_ = 4; return this; } /** *
     * *
     * 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; */ public Builder mergeSchemaId(org.finos.tracdap.metadata.TagSelector value) { if (schemaIdBuilder_ == null) { if (schemaSpecifierCase_ == 4 && schemaSpecifier_ != org.finos.tracdap.metadata.TagSelector.getDefaultInstance()) { schemaSpecifier_ = org.finos.tracdap.metadata.TagSelector.newBuilder((org.finos.tracdap.metadata.TagSelector) schemaSpecifier_) .mergeFrom(value).buildPartial(); } else { schemaSpecifier_ = value; } onChanged(); } else { if (schemaSpecifierCase_ == 4) { schemaIdBuilder_.mergeFrom(value); } else { schemaIdBuilder_.setMessage(value); } } schemaSpecifierCase_ = 4; return this; } /** *
     * *
     * 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; */ public Builder clearSchemaId() { if (schemaIdBuilder_ == null) { if (schemaSpecifierCase_ == 4) { schemaSpecifierCase_ = 0; schemaSpecifier_ = null; onChanged(); } } else { if (schemaSpecifierCase_ == 4) { schemaSpecifierCase_ = 0; schemaSpecifier_ = null; } schemaIdBuilder_.clear(); } return this; } /** *
     * *
     * 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; */ public org.finos.tracdap.metadata.TagSelector.Builder getSchemaIdBuilder() { return getSchemaIdFieldBuilder().getBuilder(); } /** *
     * *
     * 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; */ @java.lang.Override public org.finos.tracdap.metadata.TagSelectorOrBuilder getSchemaIdOrBuilder() { if ((schemaSpecifierCase_ == 4) && (schemaIdBuilder_ != null)) { return schemaIdBuilder_.getMessageOrBuilder(); } else { if (schemaSpecifierCase_ == 4) { return (org.finos.tracdap.metadata.TagSelector) schemaSpecifier_; } return org.finos.tracdap.metadata.TagSelector.getDefaultInstance(); } } /** *
     * *
     * 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; */ private com.google.protobuf.SingleFieldBuilder< org.finos.tracdap.metadata.TagSelector, org.finos.tracdap.metadata.TagSelector.Builder, org.finos.tracdap.metadata.TagSelectorOrBuilder> getSchemaIdFieldBuilder() { if (schemaIdBuilder_ == null) { if (!(schemaSpecifierCase_ == 4)) { schemaSpecifier_ = org.finos.tracdap.metadata.TagSelector.getDefaultInstance(); } schemaIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.finos.tracdap.metadata.TagSelector, org.finos.tracdap.metadata.TagSelector.Builder, org.finos.tracdap.metadata.TagSelectorOrBuilder>( (org.finos.tracdap.metadata.TagSelector) schemaSpecifier_, getParentForChildren(), isClean()); schemaSpecifier_ = null; } schemaSpecifierCase_ = 4; onChanged(); return schemaIdBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.finos.tracdap.metadata.SchemaDefinition, org.finos.tracdap.metadata.SchemaDefinition.Builder, org.finos.tracdap.metadata.SchemaDefinitionOrBuilder> schemaBuilder_; /** *
     * *
     * 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; * @return Whether the schema field is set. */ @java.lang.Override public boolean hasSchema() { return schemaSpecifierCase_ == 5; } /** *
     * *
     * 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; * @return The schema. */ @java.lang.Override public org.finos.tracdap.metadata.SchemaDefinition getSchema() { if (schemaBuilder_ == null) { if (schemaSpecifierCase_ == 5) { return (org.finos.tracdap.metadata.SchemaDefinition) schemaSpecifier_; } return org.finos.tracdap.metadata.SchemaDefinition.getDefaultInstance(); } else { if (schemaSpecifierCase_ == 5) { return schemaBuilder_.getMessage(); } return org.finos.tracdap.metadata.SchemaDefinition.getDefaultInstance(); } } /** *
     * *
     * 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; */ public Builder setSchema(org.finos.tracdap.metadata.SchemaDefinition value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaSpecifier_ = value; onChanged(); } else { schemaBuilder_.setMessage(value); } schemaSpecifierCase_ = 5; return this; } /** *
     * *
     * 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; */ public Builder setSchema( org.finos.tracdap.metadata.SchemaDefinition.Builder builderForValue) { if (schemaBuilder_ == null) { schemaSpecifier_ = builderForValue.build(); onChanged(); } else { schemaBuilder_.setMessage(builderForValue.build()); } schemaSpecifierCase_ = 5; return this; } /** *
     * *
     * 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; */ public Builder mergeSchema(org.finos.tracdap.metadata.SchemaDefinition value) { if (schemaBuilder_ == null) { if (schemaSpecifierCase_ == 5 && schemaSpecifier_ != org.finos.tracdap.metadata.SchemaDefinition.getDefaultInstance()) { schemaSpecifier_ = org.finos.tracdap.metadata.SchemaDefinition.newBuilder((org.finos.tracdap.metadata.SchemaDefinition) schemaSpecifier_) .mergeFrom(value).buildPartial(); } else { schemaSpecifier_ = value; } onChanged(); } else { if (schemaSpecifierCase_ == 5) { schemaBuilder_.mergeFrom(value); } else { schemaBuilder_.setMessage(value); } } schemaSpecifierCase_ = 5; return this; } /** *
     * *
     * 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; */ public Builder clearSchema() { if (schemaBuilder_ == null) { if (schemaSpecifierCase_ == 5) { schemaSpecifierCase_ = 0; schemaSpecifier_ = null; onChanged(); } } else { if (schemaSpecifierCase_ == 5) { schemaSpecifierCase_ = 0; schemaSpecifier_ = null; } schemaBuilder_.clear(); } return this; } /** *
     * *
     * 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; */ public org.finos.tracdap.metadata.SchemaDefinition.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } /** *
     * *
     * 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; */ @java.lang.Override public org.finos.tracdap.metadata.SchemaDefinitionOrBuilder getSchemaOrBuilder() { if ((schemaSpecifierCase_ == 5) && (schemaBuilder_ != null)) { return schemaBuilder_.getMessageOrBuilder(); } else { if (schemaSpecifierCase_ == 5) { return (org.finos.tracdap.metadata.SchemaDefinition) schemaSpecifier_; } return org.finos.tracdap.metadata.SchemaDefinition.getDefaultInstance(); } } /** *
     * *
     * 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; */ private com.google.protobuf.SingleFieldBuilder< org.finos.tracdap.metadata.SchemaDefinition, org.finos.tracdap.metadata.SchemaDefinition.Builder, org.finos.tracdap.metadata.SchemaDefinitionOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { if (!(schemaSpecifierCase_ == 5)) { schemaSpecifier_ = org.finos.tracdap.metadata.SchemaDefinition.getDefaultInstance(); } schemaBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.finos.tracdap.metadata.SchemaDefinition, org.finos.tracdap.metadata.SchemaDefinition.Builder, org.finos.tracdap.metadata.SchemaDefinitionOrBuilder>( (org.finos.tracdap.metadata.SchemaDefinition) schemaSpecifier_, getParentForChildren(), isClean()); schemaSpecifier_ = null; } schemaSpecifierCase_ = 5; onChanged(); return schemaBuilder_; } private java.lang.Object format_ = ""; /** *
     * *
     * 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; * @return The format. */ public java.lang.String getFormat() { java.lang.Object ref = format_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); format_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * *
     * 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; * @return The bytes for format. */ public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); format_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * *
     * 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; * @param value The format to set. * @return This builder for chaining. */ public Builder setFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } format_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * *
     * 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; * @return This builder for chaining. */ public Builder clearFormat() { format_ = getDefaultInstance().getFormat(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * *
     * 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; * @param value The bytes for format to set. * @return This builder for chaining. */ public Builder setFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); format_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** *
     * *
     * 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; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** *
     * *
     * 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; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } content_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * *
     * 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; * @return This builder for chaining. */ public Builder clearContent() { bitField0_ = (bitField0_ & ~0x00000040); content_ = getDefaultInstance().getContent(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:tracdap.api.DataWriteRequest) } // @@protoc_insertion_point(class_scope:tracdap.api.DataWriteRequest) private static final org.finos.tracdap.api.DataWriteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.finos.tracdap.api.DataWriteRequest(); } public static org.finos.tracdap.api.DataWriteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataWriteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.finos.tracdap.api.DataWriteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy