io.milvus.grpc.UserResult 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 search engine.
update grpc to 1.42.1
update protobuf to 3.19.1
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: milvus.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.milvus.UserResult}
*/
public final class UserResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.UserResult)
UserResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use UserResult.newBuilder() to construct.
private UserResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserResult() {
roles_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UserResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UserResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.milvus.grpc.UserEntity.Builder subBuilder = null;
if (user_ != null) {
subBuilder = user_.toBuilder();
}
user_ = input.readMessage(io.milvus.grpc.UserEntity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(user_);
user_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
roles_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
roles_.add(
input.readMessage(io.milvus.grpc.RoleEntity.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
roles_ = java.util.Collections.unmodifiableList(roles_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_UserResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_UserResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.UserResult.class, io.milvus.grpc.UserResult.Builder.class);
}
public static final int USER_FIELD_NUMBER = 1;
private io.milvus.grpc.UserEntity user_;
/**
* .milvus.proto.milvus.UserEntity user = 1;
* @return Whether the user field is set.
*/
@java.lang.Override
public boolean hasUser() {
return user_ != null;
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
* @return The user.
*/
@java.lang.Override
public io.milvus.grpc.UserEntity getUser() {
return user_ == null ? io.milvus.grpc.UserEntity.getDefaultInstance() : user_;
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
*/
@java.lang.Override
public io.milvus.grpc.UserEntityOrBuilder getUserOrBuilder() {
return getUser();
}
public static final int ROLES_FIELD_NUMBER = 2;
private java.util.List roles_;
/**
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public java.util.List getRolesList() {
return roles_;
}
/**
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public java.util.List extends io.milvus.grpc.RoleEntityOrBuilder>
getRolesOrBuilderList() {
return roles_;
}
/**
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public int getRolesCount() {
return roles_.size();
}
/**
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public io.milvus.grpc.RoleEntity getRoles(int index) {
return roles_.get(index);
}
/**
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
@java.lang.Override
public io.milvus.grpc.RoleEntityOrBuilder 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 {
if (user_ != null) {
output.writeMessage(1, getUser());
}
for (int i = 0; i < roles_.size(); i++) {
output.writeMessage(2, roles_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (user_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUser());
}
for (int i = 0; i < roles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, roles_.get(i));
}
size += unknownFields.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.UserResult)) {
return super.equals(obj);
}
io.milvus.grpc.UserResult other = (io.milvus.grpc.UserResult) obj;
if (hasUser() != other.hasUser()) return false;
if (hasUser()) {
if (!getUser()
.equals(other.getUser())) return false;
}
if (!getRolesList()
.equals(other.getRolesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasUser()) {
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
}
if (getRolesCount() > 0) {
hash = (37 * hash) + ROLES_FIELD_NUMBER;
hash = (53 * hash) + getRolesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.UserResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.UserResult 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.UserResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.UserResult 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.UserResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.UserResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.UserResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.UserResult 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.UserResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.UserResult 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.UserResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.UserResult 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.UserResult 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.UserResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.UserResult)
io.milvus.grpc.UserResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_UserResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_UserResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.UserResult.class, io.milvus.grpc.UserResult.Builder.class);
}
// Construct using io.milvus.grpc.UserResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRolesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (userBuilder_ == null) {
user_ = null;
} else {
user_ = null;
userBuilder_ = null;
}
if (rolesBuilder_ == null) {
roles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
rolesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_UserResult_descriptor;
}
@java.lang.Override
public io.milvus.grpc.UserResult getDefaultInstanceForType() {
return io.milvus.grpc.UserResult.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.UserResult build() {
io.milvus.grpc.UserResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.UserResult buildPartial() {
io.milvus.grpc.UserResult result = new io.milvus.grpc.UserResult(this);
int from_bitField0_ = bitField0_;
if (userBuilder_ == null) {
result.user_ = user_;
} else {
result.user_ = userBuilder_.build();
}
if (rolesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
roles_ = java.util.Collections.unmodifiableList(roles_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.roles_ = roles_;
} else {
result.roles_ = rolesBuilder_.build();
}
onBuilt();
return result;
}
@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.UserResult) {
return mergeFrom((io.milvus.grpc.UserResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.UserResult other) {
if (other == io.milvus.grpc.UserResult.getDefaultInstance()) return this;
if (other.hasUser()) {
mergeUser(other.getUser());
}
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.unknownFields);
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 {
io.milvus.grpc.UserResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.milvus.grpc.UserResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.milvus.grpc.UserEntity user_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.UserEntity, io.milvus.grpc.UserEntity.Builder, io.milvus.grpc.UserEntityOrBuilder> userBuilder_;
/**
* .milvus.proto.milvus.UserEntity user = 1;
* @return Whether the user field is set.
*/
public boolean hasUser() {
return userBuilder_ != null || user_ != null;
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
* @return The user.
*/
public io.milvus.grpc.UserEntity getUser() {
if (userBuilder_ == null) {
return user_ == null ? io.milvus.grpc.UserEntity.getDefaultInstance() : user_;
} else {
return userBuilder_.getMessage();
}
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
*/
public Builder setUser(io.milvus.grpc.UserEntity value) {
if (userBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
user_ = value;
onChanged();
} else {
userBuilder_.setMessage(value);
}
return this;
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
*/
public Builder setUser(
io.milvus.grpc.UserEntity.Builder builderForValue) {
if (userBuilder_ == null) {
user_ = builderForValue.build();
onChanged();
} else {
userBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
*/
public Builder mergeUser(io.milvus.grpc.UserEntity value) {
if (userBuilder_ == null) {
if (user_ != null) {
user_ =
io.milvus.grpc.UserEntity.newBuilder(user_).mergeFrom(value).buildPartial();
} else {
user_ = value;
}
onChanged();
} else {
userBuilder_.mergeFrom(value);
}
return this;
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
*/
public Builder clearUser() {
if (userBuilder_ == null) {
user_ = null;
onChanged();
} else {
user_ = null;
userBuilder_ = null;
}
return this;
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
*/
public io.milvus.grpc.UserEntity.Builder getUserBuilder() {
onChanged();
return getUserFieldBuilder().getBuilder();
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
*/
public io.milvus.grpc.UserEntityOrBuilder getUserOrBuilder() {
if (userBuilder_ != null) {
return userBuilder_.getMessageOrBuilder();
} else {
return user_ == null ?
io.milvus.grpc.UserEntity.getDefaultInstance() : user_;
}
}
/**
* .milvus.proto.milvus.UserEntity user = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.UserEntity, io.milvus.grpc.UserEntity.Builder, io.milvus.grpc.UserEntityOrBuilder>
getUserFieldBuilder() {
if (userBuilder_ == null) {
userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.UserEntity, io.milvus.grpc.UserEntity.Builder, io.milvus.grpc.UserEntityOrBuilder>(
getUser(),
getParentForChildren(),
isClean());
user_ = null;
}
return userBuilder_;
}
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<
io.milvus.grpc.RoleEntity, io.milvus.grpc.RoleEntity.Builder, io.milvus.grpc.RoleEntityOrBuilder> rolesBuilder_;
/**
* 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();
}
}
/**
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public int getRolesCount() {
if (rolesBuilder_ == null) {
return roles_.size();
} else {
return rolesBuilder_.getCount();
}
}
/**
* 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);
}
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public Builder clearRoles() {
if (rolesBuilder_ == null) {
roles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
rolesBuilder_.clear();
}
return this;
}
/**
* 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;
}
/**
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public io.milvus.grpc.RoleEntity.Builder getRolesBuilder(
int index) {
return getRolesFieldBuilder().getBuilder(index);
}
/**
* 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);
}
}
/**
* 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_);
}
}
/**
* repeated .milvus.proto.milvus.RoleEntity roles = 2;
*/
public io.milvus.grpc.RoleEntity.Builder addRolesBuilder() {
return getRolesFieldBuilder().addBuilder(
io.milvus.grpc.RoleEntity.getDefaultInstance());
}
/**
* 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());
}
/**
* 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_ & 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:milvus.proto.milvus.UserResult)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.UserResult)
private static final io.milvus.grpc.UserResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.UserResult();
}
public static io.milvus.grpc.UserResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UserResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UserResult(input, extensionRegistry);
}
};
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.UserResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}