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

org.finos.tracdap.api.ListTenantsResponse 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 listTenants() API call.
 * 
* * Protobuf type {@code tracdap.api.ListTenantsResponse} */ public final class ListTenantsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tracdap.api.ListTenantsResponse) ListTenantsResponseOrBuilder { 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= */ "", ListTenantsResponse.class.getName()); } // Use ListTenantsResponse.newBuilder() to construct. private ListTenantsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ListTenantsResponse() { tenants_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_ListTenantsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_ListTenantsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.ListTenantsResponse.class, org.finos.tracdap.api.ListTenantsResponse.Builder.class); } public static final int TENANTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List tenants_; /** *
   * * A list of TenantInfo objects, one for each tenant the current user has access to. *
   * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ @java.lang.Override public java.util.List getTenantsList() { return tenants_; } /** *
   * * A list of TenantInfo objects, one for each tenant the current user has access to. *
   * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ @java.lang.Override public java.util.List getTenantsOrBuilderList() { return tenants_; } /** *
   * * A list of TenantInfo objects, one for each tenant the current user has access to. *
   * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ @java.lang.Override public int getTenantsCount() { return tenants_.size(); } /** *
   * * A list of TenantInfo objects, one for each tenant the current user has access to. *
   * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ @java.lang.Override public org.finos.tracdap.metadata.TenantInfo getTenants(int index) { return tenants_.get(index); } /** *
   * * A list of TenantInfo objects, one for each tenant the current user has access to. *
   * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ @java.lang.Override public org.finos.tracdap.metadata.TenantInfoOrBuilder getTenantsOrBuilder( int index) { return tenants_.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 < tenants_.size(); i++) { output.writeMessage(1, tenants_.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 < tenants_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, tenants_.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.ListTenantsResponse)) { return super.equals(obj); } org.finos.tracdap.api.ListTenantsResponse other = (org.finos.tracdap.api.ListTenantsResponse) obj; if (!getTenantsList() .equals(other.getTenantsList())) 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 (getTenantsCount() > 0) { hash = (37 * hash) + TENANTS_FIELD_NUMBER; hash = (53 * hash) + getTenantsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.finos.tracdap.api.ListTenantsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.ListTenantsResponse 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.ListTenantsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.ListTenantsResponse 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.ListTenantsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.ListTenantsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.ListTenantsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.ListTenantsResponse 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.ListTenantsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.finos.tracdap.api.ListTenantsResponse 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.ListTenantsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.ListTenantsResponse 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.ListTenantsResponse 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 listTenants() API call.
   * 
* * Protobuf type {@code tracdap.api.ListTenantsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tracdap.api.ListTenantsResponse) org.finos.tracdap.api.ListTenantsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_ListTenantsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Metadata.internal_static_tracdap_api_ListTenantsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.ListTenantsResponse.class, org.finos.tracdap.api.ListTenantsResponse.Builder.class); } // Construct using org.finos.tracdap.api.ListTenantsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tenantsBuilder_ == null) { tenants_ = java.util.Collections.emptyList(); } else { tenants_ = null; tenantsBuilder_.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_ListTenantsResponse_descriptor; } @java.lang.Override public org.finos.tracdap.api.ListTenantsResponse getDefaultInstanceForType() { return org.finos.tracdap.api.ListTenantsResponse.getDefaultInstance(); } @java.lang.Override public org.finos.tracdap.api.ListTenantsResponse build() { org.finos.tracdap.api.ListTenantsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.finos.tracdap.api.ListTenantsResponse buildPartial() { org.finos.tracdap.api.ListTenantsResponse result = new org.finos.tracdap.api.ListTenantsResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.finos.tracdap.api.ListTenantsResponse result) { if (tenantsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tenants_ = java.util.Collections.unmodifiableList(tenants_); bitField0_ = (bitField0_ & ~0x00000001); } result.tenants_ = tenants_; } else { result.tenants_ = tenantsBuilder_.build(); } } private void buildPartial0(org.finos.tracdap.api.ListTenantsResponse result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.finos.tracdap.api.ListTenantsResponse) { return mergeFrom((org.finos.tracdap.api.ListTenantsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.finos.tracdap.api.ListTenantsResponse other) { if (other == org.finos.tracdap.api.ListTenantsResponse.getDefaultInstance()) return this; if (tenantsBuilder_ == null) { if (!other.tenants_.isEmpty()) { if (tenants_.isEmpty()) { tenants_ = other.tenants_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTenantsIsMutable(); tenants_.addAll(other.tenants_); } onChanged(); } } else { if (!other.tenants_.isEmpty()) { if (tenantsBuilder_.isEmpty()) { tenantsBuilder_.dispose(); tenantsBuilder_ = null; tenants_ = other.tenants_; bitField0_ = (bitField0_ & ~0x00000001); tenantsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTenantsFieldBuilder() : null; } else { tenantsBuilder_.addAllMessages(other.tenants_); } } } 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.TenantInfo m = input.readMessage( org.finos.tracdap.metadata.TenantInfo.parser(), extensionRegistry); if (tenantsBuilder_ == null) { ensureTenantsIsMutable(); tenants_.add(m); } else { tenantsBuilder_.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 tenants_ = java.util.Collections.emptyList(); private void ensureTenantsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tenants_ = new java.util.ArrayList(tenants_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.metadata.TenantInfo, org.finos.tracdap.metadata.TenantInfo.Builder, org.finos.tracdap.metadata.TenantInfoOrBuilder> tenantsBuilder_; /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public java.util.List getTenantsList() { if (tenantsBuilder_ == null) { return java.util.Collections.unmodifiableList(tenants_); } else { return tenantsBuilder_.getMessageList(); } } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public int getTenantsCount() { if (tenantsBuilder_ == null) { return tenants_.size(); } else { return tenantsBuilder_.getCount(); } } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public org.finos.tracdap.metadata.TenantInfo getTenants(int index) { if (tenantsBuilder_ == null) { return tenants_.get(index); } else { return tenantsBuilder_.getMessage(index); } } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public Builder setTenants( int index, org.finos.tracdap.metadata.TenantInfo value) { if (tenantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTenantsIsMutable(); tenants_.set(index, value); onChanged(); } else { tenantsBuilder_.setMessage(index, value); } return this; } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public Builder setTenants( int index, org.finos.tracdap.metadata.TenantInfo.Builder builderForValue) { if (tenantsBuilder_ == null) { ensureTenantsIsMutable(); tenants_.set(index, builderForValue.build()); onChanged(); } else { tenantsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public Builder addTenants(org.finos.tracdap.metadata.TenantInfo value) { if (tenantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTenantsIsMutable(); tenants_.add(value); onChanged(); } else { tenantsBuilder_.addMessage(value); } return this; } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public Builder addTenants( int index, org.finos.tracdap.metadata.TenantInfo value) { if (tenantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTenantsIsMutable(); tenants_.add(index, value); onChanged(); } else { tenantsBuilder_.addMessage(index, value); } return this; } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public Builder addTenants( org.finos.tracdap.metadata.TenantInfo.Builder builderForValue) { if (tenantsBuilder_ == null) { ensureTenantsIsMutable(); tenants_.add(builderForValue.build()); onChanged(); } else { tenantsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public Builder addTenants( int index, org.finos.tracdap.metadata.TenantInfo.Builder builderForValue) { if (tenantsBuilder_ == null) { ensureTenantsIsMutable(); tenants_.add(index, builderForValue.build()); onChanged(); } else { tenantsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public Builder addAllTenants( java.lang.Iterable values) { if (tenantsBuilder_ == null) { ensureTenantsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tenants_); onChanged(); } else { tenantsBuilder_.addAllMessages(values); } return this; } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public Builder clearTenants() { if (tenantsBuilder_ == null) { tenants_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tenantsBuilder_.clear(); } return this; } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public Builder removeTenants(int index) { if (tenantsBuilder_ == null) { ensureTenantsIsMutable(); tenants_.remove(index); onChanged(); } else { tenantsBuilder_.remove(index); } return this; } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public org.finos.tracdap.metadata.TenantInfo.Builder getTenantsBuilder( int index) { return getTenantsFieldBuilder().getBuilder(index); } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public org.finos.tracdap.metadata.TenantInfoOrBuilder getTenantsOrBuilder( int index) { if (tenantsBuilder_ == null) { return tenants_.get(index); } else { return tenantsBuilder_.getMessageOrBuilder(index); } } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public java.util.List getTenantsOrBuilderList() { if (tenantsBuilder_ != null) { return tenantsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tenants_); } } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public org.finos.tracdap.metadata.TenantInfo.Builder addTenantsBuilder() { return getTenantsFieldBuilder().addBuilder( org.finos.tracdap.metadata.TenantInfo.getDefaultInstance()); } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public org.finos.tracdap.metadata.TenantInfo.Builder addTenantsBuilder( int index) { return getTenantsFieldBuilder().addBuilder( index, org.finos.tracdap.metadata.TenantInfo.getDefaultInstance()); } /** *
     * * A list of TenantInfo objects, one for each tenant the current user has access to. *
     * 
* * repeated .tracdap.metadata.TenantInfo tenants = 1; */ public java.util.List getTenantsBuilderList() { return getTenantsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.metadata.TenantInfo, org.finos.tracdap.metadata.TenantInfo.Builder, org.finos.tracdap.metadata.TenantInfoOrBuilder> getTenantsFieldBuilder() { if (tenantsBuilder_ == null) { tenantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.finos.tracdap.metadata.TenantInfo, org.finos.tracdap.metadata.TenantInfo.Builder, org.finos.tracdap.metadata.TenantInfoOrBuilder>( tenants_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tenants_ = null; } return tenantsBuilder_; } // @@protoc_insertion_point(builder_scope:tracdap.api.ListTenantsResponse) } // @@protoc_insertion_point(class_scope:tracdap.api.ListTenantsResponse) private static final org.finos.tracdap.api.ListTenantsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.finos.tracdap.api.ListTenantsResponse(); } public static org.finos.tracdap.api.ListTenantsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListTenantsResponse 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.ListTenantsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy