org.finos.tracdap.api.MetadataWriteRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracdap-api-services Show documentation
Show all versions of tracdap-api-services Show documentation
TRAC D.A.P. platform API, contains service API definitions for the TRAC platform services
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tracdap/api/metadata.proto
// Protobuf Java Version: 3.25.3
package org.finos.tracdap.api;
/**
*
**
* Request to create or update an object in the TRAC metadata store.
*
* @see TracMetadataApi
*
*
* Protobuf type {@code tracdap.api.MetadataWriteRequest}
*/
public final class MetadataWriteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tracdap.api.MetadataWriteRequest)
MetadataWriteRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use MetadataWriteRequest.newBuilder() to construct.
private MetadataWriteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MetadataWriteRequest() {
tenant_ = "";
objectType_ = 0;
tagUpdates_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MetadataWriteRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataWriteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataWriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.api.MetadataWriteRequest.class, org.finos.tracdap.api.MetadataWriteRequest.Builder.class);
}
private int bitField0_;
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 OBJECTTYPE_FIELD_NUMBER = 2;
private int objectType_ = 0;
/**
*
**
* Object type for the requested operation, always required.
*
*
* .tracdap.metadata.ObjectType objectType = 2;
* @return The enum numeric value on the wire for objectType.
*/
@java.lang.Override public int getObjectTypeValue() {
return objectType_;
}
/**
*
**
* Object type for the requested operation, always required.
*
*
* .tracdap.metadata.ObjectType objectType = 2;
* @return The objectType.
*/
@java.lang.Override public org.finos.tracdap.metadata.ObjectType getObjectType() {
org.finos.tracdap.metadata.ObjectType result = org.finos.tracdap.metadata.ObjectType.forNumber(objectType_);
return result == null ? org.finos.tracdap.metadata.ObjectType.UNRECOGNIZED : result;
}
public static final int PRIORVERSION_FIELD_NUMBER = 3;
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 object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
* @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 object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
* @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 object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagSelectorOrBuilder getPriorVersionOrBuilder() {
return priorVersion_ == null ? org.finos.tracdap.metadata.TagSelector.getDefaultInstance() : priorVersion_;
}
public static final int DEFINITION_FIELD_NUMBER = 4;
private org.finos.tracdap.metadata.ObjectDefinition definition_;
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
* @return Whether the definition field is set.
*/
@java.lang.Override
public boolean hasDefinition() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
* @return The definition.
*/
@java.lang.Override
public org.finos.tracdap.metadata.ObjectDefinition getDefinition() {
return definition_ == null ? org.finos.tracdap.metadata.ObjectDefinition.getDefaultInstance() : definition_;
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
*/
@java.lang.Override
public org.finos.tracdap.metadata.ObjectDefinitionOrBuilder getDefinitionOrBuilder() {
return definition_ == null ? org.finos.tracdap.metadata.ObjectDefinition.getDefaultInstance() : definition_;
}
public static final int TAGUPDATES_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List tagUpdates_;
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
@java.lang.Override
public java.util.List getTagUpdatesList() {
return tagUpdates_;
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
@java.lang.Override
public java.util.List extends org.finos.tracdap.metadata.TagUpdateOrBuilder>
getTagUpdatesOrBuilderList() {
return tagUpdates_;
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
@java.lang.Override
public int getTagUpdatesCount() {
return tagUpdates_.size();
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagUpdate getTagUpdates(int index) {
return tagUpdates_.get(index);
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagUpdateOrBuilder getTagUpdatesOrBuilder(
int index) {
return tagUpdates_.get(index);
}
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.GeneratedMessageV3.isStringEmpty(tenant_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tenant_);
}
if (objectType_ != org.finos.tracdap.metadata.ObjectType.OBJECT_TYPE_NOT_SET.getNumber()) {
output.writeEnum(2, objectType_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getPriorVersion());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getDefinition());
}
for (int i = 0; i < tagUpdates_.size(); i++) {
output.writeMessage(5, tagUpdates_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tenant_);
}
if (objectType_ != org.finos.tracdap.metadata.ObjectType.OBJECT_TYPE_NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, objectType_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPriorVersion());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDefinition());
}
for (int i = 0; i < tagUpdates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, tagUpdates_.get(i));
}
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.MetadataWriteRequest)) {
return super.equals(obj);
}
org.finos.tracdap.api.MetadataWriteRequest other = (org.finos.tracdap.api.MetadataWriteRequest) obj;
if (!getTenant()
.equals(other.getTenant())) return false;
if (objectType_ != other.objectType_) return false;
if (hasPriorVersion() != other.hasPriorVersion()) return false;
if (hasPriorVersion()) {
if (!getPriorVersion()
.equals(other.getPriorVersion())) return false;
}
if (hasDefinition() != other.hasDefinition()) return false;
if (hasDefinition()) {
if (!getDefinition()
.equals(other.getDefinition())) return false;
}
if (!getTagUpdatesList()
.equals(other.getTagUpdatesList())) return false;
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();
hash = (37 * hash) + OBJECTTYPE_FIELD_NUMBER;
hash = (53 * hash) + objectType_;
if (hasPriorVersion()) {
hash = (37 * hash) + PRIORVERSION_FIELD_NUMBER;
hash = (53 * hash) + getPriorVersion().hashCode();
}
if (hasDefinition()) {
hash = (37 * hash) + DEFINITION_FIELD_NUMBER;
hash = (53 * hash) + getDefinition().hashCode();
}
if (getTagUpdatesCount() > 0) {
hash = (37 * hash) + TAGUPDATES_FIELD_NUMBER;
hash = (53 * hash) + getTagUpdatesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.finos.tracdap.api.MetadataWriteRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.MetadataWriteRequest 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.MetadataWriteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.MetadataWriteRequest 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.MetadataWriteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.MetadataWriteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.api.MetadataWriteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.MetadataWriteRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.finos.tracdap.api.MetadataWriteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.MetadataWriteRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.finos.tracdap.api.MetadataWriteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.MetadataWriteRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.MetadataWriteRequest 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* Request to create or update an object in the TRAC metadata store.
*
* @see TracMetadataApi
*
*
* Protobuf type {@code tracdap.api.MetadataWriteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tracdap.api.MetadataWriteRequest)
org.finos.tracdap.api.MetadataWriteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataWriteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataWriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.api.MetadataWriteRequest.class, org.finos.tracdap.api.MetadataWriteRequest.Builder.class);
}
// Construct using org.finos.tracdap.api.MetadataWriteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPriorVersionFieldBuilder();
getDefinitionFieldBuilder();
getTagUpdatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
tenant_ = "";
objectType_ = 0;
priorVersion_ = null;
if (priorVersionBuilder_ != null) {
priorVersionBuilder_.dispose();
priorVersionBuilder_ = null;
}
definition_ = null;
if (definitionBuilder_ != null) {
definitionBuilder_.dispose();
definitionBuilder_ = null;
}
if (tagUpdatesBuilder_ == null) {
tagUpdates_ = java.util.Collections.emptyList();
} else {
tagUpdates_ = null;
tagUpdatesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataWriteRequest_descriptor;
}
@java.lang.Override
public org.finos.tracdap.api.MetadataWriteRequest getDefaultInstanceForType() {
return org.finos.tracdap.api.MetadataWriteRequest.getDefaultInstance();
}
@java.lang.Override
public org.finos.tracdap.api.MetadataWriteRequest build() {
org.finos.tracdap.api.MetadataWriteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.finos.tracdap.api.MetadataWriteRequest buildPartial() {
org.finos.tracdap.api.MetadataWriteRequest result = new org.finos.tracdap.api.MetadataWriteRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.finos.tracdap.api.MetadataWriteRequest result) {
if (tagUpdatesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
tagUpdates_ = java.util.Collections.unmodifiableList(tagUpdates_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.tagUpdates_ = tagUpdates_;
} else {
result.tagUpdates_ = tagUpdatesBuilder_.build();
}
}
private void buildPartial0(org.finos.tracdap.api.MetadataWriteRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.tenant_ = tenant_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.objectType_ = objectType_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.priorVersion_ = priorVersionBuilder_ == null
? priorVersion_
: priorVersionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.definition_ = definitionBuilder_ == null
? definition_
: definitionBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.finos.tracdap.api.MetadataWriteRequest) {
return mergeFrom((org.finos.tracdap.api.MetadataWriteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.finos.tracdap.api.MetadataWriteRequest other) {
if (other == org.finos.tracdap.api.MetadataWriteRequest.getDefaultInstance()) return this;
if (!other.getTenant().isEmpty()) {
tenant_ = other.tenant_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.objectType_ != 0) {
setObjectTypeValue(other.getObjectTypeValue());
}
if (other.hasPriorVersion()) {
mergePriorVersion(other.getPriorVersion());
}
if (other.hasDefinition()) {
mergeDefinition(other.getDefinition());
}
if (tagUpdatesBuilder_ == null) {
if (!other.tagUpdates_.isEmpty()) {
if (tagUpdates_.isEmpty()) {
tagUpdates_ = other.tagUpdates_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureTagUpdatesIsMutable();
tagUpdates_.addAll(other.tagUpdates_);
}
onChanged();
}
} else {
if (!other.tagUpdates_.isEmpty()) {
if (tagUpdatesBuilder_.isEmpty()) {
tagUpdatesBuilder_.dispose();
tagUpdatesBuilder_ = null;
tagUpdates_ = other.tagUpdates_;
bitField0_ = (bitField0_ & ~0x00000010);
tagUpdatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTagUpdatesFieldBuilder() : null;
} else {
tagUpdatesBuilder_.addAllMessages(other.tagUpdates_);
}
}
}
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 16: {
objectType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getPriorVersionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getDefinitionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
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 42
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 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 int objectType_ = 0;
/**
*
**
* Object type for the requested operation, always required.
*
*
* .tracdap.metadata.ObjectType objectType = 2;
* @return The enum numeric value on the wire for objectType.
*/
@java.lang.Override public int getObjectTypeValue() {
return objectType_;
}
/**
*
**
* Object type for the requested operation, always required.
*
*
* .tracdap.metadata.ObjectType objectType = 2;
* @param value The enum numeric value on the wire for objectType to set.
* @return This builder for chaining.
*/
public Builder setObjectTypeValue(int value) {
objectType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Object type for the requested operation, always required.
*
*
* .tracdap.metadata.ObjectType objectType = 2;
* @return The objectType.
*/
@java.lang.Override
public org.finos.tracdap.metadata.ObjectType getObjectType() {
org.finos.tracdap.metadata.ObjectType result = org.finos.tracdap.metadata.ObjectType.forNumber(objectType_);
return result == null ? org.finos.tracdap.metadata.ObjectType.UNRECOGNIZED : result;
}
/**
*
**
* Object type for the requested operation, always required.
*
*
* .tracdap.metadata.ObjectType objectType = 2;
* @param value The objectType to set.
* @return This builder for chaining.
*/
public Builder setObjectType(org.finos.tracdap.metadata.ObjectType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
objectType_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* Object type for the requested operation, always required.
*
*
* .tracdap.metadata.ObjectType objectType = 2;
* @return This builder for chaining.
*/
public Builder clearObjectType() {
bitField0_ = (bitField0_ & ~0x00000002);
objectType_ = 0;
onChanged();
return this;
}
private org.finos.tracdap.metadata.TagSelector priorVersion_;
private com.google.protobuf.SingleFieldBuilderV3<
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 object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
* @return Whether the priorVersion field is set.
*/
public boolean hasPriorVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* Prior object/tag version to use for update operations.
*
* This field should be omitted when creating a new object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
* @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 object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
*/
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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Prior object/tag version to use for update operations.
*
* This field should be omitted when creating a new object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
*/
public Builder setPriorVersion(
org.finos.tracdap.metadata.TagSelector.Builder builderForValue) {
if (priorVersionBuilder_ == null) {
priorVersion_ = builderForValue.build();
} else {
priorVersionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Prior object/tag version to use for update operations.
*
* This field should be omitted when creating a new object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
*/
public Builder mergePriorVersion(org.finos.tracdap.metadata.TagSelector value) {
if (priorVersionBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
priorVersion_ != null &&
priorVersion_ != org.finos.tracdap.metadata.TagSelector.getDefaultInstance()) {
getPriorVersionBuilder().mergeFrom(value);
} else {
priorVersion_ = value;
}
} else {
priorVersionBuilder_.mergeFrom(value);
}
if (priorVersion_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* Prior object/tag version to use for update operations.
*
* This field should be omitted when creating a new object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
*/
public Builder clearPriorVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
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 object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
*/
public org.finos.tracdap.metadata.TagSelector.Builder getPriorVersionBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPriorVersionFieldBuilder().getBuilder();
}
/**
*
**
* Prior object/tag version to use for update operations.
*
* This field should be omitted when creating a new object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
*/
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 object.
*
*
* optional .tracdap.metadata.TagSelector priorVersion = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.finos.tracdap.metadata.TagSelector, org.finos.tracdap.metadata.TagSelector.Builder, org.finos.tracdap.metadata.TagSelectorOrBuilder>(
getPriorVersion(),
getParentForChildren(),
isClean());
priorVersion_ = null;
}
return priorVersionBuilder_;
}
private org.finos.tracdap.metadata.ObjectDefinition definition_;
private com.google.protobuf.SingleFieldBuilderV3<
org.finos.tracdap.metadata.ObjectDefinition, org.finos.tracdap.metadata.ObjectDefinition.Builder, org.finos.tracdap.metadata.ObjectDefinitionOrBuilder> definitionBuilder_;
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
* @return Whether the definition field is set.
*/
public boolean hasDefinition() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
* @return The definition.
*/
public org.finos.tracdap.metadata.ObjectDefinition getDefinition() {
if (definitionBuilder_ == null) {
return definition_ == null ? org.finos.tracdap.metadata.ObjectDefinition.getDefaultInstance() : definition_;
} else {
return definitionBuilder_.getMessage();
}
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
*/
public Builder setDefinition(org.finos.tracdap.metadata.ObjectDefinition value) {
if (definitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
definition_ = value;
} else {
definitionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
*/
public Builder setDefinition(
org.finos.tracdap.metadata.ObjectDefinition.Builder builderForValue) {
if (definitionBuilder_ == null) {
definition_ = builderForValue.build();
} else {
definitionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
*/
public Builder mergeDefinition(org.finos.tracdap.metadata.ObjectDefinition value) {
if (definitionBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
definition_ != null &&
definition_ != org.finos.tracdap.metadata.ObjectDefinition.getDefaultInstance()) {
getDefinitionBuilder().mergeFrom(value);
} else {
definition_ = value;
}
} else {
definitionBuilder_.mergeFrom(value);
}
if (definition_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
*/
public Builder clearDefinition() {
bitField0_ = (bitField0_ & ~0x00000008);
definition_ = null;
if (definitionBuilder_ != null) {
definitionBuilder_.dispose();
definitionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
*/
public org.finos.tracdap.metadata.ObjectDefinition.Builder getDefinitionBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getDefinitionFieldBuilder().getBuilder();
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
*/
public org.finos.tracdap.metadata.ObjectDefinitionOrBuilder getDefinitionOrBuilder() {
if (definitionBuilder_ != null) {
return definitionBuilder_.getMessageOrBuilder();
} else {
return definition_ == null ?
org.finos.tracdap.metadata.ObjectDefinition.getDefaultInstance() : definition_;
}
}
/**
*
**
* New object definition to save.
*
* A definition is required to create or update an object, for tag updates
* the definition field should be left blank.
*
* This field should be omitted for tag update operations.
*
*
* optional .tracdap.metadata.ObjectDefinition definition = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.finos.tracdap.metadata.ObjectDefinition, org.finos.tracdap.metadata.ObjectDefinition.Builder, org.finos.tracdap.metadata.ObjectDefinitionOrBuilder>
getDefinitionFieldBuilder() {
if (definitionBuilder_ == null) {
definitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.finos.tracdap.metadata.ObjectDefinition, org.finos.tracdap.metadata.ObjectDefinition.Builder, org.finos.tracdap.metadata.ObjectDefinitionOrBuilder>(
getDefinition(),
getParentForChildren(),
isClean());
definition_ = null;
}
return definitionBuilder_;
}
private java.util.List tagUpdates_ =
java.util.Collections.emptyList();
private void ensureTagUpdatesIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
tagUpdates_ = new java.util.ArrayList(tagUpdates_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.finos.tracdap.metadata.TagUpdate, org.finos.tracdap.metadata.TagUpdate.Builder, org.finos.tracdap.metadata.TagUpdateOrBuilder> tagUpdatesBuilder_;
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
public java.util.List getTagUpdatesList() {
if (tagUpdatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tagUpdates_);
} else {
return tagUpdatesBuilder_.getMessageList();
}
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
public int getTagUpdatesCount() {
if (tagUpdatesBuilder_ == null) {
return tagUpdates_.size();
} else {
return tagUpdatesBuilder_.getCount();
}
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
public Builder addAllTagUpdates(
java.lang.Iterable extends org.finos.tracdap.metadata.TagUpdate> 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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
public Builder clearTagUpdates() {
if (tagUpdatesBuilder_ == null) {
tagUpdates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
tagUpdatesBuilder_.clear();
}
return this;
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
public org.finos.tracdap.metadata.TagUpdate.Builder getTagUpdatesBuilder(
int index) {
return getTagUpdatesFieldBuilder().getBuilder(index);
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
public java.util.List extends org.finos.tracdap.metadata.TagUpdateOrBuilder>
getTagUpdatesOrBuilderList() {
if (tagUpdatesBuilder_ != null) {
return tagUpdatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tagUpdates_);
}
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
public org.finos.tracdap.metadata.TagUpdate.Builder addTagUpdatesBuilder() {
return getTagUpdatesFieldBuilder().addBuilder(
org.finos.tracdap.metadata.TagUpdate.getDefaultInstance());
}
/**
*
**
* Tag update operations to be applied.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
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.
*
* The updates are applied in order and must all succeeded in order for the
* request to be successful. If the API call fails for any reason, none of
* the requested tag updates will be applied.
*
*
* repeated .tracdap.metadata.TagUpdate tagUpdates = 5;
*/
public java.util.List
getTagUpdatesBuilderList() {
return getTagUpdatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
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.RepeatedFieldBuilderV3<
org.finos.tracdap.metadata.TagUpdate, org.finos.tracdap.metadata.TagUpdate.Builder, org.finos.tracdap.metadata.TagUpdateOrBuilder>(
tagUpdates_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
tagUpdates_ = null;
}
return tagUpdatesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tracdap.api.MetadataWriteRequest)
}
// @@protoc_insertion_point(class_scope:tracdap.api.MetadataWriteRequest)
private static final org.finos.tracdap.api.MetadataWriteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.finos.tracdap.api.MetadataWriteRequest();
}
public static org.finos.tracdap.api.MetadataWriteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MetadataWriteRequest 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.MetadataWriteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}