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

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

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

package org.finos.tracdap.api;

/**
 * 
 * *
 * Response to a search against the TRAC metadata store.
 *
 * @see TracMetadataApi
 * 
* * Protobuf type {@code tracdap.api.MetadataSearchResponse} */ public final class MetadataSearchResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tracdap.api.MetadataSearchResponse) MetadataSearchResponseOrBuilder { 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= */ "", MetadataSearchResponse.class.getName()); } // Use MetadataSearchResponse.newBuilder() to construct. private MetadataSearchResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MetadataSearchResponse() { searchResult_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataSearchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataSearchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.MetadataSearchResponse.class, org.finos.tracdap.api.MetadataSearchResponse.Builder.class); } public static final int SEARCHRESULT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List searchResult_; /** * repeated .tracdap.metadata.Tag searchResult = 1; */ @java.lang.Override public java.util.List getSearchResultList() { return searchResult_; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ @java.lang.Override public java.util.List getSearchResultOrBuilderList() { return searchResult_; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ @java.lang.Override public int getSearchResultCount() { return searchResult_.size(); } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ @java.lang.Override public org.finos.tracdap.metadata.Tag getSearchResult(int index) { return searchResult_.get(index); } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ @java.lang.Override public org.finos.tracdap.metadata.TagOrBuilder getSearchResultOrBuilder( int index) { return searchResult_.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 < searchResult_.size(); i++) { output.writeMessage(1, searchResult_.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 < searchResult_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, searchResult_.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.MetadataSearchResponse)) { return super.equals(obj); } org.finos.tracdap.api.MetadataSearchResponse other = (org.finos.tracdap.api.MetadataSearchResponse) obj; if (!getSearchResultList() .equals(other.getSearchResultList())) 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 (getSearchResultCount() > 0) { hash = (37 * hash) + SEARCHRESULT_FIELD_NUMBER; hash = (53 * hash) + getSearchResultList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.finos.tracdap.api.MetadataSearchResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.MetadataSearchResponse 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.MetadataSearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.MetadataSearchResponse 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.MetadataSearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.MetadataSearchResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.MetadataSearchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.MetadataSearchResponse 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.MetadataSearchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.finos.tracdap.api.MetadataSearchResponse 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.MetadataSearchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.MetadataSearchResponse 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.MetadataSearchResponse 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; } /** *
   * *
   * Response to a search against the TRAC metadata store.
   *
   * @see TracMetadataApi
   * 
* * Protobuf type {@code tracdap.api.MetadataSearchResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tracdap.api.MetadataSearchResponse) org.finos.tracdap.api.MetadataSearchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataSearchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_MetadataSearchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.MetadataSearchResponse.class, org.finos.tracdap.api.MetadataSearchResponse.Builder.class); } // Construct using org.finos.tracdap.api.MetadataSearchResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (searchResultBuilder_ == null) { searchResult_ = java.util.Collections.emptyList(); } else { searchResult_ = null; searchResultBuilder_.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_MetadataSearchResponse_descriptor; } @java.lang.Override public org.finos.tracdap.api.MetadataSearchResponse getDefaultInstanceForType() { return org.finos.tracdap.api.MetadataSearchResponse.getDefaultInstance(); } @java.lang.Override public org.finos.tracdap.api.MetadataSearchResponse build() { org.finos.tracdap.api.MetadataSearchResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.finos.tracdap.api.MetadataSearchResponse buildPartial() { org.finos.tracdap.api.MetadataSearchResponse result = new org.finos.tracdap.api.MetadataSearchResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.finos.tracdap.api.MetadataSearchResponse result) { if (searchResultBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { searchResult_ = java.util.Collections.unmodifiableList(searchResult_); bitField0_ = (bitField0_ & ~0x00000001); } result.searchResult_ = searchResult_; } else { result.searchResult_ = searchResultBuilder_.build(); } } private void buildPartial0(org.finos.tracdap.api.MetadataSearchResponse result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.finos.tracdap.api.MetadataSearchResponse) { return mergeFrom((org.finos.tracdap.api.MetadataSearchResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.finos.tracdap.api.MetadataSearchResponse other) { if (other == org.finos.tracdap.api.MetadataSearchResponse.getDefaultInstance()) return this; if (searchResultBuilder_ == null) { if (!other.searchResult_.isEmpty()) { if (searchResult_.isEmpty()) { searchResult_ = other.searchResult_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSearchResultIsMutable(); searchResult_.addAll(other.searchResult_); } onChanged(); } } else { if (!other.searchResult_.isEmpty()) { if (searchResultBuilder_.isEmpty()) { searchResultBuilder_.dispose(); searchResultBuilder_ = null; searchResult_ = other.searchResult_; bitField0_ = (bitField0_ & ~0x00000001); searchResultBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSearchResultFieldBuilder() : null; } else { searchResultBuilder_.addAllMessages(other.searchResult_); } } } 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 (searchResultBuilder_ == null) { ensureSearchResultIsMutable(); searchResult_.add(m); } else { searchResultBuilder_.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 searchResult_ = java.util.Collections.emptyList(); private void ensureSearchResultIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { searchResult_ = new java.util.ArrayList(searchResult_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.metadata.Tag, org.finos.tracdap.metadata.Tag.Builder, org.finos.tracdap.metadata.TagOrBuilder> searchResultBuilder_; /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public java.util.List getSearchResultList() { if (searchResultBuilder_ == null) { return java.util.Collections.unmodifiableList(searchResult_); } else { return searchResultBuilder_.getMessageList(); } } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public int getSearchResultCount() { if (searchResultBuilder_ == null) { return searchResult_.size(); } else { return searchResultBuilder_.getCount(); } } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public org.finos.tracdap.metadata.Tag getSearchResult(int index) { if (searchResultBuilder_ == null) { return searchResult_.get(index); } else { return searchResultBuilder_.getMessage(index); } } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public Builder setSearchResult( int index, org.finos.tracdap.metadata.Tag value) { if (searchResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSearchResultIsMutable(); searchResult_.set(index, value); onChanged(); } else { searchResultBuilder_.setMessage(index, value); } return this; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public Builder setSearchResult( int index, org.finos.tracdap.metadata.Tag.Builder builderForValue) { if (searchResultBuilder_ == null) { ensureSearchResultIsMutable(); searchResult_.set(index, builderForValue.build()); onChanged(); } else { searchResultBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public Builder addSearchResult(org.finos.tracdap.metadata.Tag value) { if (searchResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSearchResultIsMutable(); searchResult_.add(value); onChanged(); } else { searchResultBuilder_.addMessage(value); } return this; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public Builder addSearchResult( int index, org.finos.tracdap.metadata.Tag value) { if (searchResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSearchResultIsMutable(); searchResult_.add(index, value); onChanged(); } else { searchResultBuilder_.addMessage(index, value); } return this; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public Builder addSearchResult( org.finos.tracdap.metadata.Tag.Builder builderForValue) { if (searchResultBuilder_ == null) { ensureSearchResultIsMutable(); searchResult_.add(builderForValue.build()); onChanged(); } else { searchResultBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public Builder addSearchResult( int index, org.finos.tracdap.metadata.Tag.Builder builderForValue) { if (searchResultBuilder_ == null) { ensureSearchResultIsMutable(); searchResult_.add(index, builderForValue.build()); onChanged(); } else { searchResultBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public Builder addAllSearchResult( java.lang.Iterable values) { if (searchResultBuilder_ == null) { ensureSearchResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, searchResult_); onChanged(); } else { searchResultBuilder_.addAllMessages(values); } return this; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public Builder clearSearchResult() { if (searchResultBuilder_ == null) { searchResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { searchResultBuilder_.clear(); } return this; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public Builder removeSearchResult(int index) { if (searchResultBuilder_ == null) { ensureSearchResultIsMutable(); searchResult_.remove(index); onChanged(); } else { searchResultBuilder_.remove(index); } return this; } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public org.finos.tracdap.metadata.Tag.Builder getSearchResultBuilder( int index) { return getSearchResultFieldBuilder().getBuilder(index); } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public org.finos.tracdap.metadata.TagOrBuilder getSearchResultOrBuilder( int index) { if (searchResultBuilder_ == null) { return searchResult_.get(index); } else { return searchResultBuilder_.getMessageOrBuilder(index); } } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public java.util.List getSearchResultOrBuilderList() { if (searchResultBuilder_ != null) { return searchResultBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(searchResult_); } } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public org.finos.tracdap.metadata.Tag.Builder addSearchResultBuilder() { return getSearchResultFieldBuilder().addBuilder( org.finos.tracdap.metadata.Tag.getDefaultInstance()); } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public org.finos.tracdap.metadata.Tag.Builder addSearchResultBuilder( int index) { return getSearchResultFieldBuilder().addBuilder( index, org.finos.tracdap.metadata.Tag.getDefaultInstance()); } /** * repeated .tracdap.metadata.Tag searchResult = 1; */ public java.util.List getSearchResultBuilderList() { return getSearchResultFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.metadata.Tag, org.finos.tracdap.metadata.Tag.Builder, org.finos.tracdap.metadata.TagOrBuilder> getSearchResultFieldBuilder() { if (searchResultBuilder_ == null) { searchResultBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.metadata.Tag, org.finos.tracdap.metadata.Tag.Builder, org.finos.tracdap.metadata.TagOrBuilder>( searchResult_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); searchResult_ = null; } return searchResultBuilder_; } // @@protoc_insertion_point(builder_scope:tracdap.api.MetadataSearchResponse) } // @@protoc_insertion_point(class_scope:tracdap.api.MetadataSearchResponse) private static final org.finos.tracdap.api.MetadataSearchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.finos.tracdap.api.MetadataSearchResponse(); } public static org.finos.tracdap.api.MetadataSearchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetadataSearchResponse 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.MetadataSearchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy