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

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

Go to download

TRAC D.A.P. platform API, contains service API definitions for the TRAC platform services

There is a newer version: 0.6.3
Show newest version
// 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;

/**
 * 
 **
 * Response to reading a batch of objects from the TRAC metadata store.
 *
 * @see TracMetadataApi
 * 
* * Protobuf type {@code tracdap.api.MetadataBatchResponse} */ public final class MetadataBatchResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tracdap.api.MetadataBatchResponse) MetadataBatchResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MetadataBatchResponse.newBuilder() to construct. private MetadataBatchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetadataBatchResponse() { tag_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetadataBatchResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataBatchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataBatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.MetadataBatchResponse.class, org.finos.tracdap.api.MetadataBatchResponse.Builder.class); } public static final int TAG_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List tag_; /** * repeated .tracdap.metadata.Tag tag = 1; */ @java.lang.Override public java.util.List getTagList() { return tag_; } /** * repeated .tracdap.metadata.Tag tag = 1; */ @java.lang.Override public java.util.List getTagOrBuilderList() { return tag_; } /** * repeated .tracdap.metadata.Tag tag = 1; */ @java.lang.Override public int getTagCount() { return tag_.size(); } /** * repeated .tracdap.metadata.Tag tag = 1; */ @java.lang.Override public org.finos.tracdap.metadata.Tag getTag(int index) { return tag_.get(index); } /** * repeated .tracdap.metadata.Tag tag = 1; */ @java.lang.Override public org.finos.tracdap.metadata.TagOrBuilder getTagOrBuilder( int index) { return tag_.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 { for (int i = 0; i < tag_.size(); i++) { output.writeMessage(1, tag_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < tag_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, tag_.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.MetadataBatchResponse)) { return super.equals(obj); } org.finos.tracdap.api.MetadataBatchResponse other = (org.finos.tracdap.api.MetadataBatchResponse) obj; if (!getTagList() .equals(other.getTagList())) 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(); if (getTagCount() > 0) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTagList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.finos.tracdap.api.MetadataBatchResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.MetadataBatchResponse 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.MetadataBatchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.MetadataBatchResponse 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.MetadataBatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.MetadataBatchResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.MetadataBatchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.MetadataBatchResponse 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.MetadataBatchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.finos.tracdap.api.MetadataBatchResponse 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.MetadataBatchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.MetadataBatchResponse 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.MetadataBatchResponse 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; } /** *
   **
   * Response to reading a batch of objects from the TRAC metadata store.
   *
   * @see TracMetadataApi
   * 
* * Protobuf type {@code tracdap.api.MetadataBatchResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tracdap.api.MetadataBatchResponse) org.finos.tracdap.api.MetadataBatchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataBatchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataBatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.MetadataBatchResponse.class, org.finos.tracdap.api.MetadataBatchResponse.Builder.class); } // Construct using org.finos.tracdap.api.MetadataBatchResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tagBuilder_ == null) { tag_ = java.util.Collections.emptyList(); } else { tag_ = null; tagBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataBatchResponse_descriptor; } @java.lang.Override public org.finos.tracdap.api.MetadataBatchResponse getDefaultInstanceForType() { return org.finos.tracdap.api.MetadataBatchResponse.getDefaultInstance(); } @java.lang.Override public org.finos.tracdap.api.MetadataBatchResponse build() { org.finos.tracdap.api.MetadataBatchResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.finos.tracdap.api.MetadataBatchResponse buildPartial() { org.finos.tracdap.api.MetadataBatchResponse result = new org.finos.tracdap.api.MetadataBatchResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.finos.tracdap.api.MetadataBatchResponse result) { if (tagBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tag_ = java.util.Collections.unmodifiableList(tag_); bitField0_ = (bitField0_ & ~0x00000001); } result.tag_ = tag_; } else { result.tag_ = tagBuilder_.build(); } } private void buildPartial0(org.finos.tracdap.api.MetadataBatchResponse result) { int from_bitField0_ = 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.MetadataBatchResponse) { return mergeFrom((org.finos.tracdap.api.MetadataBatchResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.finos.tracdap.api.MetadataBatchResponse other) { if (other == org.finos.tracdap.api.MetadataBatchResponse.getDefaultInstance()) return this; if (tagBuilder_ == null) { if (!other.tag_.isEmpty()) { if (tag_.isEmpty()) { tag_ = other.tag_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTagIsMutable(); tag_.addAll(other.tag_); } onChanged(); } } else { if (!other.tag_.isEmpty()) { if (tagBuilder_.isEmpty()) { tagBuilder_.dispose(); tagBuilder_ = null; tag_ = other.tag_; bitField0_ = (bitField0_ & ~0x00000001); tagBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTagFieldBuilder() : null; } else { tagBuilder_.addAllMessages(other.tag_); } } } 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: { org.finos.tracdap.metadata.Tag m = input.readMessage( org.finos.tracdap.metadata.Tag.parser(), extensionRegistry); if (tagBuilder_ == null) { ensureTagIsMutable(); tag_.add(m); } else { tagBuilder_.addMessage(m); } break; } // case 10 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.util.List tag_ = java.util.Collections.emptyList(); private void ensureTagIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tag_ = new java.util.ArrayList(tag_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.finos.tracdap.metadata.Tag, org.finos.tracdap.metadata.Tag.Builder, org.finos.tracdap.metadata.TagOrBuilder> tagBuilder_; /** * repeated .tracdap.metadata.Tag tag = 1; */ public java.util.List getTagList() { if (tagBuilder_ == null) { return java.util.Collections.unmodifiableList(tag_); } else { return tagBuilder_.getMessageList(); } } /** * repeated .tracdap.metadata.Tag tag = 1; */ public int getTagCount() { if (tagBuilder_ == null) { return tag_.size(); } else { return tagBuilder_.getCount(); } } /** * repeated .tracdap.metadata.Tag tag = 1; */ public org.finos.tracdap.metadata.Tag getTag(int index) { if (tagBuilder_ == null) { return tag_.get(index); } else { return tagBuilder_.getMessage(index); } } /** * repeated .tracdap.metadata.Tag tag = 1; */ public Builder setTag( int index, org.finos.tracdap.metadata.Tag value) { if (tagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagIsMutable(); tag_.set(index, value); onChanged(); } else { tagBuilder_.setMessage(index, value); } return this; } /** * repeated .tracdap.metadata.Tag tag = 1; */ public Builder setTag( int index, org.finos.tracdap.metadata.Tag.Builder builderForValue) { if (tagBuilder_ == null) { ensureTagIsMutable(); tag_.set(index, builderForValue.build()); onChanged(); } else { tagBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tracdap.metadata.Tag tag = 1; */ public Builder addTag(org.finos.tracdap.metadata.Tag value) { if (tagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagIsMutable(); tag_.add(value); onChanged(); } else { tagBuilder_.addMessage(value); } return this; } /** * repeated .tracdap.metadata.Tag tag = 1; */ public Builder addTag( int index, org.finos.tracdap.metadata.Tag value) { if (tagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagIsMutable(); tag_.add(index, value); onChanged(); } else { tagBuilder_.addMessage(index, value); } return this; } /** * repeated .tracdap.metadata.Tag tag = 1; */ public Builder addTag( org.finos.tracdap.metadata.Tag.Builder builderForValue) { if (tagBuilder_ == null) { ensureTagIsMutable(); tag_.add(builderForValue.build()); onChanged(); } else { tagBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tracdap.metadata.Tag tag = 1; */ public Builder addTag( int index, org.finos.tracdap.metadata.Tag.Builder builderForValue) { if (tagBuilder_ == null) { ensureTagIsMutable(); tag_.add(index, builderForValue.build()); onChanged(); } else { tagBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tracdap.metadata.Tag tag = 1; */ public Builder addAllTag( java.lang.Iterable values) { if (tagBuilder_ == null) { ensureTagIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tag_); onChanged(); } else { tagBuilder_.addAllMessages(values); } return this; } /** * repeated .tracdap.metadata.Tag tag = 1; */ public Builder clearTag() { if (tagBuilder_ == null) { tag_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tagBuilder_.clear(); } return this; } /** * repeated .tracdap.metadata.Tag tag = 1; */ public Builder removeTag(int index) { if (tagBuilder_ == null) { ensureTagIsMutable(); tag_.remove(index); onChanged(); } else { tagBuilder_.remove(index); } return this; } /** * repeated .tracdap.metadata.Tag tag = 1; */ public org.finos.tracdap.metadata.Tag.Builder getTagBuilder( int index) { return getTagFieldBuilder().getBuilder(index); } /** * repeated .tracdap.metadata.Tag tag = 1; */ public org.finos.tracdap.metadata.TagOrBuilder getTagOrBuilder( int index) { if (tagBuilder_ == null) { return tag_.get(index); } else { return tagBuilder_.getMessageOrBuilder(index); } } /** * repeated .tracdap.metadata.Tag tag = 1; */ public java.util.List getTagOrBuilderList() { if (tagBuilder_ != null) { return tagBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tag_); } } /** * repeated .tracdap.metadata.Tag tag = 1; */ public org.finos.tracdap.metadata.Tag.Builder addTagBuilder() { return getTagFieldBuilder().addBuilder( org.finos.tracdap.metadata.Tag.getDefaultInstance()); } /** * repeated .tracdap.metadata.Tag tag = 1; */ public org.finos.tracdap.metadata.Tag.Builder addTagBuilder( int index) { return getTagFieldBuilder().addBuilder( index, org.finos.tracdap.metadata.Tag.getDefaultInstance()); } /** * repeated .tracdap.metadata.Tag tag = 1; */ public java.util.List getTagBuilderList() { return getTagFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.finos.tracdap.metadata.Tag, org.finos.tracdap.metadata.Tag.Builder, org.finos.tracdap.metadata.TagOrBuilder> getTagFieldBuilder() { if (tagBuilder_ == null) { tagBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.finos.tracdap.metadata.Tag, org.finos.tracdap.metadata.Tag.Builder, org.finos.tracdap.metadata.TagOrBuilder>( tag_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tag_ = null; } return tagBuilder_; } @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.MetadataBatchResponse) } // @@protoc_insertion_point(class_scope:tracdap.api.MetadataBatchResponse) private static final org.finos.tracdap.api.MetadataBatchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.finos.tracdap.api.MetadataBatchResponse(); } public static org.finos.tracdap.api.MetadataBatchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetadataBatchResponse 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.MetadataBatchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy