![JAR search and dependency download from the Maven repository](/logo.png)
io.milvus.grpc.GrantEntity Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: milvus.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.milvus.GrantEntity}
*/
public final class GrantEntity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.GrantEntity)
GrantEntityOrBuilder {
private static final long serialVersionUID = 0L;
// Use GrantEntity.newBuilder() to construct.
private GrantEntity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GrantEntity() {
objectName_ = "";
dbName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GrantEntity();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_GrantEntity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_GrantEntity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.GrantEntity.class, io.milvus.grpc.GrantEntity.Builder.class);
}
private int bitField0_;
public static final int ROLE_FIELD_NUMBER = 1;
private io.milvus.grpc.RoleEntity role_;
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
* @return Whether the role field is set.
*/
@java.lang.Override
public boolean hasRole() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
* @return The role.
*/
@java.lang.Override
public io.milvus.grpc.RoleEntity getRole() {
return role_ == null ? io.milvus.grpc.RoleEntity.getDefaultInstance() : role_;
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
*/
@java.lang.Override
public io.milvus.grpc.RoleEntityOrBuilder getRoleOrBuilder() {
return role_ == null ? io.milvus.grpc.RoleEntity.getDefaultInstance() : role_;
}
public static final int OBJECT_FIELD_NUMBER = 2;
private io.milvus.grpc.ObjectEntity object_;
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
* @return Whether the object field is set.
*/
@java.lang.Override
public boolean hasObject() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
* @return The object.
*/
@java.lang.Override
public io.milvus.grpc.ObjectEntity getObject() {
return object_ == null ? io.milvus.grpc.ObjectEntity.getDefaultInstance() : object_;
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
*/
@java.lang.Override
public io.milvus.grpc.ObjectEntityOrBuilder getObjectOrBuilder() {
return object_ == null ? io.milvus.grpc.ObjectEntity.getDefaultInstance() : object_;
}
public static final int OBJECT_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object objectName_ = "";
/**
*
* object name
*
*
* string object_name = 3;
* @return The objectName.
*/
@java.lang.Override
public java.lang.String getObjectName() {
java.lang.Object ref = objectName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
objectName_ = s;
return s;
}
}
/**
*
* object name
*
*
* string object_name = 3;
* @return The bytes for objectName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getObjectNameBytes() {
java.lang.Object ref = objectName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
objectName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GRANTOR_FIELD_NUMBER = 4;
private io.milvus.grpc.GrantorEntity grantor_;
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
* @return Whether the grantor field is set.
*/
@java.lang.Override
public boolean hasGrantor() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
* @return The grantor.
*/
@java.lang.Override
public io.milvus.grpc.GrantorEntity getGrantor() {
return grantor_ == null ? io.milvus.grpc.GrantorEntity.getDefaultInstance() : grantor_;
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
@java.lang.Override
public io.milvus.grpc.GrantorEntityOrBuilder getGrantorOrBuilder() {
return grantor_ == null ? io.milvus.grpc.GrantorEntity.getDefaultInstance() : grantor_;
}
public static final int DB_NAME_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object dbName_ = "";
/**
*
* db name
*
*
* string db_name = 5;
* @return The dbName.
*/
@java.lang.Override
public java.lang.String getDbName() {
java.lang.Object ref = dbName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dbName_ = s;
return s;
}
}
/**
*
* db name
*
*
* string db_name = 5;
* @return The bytes for dbName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDbNameBytes() {
java.lang.Object ref = dbName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dbName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getRole());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getObject());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, objectName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getGrantor());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dbName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRole());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getObject());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, objectName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getGrantor());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dbName_);
}
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.GrantEntity)) {
return super.equals(obj);
}
io.milvus.grpc.GrantEntity other = (io.milvus.grpc.GrantEntity) obj;
if (hasRole() != other.hasRole()) return false;
if (hasRole()) {
if (!getRole()
.equals(other.getRole())) return false;
}
if (hasObject() != other.hasObject()) return false;
if (hasObject()) {
if (!getObject()
.equals(other.getObject())) return false;
}
if (!getObjectName()
.equals(other.getObjectName())) return false;
if (hasGrantor() != other.hasGrantor()) return false;
if (hasGrantor()) {
if (!getGrantor()
.equals(other.getGrantor())) return false;
}
if (!getDbName()
.equals(other.getDbName())) 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 (hasRole()) {
hash = (37 * hash) + ROLE_FIELD_NUMBER;
hash = (53 * hash) + getRole().hashCode();
}
if (hasObject()) {
hash = (37 * hash) + OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getObject().hashCode();
}
hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getObjectName().hashCode();
if (hasGrantor()) {
hash = (37 * hash) + GRANTOR_FIELD_NUMBER;
hash = (53 * hash) + getGrantor().hashCode();
}
hash = (37 * hash) + DB_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDbName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.GrantEntity parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.GrantEntity 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.GrantEntity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.GrantEntity 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.GrantEntity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.GrantEntity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.GrantEntity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.GrantEntity 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.GrantEntity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.GrantEntity 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.GrantEntity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.GrantEntity 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.GrantEntity 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.GrantEntity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.GrantEntity)
io.milvus.grpc.GrantEntityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_GrantEntity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_GrantEntity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.GrantEntity.class, io.milvus.grpc.GrantEntity.Builder.class);
}
// Construct using io.milvus.grpc.GrantEntity.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRoleFieldBuilder();
getObjectFieldBuilder();
getGrantorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
role_ = null;
if (roleBuilder_ != null) {
roleBuilder_.dispose();
roleBuilder_ = null;
}
object_ = null;
if (objectBuilder_ != null) {
objectBuilder_.dispose();
objectBuilder_ = null;
}
objectName_ = "";
grantor_ = null;
if (grantorBuilder_ != null) {
grantorBuilder_.dispose();
grantorBuilder_ = null;
}
dbName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_GrantEntity_descriptor;
}
@java.lang.Override
public io.milvus.grpc.GrantEntity getDefaultInstanceForType() {
return io.milvus.grpc.GrantEntity.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.GrantEntity build() {
io.milvus.grpc.GrantEntity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.GrantEntity buildPartial() {
io.milvus.grpc.GrantEntity result = new io.milvus.grpc.GrantEntity(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.milvus.grpc.GrantEntity result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.role_ = roleBuilder_ == null
? role_
: roleBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.object_ = objectBuilder_ == null
? object_
: objectBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.objectName_ = objectName_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.grantor_ = grantorBuilder_ == null
? grantor_
: grantorBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.dbName_ = dbName_;
}
result.bitField0_ |= to_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.GrantEntity) {
return mergeFrom((io.milvus.grpc.GrantEntity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.GrantEntity other) {
if (other == io.milvus.grpc.GrantEntity.getDefaultInstance()) return this;
if (other.hasRole()) {
mergeRole(other.getRole());
}
if (other.hasObject()) {
mergeObject(other.getObject());
}
if (!other.getObjectName().isEmpty()) {
objectName_ = other.objectName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasGrantor()) {
mergeGrantor(other.getGrantor());
}
if (!other.getDbName().isEmpty()) {
dbName_ = other.dbName_;
bitField0_ |= 0x00000010;
onChanged();
}
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: {
input.readMessage(
getRoleFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getObjectFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
objectName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getGrantorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
dbName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
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 io.milvus.grpc.RoleEntity role_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.RoleEntity, io.milvus.grpc.RoleEntity.Builder, io.milvus.grpc.RoleEntityOrBuilder> roleBuilder_;
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
* @return Whether the role field is set.
*/
public boolean hasRole() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
* @return The role.
*/
public io.milvus.grpc.RoleEntity getRole() {
if (roleBuilder_ == null) {
return role_ == null ? io.milvus.grpc.RoleEntity.getDefaultInstance() : role_;
} else {
return roleBuilder_.getMessage();
}
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
*/
public Builder setRole(io.milvus.grpc.RoleEntity value) {
if (roleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
role_ = value;
} else {
roleBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
*/
public Builder setRole(
io.milvus.grpc.RoleEntity.Builder builderForValue) {
if (roleBuilder_ == null) {
role_ = builderForValue.build();
} else {
roleBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
*/
public Builder mergeRole(io.milvus.grpc.RoleEntity value) {
if (roleBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
role_ != null &&
role_ != io.milvus.grpc.RoleEntity.getDefaultInstance()) {
getRoleBuilder().mergeFrom(value);
} else {
role_ = value;
}
} else {
roleBuilder_.mergeFrom(value);
}
if (role_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
*/
public Builder clearRole() {
bitField0_ = (bitField0_ & ~0x00000001);
role_ = null;
if (roleBuilder_ != null) {
roleBuilder_.dispose();
roleBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
*/
public io.milvus.grpc.RoleEntity.Builder getRoleBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRoleFieldBuilder().getBuilder();
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
*/
public io.milvus.grpc.RoleEntityOrBuilder getRoleOrBuilder() {
if (roleBuilder_ != null) {
return roleBuilder_.getMessageOrBuilder();
} else {
return role_ == null ?
io.milvus.grpc.RoleEntity.getDefaultInstance() : role_;
}
}
/**
*
* role
*
*
* .milvus.proto.milvus.RoleEntity role = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.RoleEntity, io.milvus.grpc.RoleEntity.Builder, io.milvus.grpc.RoleEntityOrBuilder>
getRoleFieldBuilder() {
if (roleBuilder_ == null) {
roleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.RoleEntity, io.milvus.grpc.RoleEntity.Builder, io.milvus.grpc.RoleEntityOrBuilder>(
getRole(),
getParentForChildren(),
isClean());
role_ = null;
}
return roleBuilder_;
}
private io.milvus.grpc.ObjectEntity object_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.ObjectEntity, io.milvus.grpc.ObjectEntity.Builder, io.milvus.grpc.ObjectEntityOrBuilder> objectBuilder_;
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
* @return Whether the object field is set.
*/
public boolean hasObject() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
* @return The object.
*/
public io.milvus.grpc.ObjectEntity getObject() {
if (objectBuilder_ == null) {
return object_ == null ? io.milvus.grpc.ObjectEntity.getDefaultInstance() : object_;
} else {
return objectBuilder_.getMessage();
}
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
*/
public Builder setObject(io.milvus.grpc.ObjectEntity value) {
if (objectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
object_ = value;
} else {
objectBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
*/
public Builder setObject(
io.milvus.grpc.ObjectEntity.Builder builderForValue) {
if (objectBuilder_ == null) {
object_ = builderForValue.build();
} else {
objectBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
*/
public Builder mergeObject(io.milvus.grpc.ObjectEntity value) {
if (objectBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
object_ != null &&
object_ != io.milvus.grpc.ObjectEntity.getDefaultInstance()) {
getObjectBuilder().mergeFrom(value);
} else {
object_ = value;
}
} else {
objectBuilder_.mergeFrom(value);
}
if (object_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
*/
public Builder clearObject() {
bitField0_ = (bitField0_ & ~0x00000002);
object_ = null;
if (objectBuilder_ != null) {
objectBuilder_.dispose();
objectBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
*/
public io.milvus.grpc.ObjectEntity.Builder getObjectBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getObjectFieldBuilder().getBuilder();
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
*/
public io.milvus.grpc.ObjectEntityOrBuilder getObjectOrBuilder() {
if (objectBuilder_ != null) {
return objectBuilder_.getMessageOrBuilder();
} else {
return object_ == null ?
io.milvus.grpc.ObjectEntity.getDefaultInstance() : object_;
}
}
/**
*
* object
*
*
* .milvus.proto.milvus.ObjectEntity object = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.ObjectEntity, io.milvus.grpc.ObjectEntity.Builder, io.milvus.grpc.ObjectEntityOrBuilder>
getObjectFieldBuilder() {
if (objectBuilder_ == null) {
objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.ObjectEntity, io.milvus.grpc.ObjectEntity.Builder, io.milvus.grpc.ObjectEntityOrBuilder>(
getObject(),
getParentForChildren(),
isClean());
object_ = null;
}
return objectBuilder_;
}
private java.lang.Object objectName_ = "";
/**
*
* object name
*
*
* string object_name = 3;
* @return The objectName.
*/
public java.lang.String getObjectName() {
java.lang.Object ref = objectName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
objectName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* object name
*
*
* string object_name = 3;
* @return The bytes for objectName.
*/
public com.google.protobuf.ByteString
getObjectNameBytes() {
java.lang.Object ref = objectName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
objectName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* object name
*
*
* string object_name = 3;
* @param value The objectName to set.
* @return This builder for chaining.
*/
public Builder setObjectName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
objectName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* object name
*
*
* string object_name = 3;
* @return This builder for chaining.
*/
public Builder clearObjectName() {
objectName_ = getDefaultInstance().getObjectName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* object name
*
*
* string object_name = 3;
* @param value The bytes for objectName to set.
* @return This builder for chaining.
*/
public Builder setObjectNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
objectName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private io.milvus.grpc.GrantorEntity grantor_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.GrantorEntity, io.milvus.grpc.GrantorEntity.Builder, io.milvus.grpc.GrantorEntityOrBuilder> grantorBuilder_;
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
* @return Whether the grantor field is set.
*/
public boolean hasGrantor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
* @return The grantor.
*/
public io.milvus.grpc.GrantorEntity getGrantor() {
if (grantorBuilder_ == null) {
return grantor_ == null ? io.milvus.grpc.GrantorEntity.getDefaultInstance() : grantor_;
} else {
return grantorBuilder_.getMessage();
}
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public Builder setGrantor(io.milvus.grpc.GrantorEntity value) {
if (grantorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
grantor_ = value;
} else {
grantorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public Builder setGrantor(
io.milvus.grpc.GrantorEntity.Builder builderForValue) {
if (grantorBuilder_ == null) {
grantor_ = builderForValue.build();
} else {
grantorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public Builder mergeGrantor(io.milvus.grpc.GrantorEntity value) {
if (grantorBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
grantor_ != null &&
grantor_ != io.milvus.grpc.GrantorEntity.getDefaultInstance()) {
getGrantorBuilder().mergeFrom(value);
} else {
grantor_ = value;
}
} else {
grantorBuilder_.mergeFrom(value);
}
if (grantor_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public Builder clearGrantor() {
bitField0_ = (bitField0_ & ~0x00000008);
grantor_ = null;
if (grantorBuilder_ != null) {
grantorBuilder_.dispose();
grantorBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public io.milvus.grpc.GrantorEntity.Builder getGrantorBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getGrantorFieldBuilder().getBuilder();
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public io.milvus.grpc.GrantorEntityOrBuilder getGrantorOrBuilder() {
if (grantorBuilder_ != null) {
return grantorBuilder_.getMessageOrBuilder();
} else {
return grantor_ == null ?
io.milvus.grpc.GrantorEntity.getDefaultInstance() : grantor_;
}
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.GrantorEntity, io.milvus.grpc.GrantorEntity.Builder, io.milvus.grpc.GrantorEntityOrBuilder>
getGrantorFieldBuilder() {
if (grantorBuilder_ == null) {
grantorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.GrantorEntity, io.milvus.grpc.GrantorEntity.Builder, io.milvus.grpc.GrantorEntityOrBuilder>(
getGrantor(),
getParentForChildren(),
isClean());
grantor_ = null;
}
return grantorBuilder_;
}
private java.lang.Object dbName_ = "";
/**
*
* db name
*
*
* string db_name = 5;
* @return The dbName.
*/
public java.lang.String getDbName() {
java.lang.Object ref = dbName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dbName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* db name
*
*
* string db_name = 5;
* @return The bytes for dbName.
*/
public com.google.protobuf.ByteString
getDbNameBytes() {
java.lang.Object ref = dbName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dbName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* db name
*
*
* string db_name = 5;
* @param value The dbName to set.
* @return This builder for chaining.
*/
public Builder setDbName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
dbName_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* db name
*
*
* string db_name = 5;
* @return This builder for chaining.
*/
public Builder clearDbName() {
dbName_ = getDefaultInstance().getDbName();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* db name
*
*
* string db_name = 5;
* @param value The bytes for dbName to set.
* @return This builder for chaining.
*/
public Builder setDbNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
dbName_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
@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.GrantEntity)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.GrantEntity)
private static final io.milvus.grpc.GrantEntity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.GrantEntity();
}
public static io.milvus.grpc.GrantEntity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GrantEntity 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.GrantEntity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy