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

org.finos.tracdap.api.ListResourcesResponse 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 object for the listResources() API call.
 *
 * @see TracMetadataApi.listResources
 * 
* * Protobuf type {@code tracdap.api.ListResourcesResponse} */ public final class ListResourcesResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tracdap.api.ListResourcesResponse) ListResourcesResponseOrBuilder { 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= */ "", ListResourcesResponse.class.getName()); } // Use ListResourcesResponse.newBuilder() to construct. private ListResourcesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ListResourcesResponse() { resources_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_ListResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_ListResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.ListResourcesResponse.class, org.finos.tracdap.api.ListResourcesResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List resources_; /** *
   * / List of resource info objects for accessible resources of the requested type.
   * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ @java.lang.Override public java.util.List getResourcesList() { return resources_; } /** *
   * / List of resource info objects for accessible resources of the requested type.
   * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ @java.lang.Override public java.util.List getResourcesOrBuilderList() { return resources_; } /** *
   * / List of resource info objects for accessible resources of the requested type.
   * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ @java.lang.Override public int getResourcesCount() { return resources_.size(); } /** *
   * / List of resource info objects for accessible resources of the requested type.
   * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ @java.lang.Override public org.finos.tracdap.api.ResourceInfoResponse getResources(int index) { return resources_.get(index); } /** *
   * / List of resource info objects for accessible resources of the requested type.
   * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ @java.lang.Override public org.finos.tracdap.api.ResourceInfoResponseOrBuilder getResourcesOrBuilder( int index) { return resources_.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 < resources_.size(); i++) { output.writeMessage(1, resources_.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 < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, resources_.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.ListResourcesResponse)) { return super.equals(obj); } org.finos.tracdap.api.ListResourcesResponse other = (org.finos.tracdap.api.ListResourcesResponse) obj; if (!getResourcesList() .equals(other.getResourcesList())) 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 (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.finos.tracdap.api.ListResourcesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.ListResourcesResponse 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.ListResourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.ListResourcesResponse 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.ListResourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.ListResourcesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.ListResourcesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.ListResourcesResponse 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.ListResourcesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.finos.tracdap.api.ListResourcesResponse 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.ListResourcesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.ListResourcesResponse 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.ListResourcesResponse 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 object for the listResources() API call.
   *
   * @see TracMetadataApi.listResources
   * 
* * Protobuf type {@code tracdap.api.ListResourcesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tracdap.api.ListResourcesResponse) org.finos.tracdap.api.ListResourcesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_ListResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_ListResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.ListResourcesResponse.class, org.finos.tracdap.api.ListResourcesResponse.Builder.class); } // Construct using org.finos.tracdap.api.ListResourcesResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); } else { resources_ = null; resourcesBuilder_.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_ListResourcesResponse_descriptor; } @java.lang.Override public org.finos.tracdap.api.ListResourcesResponse getDefaultInstanceForType() { return org.finos.tracdap.api.ListResourcesResponse.getDefaultInstance(); } @java.lang.Override public org.finos.tracdap.api.ListResourcesResponse build() { org.finos.tracdap.api.ListResourcesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.finos.tracdap.api.ListResourcesResponse buildPartial() { org.finos.tracdap.api.ListResourcesResponse result = new org.finos.tracdap.api.ListResourcesResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.finos.tracdap.api.ListResourcesResponse result) { if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } } private void buildPartial0(org.finos.tracdap.api.ListResourcesResponse result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.finos.tracdap.api.ListResourcesResponse) { return mergeFrom((org.finos.tracdap.api.ListResourcesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.finos.tracdap.api.ListResourcesResponse other) { if (other == org.finos.tracdap.api.ListResourcesResponse.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } 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.api.ResourceInfoResponse m = input.readMessage( org.finos.tracdap.api.ResourceInfoResponse.parser(), extensionRegistry); if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(m); } else { resourcesBuilder_.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 resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.api.ResourceInfoResponse, org.finos.tracdap.api.ResourceInfoResponse.Builder, org.finos.tracdap.api.ResourceInfoResponseOrBuilder> resourcesBuilder_; /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public org.finos.tracdap.api.ResourceInfoResponse getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public Builder setResources( int index, org.finos.tracdap.api.ResourceInfoResponse value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public Builder setResources( int index, org.finos.tracdap.api.ResourceInfoResponse.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public Builder addResources(org.finos.tracdap.api.ResourceInfoResponse value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public Builder addResources( int index, org.finos.tracdap.api.ResourceInfoResponse value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public Builder addResources( org.finos.tracdap.api.ResourceInfoResponse.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public Builder addResources( int index, org.finos.tracdap.api.ResourceInfoResponse.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public org.finos.tracdap.api.ResourceInfoResponse.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public org.finos.tracdap.api.ResourceInfoResponseOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public org.finos.tracdap.api.ResourceInfoResponse.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( org.finos.tracdap.api.ResourceInfoResponse.getDefaultInstance()); } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public org.finos.tracdap.api.ResourceInfoResponse.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, org.finos.tracdap.api.ResourceInfoResponse.getDefaultInstance()); } /** *
     * / List of resource info objects for accessible resources of the requested type.
     * 
* * repeated .tracdap.api.ResourceInfoResponse resources = 1; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.api.ResourceInfoResponse, org.finos.tracdap.api.ResourceInfoResponse.Builder, org.finos.tracdap.api.ResourceInfoResponseOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.api.ResourceInfoResponse, org.finos.tracdap.api.ResourceInfoResponse.Builder, org.finos.tracdap.api.ResourceInfoResponseOrBuilder>( resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } // @@protoc_insertion_point(builder_scope:tracdap.api.ListResourcesResponse) } // @@protoc_insertion_point(class_scope:tracdap.api.ListResourcesResponse) private static final org.finos.tracdap.api.ListResourcesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.finos.tracdap.api.ListResourcesResponse(); } public static org.finos.tracdap.api.ListResourcesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListResourcesResponse 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.ListResourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy