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

com.aerospike.vector.client.proto.ListRolesResponse 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.1
package com.aerospike.vector.client.proto;

/**
 * 
 * A list of roles.
 * 
* * Protobuf type {@code aerospike.vector.ListRolesResponse} */ public final class ListRolesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:aerospike.vector.ListRolesResponse) ListRolesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListRolesResponse.newBuilder() to construct. private ListRolesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListRolesResponse() { roles_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListRolesResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.proto.UserAdmin.internal_static_aerospike_vector_ListRolesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.proto.UserAdmin.internal_static_aerospike_vector_ListRolesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.proto.ListRolesResponse.class, com.aerospike.vector.client.proto.ListRolesResponse.Builder.class); } public static final int ROLES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List roles_; /** *
   * List of roles.
   * 
* * repeated .aerospike.vector.Role roles = 1; */ @java.lang.Override public java.util.List getRolesList() { return roles_; } /** *
   * List of roles.
   * 
* * repeated .aerospike.vector.Role roles = 1; */ @java.lang.Override public java.util.List getRolesOrBuilderList() { return roles_; } /** *
   * List of roles.
   * 
* * repeated .aerospike.vector.Role roles = 1; */ @java.lang.Override public int getRolesCount() { return roles_.size(); } /** *
   * List of roles.
   * 
* * repeated .aerospike.vector.Role roles = 1; */ @java.lang.Override public com.aerospike.vector.client.proto.Role getRoles(int index) { return roles_.get(index); } /** *
   * List of roles.
   * 
* * repeated .aerospike.vector.Role roles = 1; */ @java.lang.Override public com.aerospike.vector.client.proto.RoleOrBuilder getRolesOrBuilder( int index) { return roles_.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 < roles_.size(); i++) { output.writeMessage(1, roles_.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 < roles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, roles_.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.ListRolesResponse)) { return super.equals(obj); } com.aerospike.vector.client.proto.ListRolesResponse other = (com.aerospike.vector.client.proto.ListRolesResponse) obj; if (!getRolesList() .equals(other.getRolesList())) 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 (getRolesCount() > 0) { hash = (37 * hash) + ROLES_FIELD_NUMBER; hash = (53 * hash) + getRolesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.aerospike.vector.client.proto.ListRolesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.ListRolesResponse 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.ListRolesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.ListRolesResponse 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.ListRolesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.ListRolesResponse 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.ListRolesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.ListRolesResponse 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.ListRolesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.ListRolesResponse 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.ListRolesResponse 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.ListRolesResponse 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.ListRolesResponse 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 roles.
   * 
* * Protobuf type {@code aerospike.vector.ListRolesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aerospike.vector.ListRolesResponse) com.aerospike.vector.client.proto.ListRolesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.proto.UserAdmin.internal_static_aerospike_vector_ListRolesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.proto.UserAdmin.internal_static_aerospike_vector_ListRolesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.proto.ListRolesResponse.class, com.aerospike.vector.client.proto.ListRolesResponse.Builder.class); } // Construct using com.aerospike.vector.client.proto.ListRolesResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (rolesBuilder_ == null) { roles_ = java.util.Collections.emptyList(); } else { roles_ = null; rolesBuilder_.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_ListRolesResponse_descriptor; } @java.lang.Override public com.aerospike.vector.client.proto.ListRolesResponse getDefaultInstanceForType() { return com.aerospike.vector.client.proto.ListRolesResponse.getDefaultInstance(); } @java.lang.Override public com.aerospike.vector.client.proto.ListRolesResponse build() { com.aerospike.vector.client.proto.ListRolesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aerospike.vector.client.proto.ListRolesResponse buildPartial() { com.aerospike.vector.client.proto.ListRolesResponse result = new com.aerospike.vector.client.proto.ListRolesResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.aerospike.vector.client.proto.ListRolesResponse result) { if (rolesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { roles_ = java.util.Collections.unmodifiableList(roles_); bitField0_ = (bitField0_ & ~0x00000001); } result.roles_ = roles_; } else { result.roles_ = rolesBuilder_.build(); } } private void buildPartial0(com.aerospike.vector.client.proto.ListRolesResponse 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.ListRolesResponse) { return mergeFrom((com.aerospike.vector.client.proto.ListRolesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aerospike.vector.client.proto.ListRolesResponse other) { if (other == com.aerospike.vector.client.proto.ListRolesResponse.getDefaultInstance()) return this; if (rolesBuilder_ == null) { if (!other.roles_.isEmpty()) { if (roles_.isEmpty()) { roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRolesIsMutable(); roles_.addAll(other.roles_); } onChanged(); } } else { if (!other.roles_.isEmpty()) { if (rolesBuilder_.isEmpty()) { rolesBuilder_.dispose(); rolesBuilder_ = null; roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000001); rolesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRolesFieldBuilder() : null; } else { rolesBuilder_.addAllMessages(other.roles_); } } } 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.Role m = input.readMessage( com.aerospike.vector.client.proto.Role.parser(), extensionRegistry); if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.add(m); } else { rolesBuilder_.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 roles_ = java.util.Collections.emptyList(); private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { roles_ = new java.util.ArrayList(roles_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.Role, com.aerospike.vector.client.proto.Role.Builder, com.aerospike.vector.client.proto.RoleOrBuilder> rolesBuilder_; /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public java.util.List getRolesList() { if (rolesBuilder_ == null) { return java.util.Collections.unmodifiableList(roles_); } else { return rolesBuilder_.getMessageList(); } } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public int getRolesCount() { if (rolesBuilder_ == null) { return roles_.size(); } else { return rolesBuilder_.getCount(); } } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public com.aerospike.vector.client.proto.Role getRoles(int index) { if (rolesBuilder_ == null) { return roles_.get(index); } else { return rolesBuilder_.getMessage(index); } } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public Builder setRoles( int index, com.aerospike.vector.client.proto.Role value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.set(index, value); onChanged(); } else { rolesBuilder_.setMessage(index, value); } return this; } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public Builder setRoles( int index, com.aerospike.vector.client.proto.Role.Builder builderForValue) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.set(index, builderForValue.build()); onChanged(); } else { rolesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public Builder addRoles(com.aerospike.vector.client.proto.Role value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(value); onChanged(); } else { rolesBuilder_.addMessage(value); } return this; } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public Builder addRoles( int index, com.aerospike.vector.client.proto.Role value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(index, value); onChanged(); } else { rolesBuilder_.addMessage(index, value); } return this; } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public Builder addRoles( com.aerospike.vector.client.proto.Role.Builder builderForValue) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.add(builderForValue.build()); onChanged(); } else { rolesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public Builder addRoles( int index, com.aerospike.vector.client.proto.Role.Builder builderForValue) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.add(index, builderForValue.build()); onChanged(); } else { rolesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public Builder addAllRoles( java.lang.Iterable values) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, roles_); onChanged(); } else { rolesBuilder_.addAllMessages(values); } return this; } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public Builder clearRoles() { if (rolesBuilder_ == null) { roles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rolesBuilder_.clear(); } return this; } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public Builder removeRoles(int index) { if (rolesBuilder_ == null) { ensureRolesIsMutable(); roles_.remove(index); onChanged(); } else { rolesBuilder_.remove(index); } return this; } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public com.aerospike.vector.client.proto.Role.Builder getRolesBuilder( int index) { return getRolesFieldBuilder().getBuilder(index); } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public com.aerospike.vector.client.proto.RoleOrBuilder getRolesOrBuilder( int index) { if (rolesBuilder_ == null) { return roles_.get(index); } else { return rolesBuilder_.getMessageOrBuilder(index); } } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public java.util.List getRolesOrBuilderList() { if (rolesBuilder_ != null) { return rolesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(roles_); } } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public com.aerospike.vector.client.proto.Role.Builder addRolesBuilder() { return getRolesFieldBuilder().addBuilder( com.aerospike.vector.client.proto.Role.getDefaultInstance()); } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public com.aerospike.vector.client.proto.Role.Builder addRolesBuilder( int index) { return getRolesFieldBuilder().addBuilder( index, com.aerospike.vector.client.proto.Role.getDefaultInstance()); } /** *
     * List of roles.
     * 
* * repeated .aerospike.vector.Role roles = 1; */ public java.util.List getRolesBuilderList() { return getRolesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.Role, com.aerospike.vector.client.proto.Role.Builder, com.aerospike.vector.client.proto.RoleOrBuilder> getRolesFieldBuilder() { if (rolesBuilder_ == null) { rolesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.Role, com.aerospike.vector.client.proto.Role.Builder, com.aerospike.vector.client.proto.RoleOrBuilder>( roles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); roles_ = null; } return rolesBuilder_; } @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.ListRolesResponse) } // @@protoc_insertion_point(class_scope:aerospike.vector.ListRolesResponse) private static final com.aerospike.vector.client.proto.ListRolesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aerospike.vector.client.proto.ListRolesResponse(); } public static com.aerospike.vector.client.proto.ListRolesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListRolesResponse 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.ListRolesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy