io.milvus.grpc.RBACMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector database.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: milvus.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.milvus.RBACMeta}
*/
public final class RBACMeta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.RBACMeta)
RBACMetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use RBACMeta.newBuilder() to construct.
private RBACMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RBACMeta() {
users_ = java.util.Collections.emptyList();
roles_ = java.util.Collections.emptyList();
grants_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RBACMeta();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_RBACMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_RBACMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.RBACMeta.class, io.milvus.grpc.RBACMeta.Builder.class);
}
public static final int USERS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List users_;
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
@java.lang.Override
public java.util.List getUsersList() {
return users_;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
@java.lang.Override
public java.util.List extends io.milvus.grpc.UserInfoOrBuilder>
getUsersOrBuilderList() {
return users_;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
@java.lang.Override
public int getUsersCount() {
return users_.size();
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
@java.lang.Override
public io.milvus.grpc.UserInfo getUsers(int index) {
return users_.get(index);
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
@java.lang.Override
public io.milvus.grpc.UserInfoOrBuilder getUsersOrBuilder(
int index) {
return users_.get(index);
}
public static final int ROLES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List roles_;
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public java.util.List getRolesList() {
return roles_;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public java.util.List extends io.milvus.grpc.RoleEntityOrBuilder>
getRolesOrBuilderList() {
return roles_;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public int getRolesCount() {
return roles_.size();
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public io.milvus.grpc.RoleEntity getRoles(int index) {
return roles_.get(index);
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public io.milvus.grpc.RoleEntityOrBuilder getRolesOrBuilder(
int index) {
return roles_.get(index);
}
public static final int GRANTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List grants_;
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
@java.lang.Override
public java.util.List getGrantsList() {
return grants_;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
@java.lang.Override
public java.util.List extends io.milvus.grpc.GrantEntityOrBuilder>
getGrantsOrBuilderList() {
return grants_;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
@java.lang.Override
public int getGrantsCount() {
return grants_.size();
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
@java.lang.Override
public io.milvus.grpc.GrantEntity getGrants(int index) {
return grants_.get(index);
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
@java.lang.Override
public io.milvus.grpc.GrantEntityOrBuilder getGrantsOrBuilder(
int index) {
return grants_.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));
}
for (int i = 0; i < roles_.size(); i++) {
output.writeMessage(2, roles_.get(i));
}
for (int i = 0; i < grants_.size(); i++) {
output.writeMessage(3, grants_.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));
}
for (int i = 0; i < roles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, roles_.get(i));
}
for (int i = 0; i < grants_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, grants_.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 io.milvus.grpc.RBACMeta)) {
return super.equals(obj);
}
io.milvus.grpc.RBACMeta other = (io.milvus.grpc.RBACMeta) obj;
if (!getUsersList()
.equals(other.getUsersList())) return false;
if (!getRolesList()
.equals(other.getRolesList())) return false;
if (!getGrantsList()
.equals(other.getGrantsList())) 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();
}
if (getRolesCount() > 0) {
hash = (37 * hash) + ROLES_FIELD_NUMBER;
hash = (53 * hash) + getRolesList().hashCode();
}
if (getGrantsCount() > 0) {
hash = (37 * hash) + GRANTS_FIELD_NUMBER;
hash = (53 * hash) + getGrantsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.RBACMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.RBACMeta parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.RBACMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.RBACMeta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.RBACMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.RBACMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.RBACMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.RBACMeta 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 io.milvus.grpc.RBACMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.RBACMeta 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 io.milvus.grpc.RBACMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.RBACMeta 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(io.milvus.grpc.RBACMeta 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;
}
/**
* Protobuf type {@code milvus.proto.milvus.RBACMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.RBACMeta)
io.milvus.grpc.RBACMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_RBACMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_RBACMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.RBACMeta.class, io.milvus.grpc.RBACMeta.Builder.class);
}
// Construct using io.milvus.grpc.RBACMeta.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);
if (rolesBuilder_ == null) {
roles_ = java.util.Collections.emptyList();
} else {
roles_ = null;
rolesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (grantsBuilder_ == null) {
grants_ = java.util.Collections.emptyList();
} else {
grants_ = null;
grantsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_RBACMeta_descriptor;
}
@java.lang.Override
public io.milvus.grpc.RBACMeta getDefaultInstanceForType() {
return io.milvus.grpc.RBACMeta.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.RBACMeta build() {
io.milvus.grpc.RBACMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.RBACMeta buildPartial() {
io.milvus.grpc.RBACMeta result = new io.milvus.grpc.RBACMeta(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.milvus.grpc.RBACMeta 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();
}
if (rolesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
roles_ = java.util.Collections.unmodifiableList(roles_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.roles_ = roles_;
} else {
result.roles_ = rolesBuilder_.build();
}
if (grantsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
grants_ = java.util.Collections.unmodifiableList(grants_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.grants_ = grants_;
} else {
result.grants_ = grantsBuilder_.build();
}
}
private void buildPartial0(io.milvus.grpc.RBACMeta 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 io.milvus.grpc.RBACMeta) {
return mergeFrom((io.milvus.grpc.RBACMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.RBACMeta other) {
if (other == io.milvus.grpc.RBACMeta.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_);
}
}
}
if (rolesBuilder_ == null) {
if (!other.roles_.isEmpty()) {
if (roles_.isEmpty()) {
roles_ = other.roles_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRolesIsMutable();
roles_.addAll(other.roles_);
}
onChanged();
}
} else {
if (!other.roles_.isEmpty()) {
if (rolesBuilder_.isEmpty()) {
rolesBuilder_.dispose();
rolesBuilder_ = null;
roles_ = other.roles_;
bitField0_ = (bitField0_ & ~0x00000002);
rolesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRolesFieldBuilder() : null;
} else {
rolesBuilder_.addAllMessages(other.roles_);
}
}
}
if (grantsBuilder_ == null) {
if (!other.grants_.isEmpty()) {
if (grants_.isEmpty()) {
grants_ = other.grants_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureGrantsIsMutable();
grants_.addAll(other.grants_);
}
onChanged();
}
} else {
if (!other.grants_.isEmpty()) {
if (grantsBuilder_.isEmpty()) {
grantsBuilder_.dispose();
grantsBuilder_ = null;
grants_ = other.grants_;
bitField0_ = (bitField0_ & ~0x00000004);
grantsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGrantsFieldBuilder() : null;
} else {
grantsBuilder_.addAllMessages(other.grants_);
}
}
}
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: {
io.milvus.grpc.UserInfo m =
input.readMessage(
io.milvus.grpc.UserInfo.parser(),
extensionRegistry);
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(m);
} else {
usersBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
io.milvus.grpc.RoleEntity m =
input.readMessage(
io.milvus.grpc.RoleEntity.parser(),
extensionRegistry);
if (rolesBuilder_ == null) {
ensureRolesIsMutable();
roles_.add(m);
} else {
rolesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
io.milvus.grpc.GrantEntity m =
input.readMessage(
io.milvus.grpc.GrantEntity.parser(),
extensionRegistry);
if (grantsBuilder_ == null) {
ensureGrantsIsMutable();
grants_.add(m);
} else {
grantsBuilder_.addMessage(m);
}
break;
} // case 26
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<
io.milvus.grpc.UserInfo, io.milvus.grpc.UserInfo.Builder, io.milvus.grpc.UserInfoOrBuilder> usersBuilder_;
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public java.util.List getUsersList() {
if (usersBuilder_ == null) {
return java.util.Collections.unmodifiableList(users_);
} else {
return usersBuilder_.getMessageList();
}
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public int getUsersCount() {
if (usersBuilder_ == null) {
return users_.size();
} else {
return usersBuilder_.getCount();
}
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public io.milvus.grpc.UserInfo getUsers(int index) {
if (usersBuilder_ == null) {
return users_.get(index);
} else {
return usersBuilder_.getMessage(index);
}
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public Builder setUsers(
int index, io.milvus.grpc.UserInfo value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.set(index, value);
onChanged();
} else {
usersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public Builder setUsers(
int index, io.milvus.grpc.UserInfo.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.set(index, builderForValue.build());
onChanged();
} else {
usersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public Builder addUsers(io.milvus.grpc.UserInfo value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(value);
onChanged();
} else {
usersBuilder_.addMessage(value);
}
return this;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public Builder addUsers(
int index, io.milvus.grpc.UserInfo value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(index, value);
onChanged();
} else {
usersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public Builder addUsers(
io.milvus.grpc.UserInfo.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(builderForValue.build());
onChanged();
} else {
usersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public Builder addUsers(
int index, io.milvus.grpc.UserInfo.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(index, builderForValue.build());
onChanged();
} else {
usersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public Builder addAllUsers(
java.lang.Iterable extends io.milvus.grpc.UserInfo> values) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, users_);
onChanged();
} else {
usersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public Builder clearUsers() {
if (usersBuilder_ == null) {
users_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
usersBuilder_.clear();
}
return this;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public Builder removeUsers(int index) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.remove(index);
onChanged();
} else {
usersBuilder_.remove(index);
}
return this;
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public io.milvus.grpc.UserInfo.Builder getUsersBuilder(
int index) {
return getUsersFieldBuilder().getBuilder(index);
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public io.milvus.grpc.UserInfoOrBuilder getUsersOrBuilder(
int index) {
if (usersBuilder_ == null) {
return users_.get(index); } else {
return usersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public java.util.List extends io.milvus.grpc.UserInfoOrBuilder>
getUsersOrBuilderList() {
if (usersBuilder_ != null) {
return usersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(users_);
}
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public io.milvus.grpc.UserInfo.Builder addUsersBuilder() {
return getUsersFieldBuilder().addBuilder(
io.milvus.grpc.UserInfo.getDefaultInstance());
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public io.milvus.grpc.UserInfo.Builder addUsersBuilder(
int index) {
return getUsersFieldBuilder().addBuilder(
index, io.milvus.grpc.UserInfo.getDefaultInstance());
}
/**
*
* user
*
*
* repeated .milvus.proto.milvus.UserInfo users = 1;
*/
public java.util.List
getUsersBuilderList() {
return getUsersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.UserInfo, io.milvus.grpc.UserInfo.Builder, io.milvus.grpc.UserInfoOrBuilder>
getUsersFieldBuilder() {
if (usersBuilder_ == null) {
usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.UserInfo, io.milvus.grpc.UserInfo.Builder, io.milvus.grpc.UserInfoOrBuilder>(
users_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
users_ = null;
}
return usersBuilder_;
}
private java.util.List roles_ =
java.util.Collections.emptyList();
private void ensureRolesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
roles_ = new java.util.ArrayList(roles_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.RoleEntity, io.milvus.grpc.RoleEntity.Builder, io.milvus.grpc.RoleEntityOrBuilder> rolesBuilder_;
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public java.util.List getRolesList() {
if (rolesBuilder_ == null) {
return java.util.Collections.unmodifiableList(roles_);
} else {
return rolesBuilder_.getMessageList();
}
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public int getRolesCount() {
if (rolesBuilder_ == null) {
return roles_.size();
} else {
return rolesBuilder_.getCount();
}
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public io.milvus.grpc.RoleEntity getRoles(int index) {
if (rolesBuilder_ == null) {
return roles_.get(index);
} else {
return rolesBuilder_.getMessage(index);
}
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder setRoles(
int index, io.milvus.grpc.RoleEntity value) {
if (rolesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.set(index, value);
onChanged();
} else {
rolesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder setRoles(
int index, io.milvus.grpc.RoleEntity.Builder builderForValue) {
if (rolesBuilder_ == null) {
ensureRolesIsMutable();
roles_.set(index, builderForValue.build());
onChanged();
} else {
rolesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder addRoles(io.milvus.grpc.RoleEntity value) {
if (rolesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.add(value);
onChanged();
} else {
rolesBuilder_.addMessage(value);
}
return this;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder addRoles(
int index, io.milvus.grpc.RoleEntity value) {
if (rolesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.add(index, value);
onChanged();
} else {
rolesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder addRoles(
io.milvus.grpc.RoleEntity.Builder builderForValue) {
if (rolesBuilder_ == null) {
ensureRolesIsMutable();
roles_.add(builderForValue.build());
onChanged();
} else {
rolesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder addRoles(
int index, io.milvus.grpc.RoleEntity.Builder builderForValue) {
if (rolesBuilder_ == null) {
ensureRolesIsMutable();
roles_.add(index, builderForValue.build());
onChanged();
} else {
rolesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder addAllRoles(
java.lang.Iterable extends io.milvus.grpc.RoleEntity> values) {
if (rolesBuilder_ == null) {
ensureRolesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, roles_);
onChanged();
} else {
rolesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder clearRoles() {
if (rolesBuilder_ == null) {
roles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rolesBuilder_.clear();
}
return this;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder removeRoles(int index) {
if (rolesBuilder_ == null) {
ensureRolesIsMutable();
roles_.remove(index);
onChanged();
} else {
rolesBuilder_.remove(index);
}
return this;
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public io.milvus.grpc.RoleEntity.Builder getRolesBuilder(
int index) {
return getRolesFieldBuilder().getBuilder(index);
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public io.milvus.grpc.RoleEntityOrBuilder getRolesOrBuilder(
int index) {
if (rolesBuilder_ == null) {
return roles_.get(index); } else {
return rolesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public java.util.List extends io.milvus.grpc.RoleEntityOrBuilder>
getRolesOrBuilderList() {
if (rolesBuilder_ != null) {
return rolesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(roles_);
}
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public io.milvus.grpc.RoleEntity.Builder addRolesBuilder() {
return getRolesFieldBuilder().addBuilder(
io.milvus.grpc.RoleEntity.getDefaultInstance());
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public io.milvus.grpc.RoleEntity.Builder addRolesBuilder(
int index) {
return getRolesFieldBuilder().addBuilder(
index, io.milvus.grpc.RoleEntity.getDefaultInstance());
}
/**
*
* role
*
*
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public java.util.List
getRolesBuilderList() {
return getRolesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.RoleEntity, io.milvus.grpc.RoleEntity.Builder, io.milvus.grpc.RoleEntityOrBuilder>
getRolesFieldBuilder() {
if (rolesBuilder_ == null) {
rolesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.RoleEntity, io.milvus.grpc.RoleEntity.Builder, io.milvus.grpc.RoleEntityOrBuilder>(
roles_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
roles_ = null;
}
return rolesBuilder_;
}
private java.util.List grants_ =
java.util.Collections.emptyList();
private void ensureGrantsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
grants_ = new java.util.ArrayList(grants_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.GrantEntity, io.milvus.grpc.GrantEntity.Builder, io.milvus.grpc.GrantEntityOrBuilder> grantsBuilder_;
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public java.util.List getGrantsList() {
if (grantsBuilder_ == null) {
return java.util.Collections.unmodifiableList(grants_);
} else {
return grantsBuilder_.getMessageList();
}
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public int getGrantsCount() {
if (grantsBuilder_ == null) {
return grants_.size();
} else {
return grantsBuilder_.getCount();
}
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public io.milvus.grpc.GrantEntity getGrants(int index) {
if (grantsBuilder_ == null) {
return grants_.get(index);
} else {
return grantsBuilder_.getMessage(index);
}
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public Builder setGrants(
int index, io.milvus.grpc.GrantEntity value) {
if (grantsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantsIsMutable();
grants_.set(index, value);
onChanged();
} else {
grantsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public Builder setGrants(
int index, io.milvus.grpc.GrantEntity.Builder builderForValue) {
if (grantsBuilder_ == null) {
ensureGrantsIsMutable();
grants_.set(index, builderForValue.build());
onChanged();
} else {
grantsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public Builder addGrants(io.milvus.grpc.GrantEntity value) {
if (grantsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantsIsMutable();
grants_.add(value);
onChanged();
} else {
grantsBuilder_.addMessage(value);
}
return this;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public Builder addGrants(
int index, io.milvus.grpc.GrantEntity value) {
if (grantsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantsIsMutable();
grants_.add(index, value);
onChanged();
} else {
grantsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public Builder addGrants(
io.milvus.grpc.GrantEntity.Builder builderForValue) {
if (grantsBuilder_ == null) {
ensureGrantsIsMutable();
grants_.add(builderForValue.build());
onChanged();
} else {
grantsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public Builder addGrants(
int index, io.milvus.grpc.GrantEntity.Builder builderForValue) {
if (grantsBuilder_ == null) {
ensureGrantsIsMutable();
grants_.add(index, builderForValue.build());
onChanged();
} else {
grantsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public Builder addAllGrants(
java.lang.Iterable extends io.milvus.grpc.GrantEntity> values) {
if (grantsBuilder_ == null) {
ensureGrantsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, grants_);
onChanged();
} else {
grantsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public Builder clearGrants() {
if (grantsBuilder_ == null) {
grants_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
grantsBuilder_.clear();
}
return this;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public Builder removeGrants(int index) {
if (grantsBuilder_ == null) {
ensureGrantsIsMutable();
grants_.remove(index);
onChanged();
} else {
grantsBuilder_.remove(index);
}
return this;
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public io.milvus.grpc.GrantEntity.Builder getGrantsBuilder(
int index) {
return getGrantsFieldBuilder().getBuilder(index);
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public io.milvus.grpc.GrantEntityOrBuilder getGrantsOrBuilder(
int index) {
if (grantsBuilder_ == null) {
return grants_.get(index); } else {
return grantsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public java.util.List extends io.milvus.grpc.GrantEntityOrBuilder>
getGrantsOrBuilderList() {
if (grantsBuilder_ != null) {
return grantsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(grants_);
}
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public io.milvus.grpc.GrantEntity.Builder addGrantsBuilder() {
return getGrantsFieldBuilder().addBuilder(
io.milvus.grpc.GrantEntity.getDefaultInstance());
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public io.milvus.grpc.GrantEntity.Builder addGrantsBuilder(
int index) {
return getGrantsFieldBuilder().addBuilder(
index, io.milvus.grpc.GrantEntity.getDefaultInstance());
}
/**
*
* (role, object, previledge)
*
*
* repeated .milvus.proto.milvus.GrantEntity grants = 3;
*/
public java.util.List
getGrantsBuilderList() {
return getGrantsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.GrantEntity, io.milvus.grpc.GrantEntity.Builder, io.milvus.grpc.GrantEntityOrBuilder>
getGrantsFieldBuilder() {
if (grantsBuilder_ == null) {
grantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.GrantEntity, io.milvus.grpc.GrantEntity.Builder, io.milvus.grpc.GrantEntityOrBuilder>(
grants_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
grants_ = null;
}
return grantsBuilder_;
}
@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:milvus.proto.milvus.RBACMeta)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.RBACMeta)
private static final io.milvus.grpc.RBACMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.RBACMeta();
}
public static io.milvus.grpc.RBACMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RBACMeta 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 io.milvus.grpc.RBACMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}