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

com.aerospike.vector.client.proto.ListUsersResponse Maven / Gradle / Ivy

Go to download

This project includes the Java client for Aerospike Vector Search for high-performance data interactions.

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: user-admin.proto

// Protobuf Java Version: 3.25.5
package com.aerospike.vector.client.proto;

/**
 * 
 * A list of users.
 * 
* * Protobuf type {@code aerospike.vector.ListUsersResponse} */ public final class ListUsersResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:aerospike.vector.ListUsersResponse) ListUsersResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListUsersResponse.newBuilder() to construct. private ListUsersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListUsersResponse() { users_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListUsersResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.proto.UserAdmin.internal_static_aerospike_vector_ListUsersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.proto.UserAdmin.internal_static_aerospike_vector_ListUsersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.proto.ListUsersResponse.class, com.aerospike.vector.client.proto.ListUsersResponse.Builder.class); } public static final int USERS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List users_; /** *
   * List of users.
   * 
* * repeated .aerospike.vector.User users = 1; */ @java.lang.Override public java.util.List getUsersList() { return users_; } /** *
   * List of users.
   * 
* * repeated .aerospike.vector.User users = 1; */ @java.lang.Override public java.util.List getUsersOrBuilderList() { return users_; } /** *
   * List of users.
   * 
* * repeated .aerospike.vector.User users = 1; */ @java.lang.Override public int getUsersCount() { return users_.size(); } /** *
   * List of users.
   * 
* * repeated .aerospike.vector.User users = 1; */ @java.lang.Override public com.aerospike.vector.client.proto.User getUsers(int index) { return users_.get(index); } /** *
   * List of users.
   * 
* * repeated .aerospike.vector.User users = 1; */ @java.lang.Override public com.aerospike.vector.client.proto.UserOrBuilder getUsersOrBuilder( int index) { return users_.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 < users_.size(); i++) { output.writeMessage(1, users_.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 < users_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, users_.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 com.aerospike.vector.client.proto.ListUsersResponse)) { return super.equals(obj); } com.aerospike.vector.client.proto.ListUsersResponse other = (com.aerospike.vector.client.proto.ListUsersResponse) obj; if (!getUsersList() .equals(other.getUsersList())) 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 (getUsersCount() > 0) { hash = (37 * hash) + USERS_FIELD_NUMBER; hash = (53 * hash) + getUsersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.aerospike.vector.client.proto.ListUsersResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.ListUsersResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aerospike.vector.client.proto.ListUsersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.ListUsersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aerospike.vector.client.proto.ListUsersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.ListUsersResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.aerospike.vector.client.proto.ListUsersResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.ListUsersResponse 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 com.aerospike.vector.client.proto.ListUsersResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.ListUsersResponse 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 com.aerospike.vector.client.proto.ListUsersResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.ListUsersResponse 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(com.aerospike.vector.client.proto.ListUsersResponse 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; } /** *
   * A list of users.
   * 
* * Protobuf type {@code aerospike.vector.ListUsersResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aerospike.vector.ListUsersResponse) com.aerospike.vector.client.proto.ListUsersResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.proto.UserAdmin.internal_static_aerospike_vector_ListUsersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.proto.UserAdmin.internal_static_aerospike_vector_ListUsersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.proto.ListUsersResponse.class, com.aerospike.vector.client.proto.ListUsersResponse.Builder.class); } // Construct using com.aerospike.vector.client.proto.ListUsersResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (usersBuilder_ == null) { users_ = java.util.Collections.emptyList(); } else { users_ = null; usersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.aerospike.vector.client.proto.UserAdmin.internal_static_aerospike_vector_ListUsersResponse_descriptor; } @java.lang.Override public com.aerospike.vector.client.proto.ListUsersResponse getDefaultInstanceForType() { return com.aerospike.vector.client.proto.ListUsersResponse.getDefaultInstance(); } @java.lang.Override public com.aerospike.vector.client.proto.ListUsersResponse build() { com.aerospike.vector.client.proto.ListUsersResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aerospike.vector.client.proto.ListUsersResponse buildPartial() { com.aerospike.vector.client.proto.ListUsersResponse result = new com.aerospike.vector.client.proto.ListUsersResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.aerospike.vector.client.proto.ListUsersResponse result) { if (usersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { users_ = java.util.Collections.unmodifiableList(users_); bitField0_ = (bitField0_ & ~0x00000001); } result.users_ = users_; } else { result.users_ = usersBuilder_.build(); } } private void buildPartial0(com.aerospike.vector.client.proto.ListUsersResponse 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 com.aerospike.vector.client.proto.ListUsersResponse) { return mergeFrom((com.aerospike.vector.client.proto.ListUsersResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aerospike.vector.client.proto.ListUsersResponse other) { if (other == com.aerospike.vector.client.proto.ListUsersResponse.getDefaultInstance()) return this; if (usersBuilder_ == null) { if (!other.users_.isEmpty()) { if (users_.isEmpty()) { users_ = other.users_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUsersIsMutable(); users_.addAll(other.users_); } onChanged(); } } else { if (!other.users_.isEmpty()) { if (usersBuilder_.isEmpty()) { usersBuilder_.dispose(); usersBuilder_ = null; users_ = other.users_; bitField0_ = (bitField0_ & ~0x00000001); usersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUsersFieldBuilder() : null; } else { usersBuilder_.addAllMessages(other.users_); } } } 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: { com.aerospike.vector.client.proto.User m = input.readMessage( com.aerospike.vector.client.proto.User.parser(), extensionRegistry); if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.add(m); } else { usersBuilder_.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 users_ = java.util.Collections.emptyList(); private void ensureUsersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { users_ = new java.util.ArrayList(users_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.User, com.aerospike.vector.client.proto.User.Builder, com.aerospike.vector.client.proto.UserOrBuilder> usersBuilder_; /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public java.util.List getUsersList() { if (usersBuilder_ == null) { return java.util.Collections.unmodifiableList(users_); } else { return usersBuilder_.getMessageList(); } } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public int getUsersCount() { if (usersBuilder_ == null) { return users_.size(); } else { return usersBuilder_.getCount(); } } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public com.aerospike.vector.client.proto.User getUsers(int index) { if (usersBuilder_ == null) { return users_.get(index); } else { return usersBuilder_.getMessage(index); } } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public Builder setUsers( int index, com.aerospike.vector.client.proto.User value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.set(index, value); onChanged(); } else { usersBuilder_.setMessage(index, value); } return this; } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public Builder setUsers( int index, com.aerospike.vector.client.proto.User.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.set(index, builderForValue.build()); onChanged(); } else { usersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public Builder addUsers(com.aerospike.vector.client.proto.User value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.add(value); onChanged(); } else { usersBuilder_.addMessage(value); } return this; } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public Builder addUsers( int index, com.aerospike.vector.client.proto.User value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.add(index, value); onChanged(); } else { usersBuilder_.addMessage(index, value); } return this; } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public Builder addUsers( com.aerospike.vector.client.proto.User.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.add(builderForValue.build()); onChanged(); } else { usersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public Builder addUsers( int index, com.aerospike.vector.client.proto.User.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.add(index, builderForValue.build()); onChanged(); } else { usersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public Builder addAllUsers( java.lang.Iterable values) { if (usersBuilder_ == null) { ensureUsersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, users_); onChanged(); } else { usersBuilder_.addAllMessages(values); } return this; } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public Builder clearUsers() { if (usersBuilder_ == null) { users_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { usersBuilder_.clear(); } return this; } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public Builder removeUsers(int index) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.remove(index); onChanged(); } else { usersBuilder_.remove(index); } return this; } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public com.aerospike.vector.client.proto.User.Builder getUsersBuilder( int index) { return getUsersFieldBuilder().getBuilder(index); } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public com.aerospike.vector.client.proto.UserOrBuilder getUsersOrBuilder( int index) { if (usersBuilder_ == null) { return users_.get(index); } else { return usersBuilder_.getMessageOrBuilder(index); } } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public java.util.List getUsersOrBuilderList() { if (usersBuilder_ != null) { return usersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(users_); } } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public com.aerospike.vector.client.proto.User.Builder addUsersBuilder() { return getUsersFieldBuilder().addBuilder( com.aerospike.vector.client.proto.User.getDefaultInstance()); } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public com.aerospike.vector.client.proto.User.Builder addUsersBuilder( int index) { return getUsersFieldBuilder().addBuilder( index, com.aerospike.vector.client.proto.User.getDefaultInstance()); } /** *
     * List of users.
     * 
* * repeated .aerospike.vector.User users = 1; */ public java.util.List getUsersBuilderList() { return getUsersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.User, com.aerospike.vector.client.proto.User.Builder, com.aerospike.vector.client.proto.UserOrBuilder> getUsersFieldBuilder() { if (usersBuilder_ == null) { usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.User, com.aerospike.vector.client.proto.User.Builder, com.aerospike.vector.client.proto.UserOrBuilder>( users_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); users_ = null; } return usersBuilder_; } @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:aerospike.vector.ListUsersResponse) } // @@protoc_insertion_point(class_scope:aerospike.vector.ListUsersResponse) private static final com.aerospike.vector.client.proto.ListUsersResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aerospike.vector.client.proto.ListUsersResponse(); } public static com.aerospike.vector.client.proto.ListUsersResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListUsersResponse 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 com.aerospike.vector.client.proto.ListUsersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy