io.milvus.grpc.GrantEntity 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.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() {
resourceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GrantEntity();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GrantEntity(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.PrincipalEntity.Builder subBuilder = null;
if (principal_ != null) {
subBuilder = principal_.toBuilder();
}
principal_ = input.readMessage(io.milvus.grpc.PrincipalEntity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(principal_);
principal_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.milvus.grpc.ResourceEntity.Builder subBuilder = null;
if (resource_ != null) {
subBuilder = resource_.toBuilder();
}
resource_ = input.readMessage(io.milvus.grpc.ResourceEntity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resource_);
resource_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
resourceName_ = s;
break;
}
case 34: {
io.milvus.grpc.GrantorEntity.Builder subBuilder = null;
if (grantor_ != null) {
subBuilder = grantor_.toBuilder();
}
grantor_ = input.readMessage(io.milvus.grpc.GrantorEntity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(grantor_);
grantor_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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);
}
public static final int PRINCIPAL_FIELD_NUMBER = 1;
private io.milvus.grpc.PrincipalEntity principal_;
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
* @return Whether the principal field is set.
*/
@java.lang.Override
public boolean hasPrincipal() {
return principal_ != null;
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
* @return The principal.
*/
@java.lang.Override
public io.milvus.grpc.PrincipalEntity getPrincipal() {
return principal_ == null ? io.milvus.grpc.PrincipalEntity.getDefaultInstance() : principal_;
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
*/
@java.lang.Override
public io.milvus.grpc.PrincipalEntityOrBuilder getPrincipalOrBuilder() {
return getPrincipal();
}
public static final int RESOURCE_FIELD_NUMBER = 2;
private io.milvus.grpc.ResourceEntity resource_;
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
* @return Whether the resource field is set.
*/
@java.lang.Override
public boolean hasResource() {
return resource_ != null;
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
* @return The resource.
*/
@java.lang.Override
public io.milvus.grpc.ResourceEntity getResource() {
return resource_ == null ? io.milvus.grpc.ResourceEntity.getDefaultInstance() : resource_;
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
*/
@java.lang.Override
public io.milvus.grpc.ResourceEntityOrBuilder getResourceOrBuilder() {
return getResource();
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object resourceName_;
/**
*
* resource name
*
*
* string resource_name = 3;
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
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();
resourceName_ = s;
return s;
}
}
/**
*
* resource name
*
*
* string resource_name = 3;
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = 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 grantor_ != null;
}
/**
*
* 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 getGrantor();
}
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 (principal_ != null) {
output.writeMessage(1, getPrincipal());
}
if (resource_ != null) {
output.writeMessage(2, getResource());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceName_);
}
if (grantor_ != null) {
output.writeMessage(4, getGrantor());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (principal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPrincipal());
}
if (resource_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResource());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_);
}
if (grantor_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getGrantor());
}
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.GrantEntity)) {
return super.equals(obj);
}
io.milvus.grpc.GrantEntity other = (io.milvus.grpc.GrantEntity) obj;
if (hasPrincipal() != other.hasPrincipal()) return false;
if (hasPrincipal()) {
if (!getPrincipal()
.equals(other.getPrincipal())) return false;
}
if (hasResource() != other.hasResource()) return false;
if (hasResource()) {
if (!getResource()
.equals(other.getResource())) return false;
}
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasGrantor() != other.hasGrantor()) return false;
if (hasGrantor()) {
if (!getGrantor()
.equals(other.getGrantor())) 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 (hasPrincipal()) {
hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER;
hash = (53 * hash) + getPrincipal().hashCode();
}
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
if (hasGrantor()) {
hash = (37 * hash) + GRANTOR_FIELD_NUMBER;
hash = (53 * hash) + getGrantor().hashCode();
}
hash = (29 * hash) + unknownFields.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (principalBuilder_ == null) {
principal_ = null;
} else {
principal_ = null;
principalBuilder_ = null;
}
if (resourceBuilder_ == null) {
resource_ = null;
} else {
resource_ = null;
resourceBuilder_ = null;
}
resourceName_ = "";
if (grantorBuilder_ == null) {
grantor_ = null;
} else {
grantor_ = null;
grantorBuilder_ = null;
}
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 (principalBuilder_ == null) {
result.principal_ = principal_;
} else {
result.principal_ = principalBuilder_.build();
}
if (resourceBuilder_ == null) {
result.resource_ = resource_;
} else {
result.resource_ = resourceBuilder_.build();
}
result.resourceName_ = resourceName_;
if (grantorBuilder_ == null) {
result.grantor_ = grantor_;
} else {
result.grantor_ = grantorBuilder_.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.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.hasPrincipal()) {
mergePrincipal(other.getPrincipal());
}
if (other.hasResource()) {
mergeResource(other.getResource());
}
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.hasGrantor()) {
mergeGrantor(other.getGrantor());
}
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.GrantEntity parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.milvus.grpc.GrantEntity) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.milvus.grpc.PrincipalEntity principal_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.PrincipalEntity, io.milvus.grpc.PrincipalEntity.Builder, io.milvus.grpc.PrincipalEntityOrBuilder> principalBuilder_;
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
* @return Whether the principal field is set.
*/
public boolean hasPrincipal() {
return principalBuilder_ != null || principal_ != null;
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
* @return The principal.
*/
public io.milvus.grpc.PrincipalEntity getPrincipal() {
if (principalBuilder_ == null) {
return principal_ == null ? io.milvus.grpc.PrincipalEntity.getDefaultInstance() : principal_;
} else {
return principalBuilder_.getMessage();
}
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
*/
public Builder setPrincipal(io.milvus.grpc.PrincipalEntity value) {
if (principalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
principal_ = value;
onChanged();
} else {
principalBuilder_.setMessage(value);
}
return this;
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
*/
public Builder setPrincipal(
io.milvus.grpc.PrincipalEntity.Builder builderForValue) {
if (principalBuilder_ == null) {
principal_ = builderForValue.build();
onChanged();
} else {
principalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
*/
public Builder mergePrincipal(io.milvus.grpc.PrincipalEntity value) {
if (principalBuilder_ == null) {
if (principal_ != null) {
principal_ =
io.milvus.grpc.PrincipalEntity.newBuilder(principal_).mergeFrom(value).buildPartial();
} else {
principal_ = value;
}
onChanged();
} else {
principalBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
*/
public Builder clearPrincipal() {
if (principalBuilder_ == null) {
principal_ = null;
onChanged();
} else {
principal_ = null;
principalBuilder_ = null;
}
return this;
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
*/
public io.milvus.grpc.PrincipalEntity.Builder getPrincipalBuilder() {
onChanged();
return getPrincipalFieldBuilder().getBuilder();
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
*/
public io.milvus.grpc.PrincipalEntityOrBuilder getPrincipalOrBuilder() {
if (principalBuilder_ != null) {
return principalBuilder_.getMessageOrBuilder();
} else {
return principal_ == null ?
io.milvus.grpc.PrincipalEntity.getDefaultInstance() : principal_;
}
}
/**
*
* principal
*
*
* .milvus.proto.milvus.PrincipalEntity principal = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.PrincipalEntity, io.milvus.grpc.PrincipalEntity.Builder, io.milvus.grpc.PrincipalEntityOrBuilder>
getPrincipalFieldBuilder() {
if (principalBuilder_ == null) {
principalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.PrincipalEntity, io.milvus.grpc.PrincipalEntity.Builder, io.milvus.grpc.PrincipalEntityOrBuilder>(
getPrincipal(),
getParentForChildren(),
isClean());
principal_ = null;
}
return principalBuilder_;
}
private io.milvus.grpc.ResourceEntity resource_;
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.ResourceEntity, io.milvus.grpc.ResourceEntity.Builder, io.milvus.grpc.ResourceEntityOrBuilder> resourceBuilder_;
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
* @return Whether the resource field is set.
*/
public boolean hasResource() {
return resourceBuilder_ != null || resource_ != null;
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
* @return The resource.
*/
public io.milvus.grpc.ResourceEntity getResource() {
if (resourceBuilder_ == null) {
return resource_ == null ? io.milvus.grpc.ResourceEntity.getDefaultInstance() : resource_;
} else {
return resourceBuilder_.getMessage();
}
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
*/
public Builder setResource(io.milvus.grpc.ResourceEntity value) {
if (resourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resource_ = value;
onChanged();
} else {
resourceBuilder_.setMessage(value);
}
return this;
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
*/
public Builder setResource(
io.milvus.grpc.ResourceEntity.Builder builderForValue) {
if (resourceBuilder_ == null) {
resource_ = builderForValue.build();
onChanged();
} else {
resourceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
*/
public Builder mergeResource(io.milvus.grpc.ResourceEntity value) {
if (resourceBuilder_ == null) {
if (resource_ != null) {
resource_ =
io.milvus.grpc.ResourceEntity.newBuilder(resource_).mergeFrom(value).buildPartial();
} else {
resource_ = value;
}
onChanged();
} else {
resourceBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
*/
public Builder clearResource() {
if (resourceBuilder_ == null) {
resource_ = null;
onChanged();
} else {
resource_ = null;
resourceBuilder_ = null;
}
return this;
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
*/
public io.milvus.grpc.ResourceEntity.Builder getResourceBuilder() {
onChanged();
return getResourceFieldBuilder().getBuilder();
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
*/
public io.milvus.grpc.ResourceEntityOrBuilder getResourceOrBuilder() {
if (resourceBuilder_ != null) {
return resourceBuilder_.getMessageOrBuilder();
} else {
return resource_ == null ?
io.milvus.grpc.ResourceEntity.getDefaultInstance() : resource_;
}
}
/**
*
* resource
*
*
* .milvus.proto.milvus.ResourceEntity resource = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.ResourceEntity, io.milvus.grpc.ResourceEntity.Builder, io.milvus.grpc.ResourceEntityOrBuilder>
getResourceFieldBuilder() {
if (resourceBuilder_ == null) {
resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.milvus.grpc.ResourceEntity, io.milvus.grpc.ResourceEntity.Builder, io.milvus.grpc.ResourceEntityOrBuilder>(
getResource(),
getParentForChildren(),
isClean());
resource_ = null;
}
return resourceBuilder_;
}
private java.lang.Object resourceName_ = "";
/**
*
* resource name
*
*
* string resource_name = 3;
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* resource name
*
*
* string resource_name = 3;
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* resource name
*
*
* string resource_name = 3;
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceName_ = value;
onChanged();
return this;
}
/**
*
* resource name
*
*
* string resource_name = 3;
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
onChanged();
return this;
}
/**
*
* resource name
*
*
* string resource_name = 3;
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceName_ = value;
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 grantorBuilder_ != null || grantor_ != null;
}
/**
*
* 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;
onChanged();
} else {
grantorBuilder_.setMessage(value);
}
return this;
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public Builder setGrantor(
io.milvus.grpc.GrantorEntity.Builder builderForValue) {
if (grantorBuilder_ == null) {
grantor_ = builderForValue.build();
onChanged();
} else {
grantorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public Builder mergeGrantor(io.milvus.grpc.GrantorEntity value) {
if (grantorBuilder_ == null) {
if (grantor_ != null) {
grantor_ =
io.milvus.grpc.GrantorEntity.newBuilder(grantor_).mergeFrom(value).buildPartial();
} else {
grantor_ = value;
}
onChanged();
} else {
grantorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public Builder clearGrantor() {
if (grantorBuilder_ == null) {
grantor_ = null;
onChanged();
} else {
grantor_ = null;
grantorBuilder_ = null;
}
return this;
}
/**
*
* privilege
*
*
* .milvus.proto.milvus.GrantorEntity grantor = 4;
*/
public io.milvus.grpc.GrantorEntity.Builder getGrantorBuilder() {
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_;
}
@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 {
return new GrantEntity(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.GrantEntity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}