io.milvus.grpc.PrivilegeExt 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: common.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.common.PrivilegeExt}
*/
public final class PrivilegeExt extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.common.PrivilegeExt)
PrivilegeExtOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrivilegeExt.newBuilder() to construct.
private PrivilegeExt(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrivilegeExt() {
objectType_ = 0;
objectPrivilege_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PrivilegeExt();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PrivilegeExt_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PrivilegeExt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.PrivilegeExt.class, io.milvus.grpc.PrivilegeExt.Builder.class);
}
public static final int OBJECT_TYPE_FIELD_NUMBER = 1;
private int objectType_ = 0;
/**
* .milvus.proto.common.ObjectType object_type = 1;
* @return The enum numeric value on the wire for objectType.
*/
@java.lang.Override public int getObjectTypeValue() {
return objectType_;
}
/**
* .milvus.proto.common.ObjectType object_type = 1;
* @return The objectType.
*/
@java.lang.Override public io.milvus.grpc.ObjectType getObjectType() {
io.milvus.grpc.ObjectType result = io.milvus.grpc.ObjectType.forNumber(objectType_);
return result == null ? io.milvus.grpc.ObjectType.UNRECOGNIZED : result;
}
public static final int OBJECT_PRIVILEGE_FIELD_NUMBER = 2;
private int objectPrivilege_ = 0;
/**
* .milvus.proto.common.ObjectPrivilege object_privilege = 2;
* @return The enum numeric value on the wire for objectPrivilege.
*/
@java.lang.Override public int getObjectPrivilegeValue() {
return objectPrivilege_;
}
/**
* .milvus.proto.common.ObjectPrivilege object_privilege = 2;
* @return The objectPrivilege.
*/
@java.lang.Override public io.milvus.grpc.ObjectPrivilege getObjectPrivilege() {
io.milvus.grpc.ObjectPrivilege result = io.milvus.grpc.ObjectPrivilege.forNumber(objectPrivilege_);
return result == null ? io.milvus.grpc.ObjectPrivilege.UNRECOGNIZED : result;
}
public static final int OBJECT_NAME_INDEX_FIELD_NUMBER = 3;
private int objectNameIndex_ = 0;
/**
* int32 object_name_index = 3;
* @return The objectNameIndex.
*/
@java.lang.Override
public int getObjectNameIndex() {
return objectNameIndex_;
}
public static final int OBJECT_NAME_INDEXS_FIELD_NUMBER = 4;
private int objectNameIndexs_ = 0;
/**
* int32 object_name_indexs = 4;
* @return The objectNameIndexs.
*/
@java.lang.Override
public int getObjectNameIndexs() {
return objectNameIndexs_;
}
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 (objectType_ != io.milvus.grpc.ObjectType.Collection.getNumber()) {
output.writeEnum(1, objectType_);
}
if (objectPrivilege_ != io.milvus.grpc.ObjectPrivilege.PrivilegeAll.getNumber()) {
output.writeEnum(2, objectPrivilege_);
}
if (objectNameIndex_ != 0) {
output.writeInt32(3, objectNameIndex_);
}
if (objectNameIndexs_ != 0) {
output.writeInt32(4, objectNameIndexs_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (objectType_ != io.milvus.grpc.ObjectType.Collection.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, objectType_);
}
if (objectPrivilege_ != io.milvus.grpc.ObjectPrivilege.PrivilegeAll.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, objectPrivilege_);
}
if (objectNameIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, objectNameIndex_);
}
if (objectNameIndexs_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, objectNameIndexs_);
}
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.PrivilegeExt)) {
return super.equals(obj);
}
io.milvus.grpc.PrivilegeExt other = (io.milvus.grpc.PrivilegeExt) obj;
if (objectType_ != other.objectType_) return false;
if (objectPrivilege_ != other.objectPrivilege_) return false;
if (getObjectNameIndex()
!= other.getObjectNameIndex()) return false;
if (getObjectNameIndexs()
!= other.getObjectNameIndexs()) 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();
hash = (37 * hash) + OBJECT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + objectType_;
hash = (37 * hash) + OBJECT_PRIVILEGE_FIELD_NUMBER;
hash = (53 * hash) + objectPrivilege_;
hash = (37 * hash) + OBJECT_NAME_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getObjectNameIndex();
hash = (37 * hash) + OBJECT_NAME_INDEXS_FIELD_NUMBER;
hash = (53 * hash) + getObjectNameIndexs();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.PrivilegeExt parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.PrivilegeExt 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.PrivilegeExt parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.PrivilegeExt 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.PrivilegeExt parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.PrivilegeExt parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.PrivilegeExt parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.PrivilegeExt 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.PrivilegeExt parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.PrivilegeExt 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.PrivilegeExt parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.PrivilegeExt 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.PrivilegeExt 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.common.PrivilegeExt}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.common.PrivilegeExt)
io.milvus.grpc.PrivilegeExtOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PrivilegeExt_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PrivilegeExt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.PrivilegeExt.class, io.milvus.grpc.PrivilegeExt.Builder.class);
}
// Construct using io.milvus.grpc.PrivilegeExt.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
objectType_ = 0;
objectPrivilege_ = 0;
objectNameIndex_ = 0;
objectNameIndexs_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PrivilegeExt_descriptor;
}
@java.lang.Override
public io.milvus.grpc.PrivilegeExt getDefaultInstanceForType() {
return io.milvus.grpc.PrivilegeExt.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.PrivilegeExt build() {
io.milvus.grpc.PrivilegeExt result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.PrivilegeExt buildPartial() {
io.milvus.grpc.PrivilegeExt result = new io.milvus.grpc.PrivilegeExt(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.milvus.grpc.PrivilegeExt result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.objectType_ = objectType_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.objectPrivilege_ = objectPrivilege_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.objectNameIndex_ = objectNameIndex_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.objectNameIndexs_ = objectNameIndexs_;
}
}
@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.PrivilegeExt) {
return mergeFrom((io.milvus.grpc.PrivilegeExt)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.PrivilegeExt other) {
if (other == io.milvus.grpc.PrivilegeExt.getDefaultInstance()) return this;
if (other.objectType_ != 0) {
setObjectTypeValue(other.getObjectTypeValue());
}
if (other.objectPrivilege_ != 0) {
setObjectPrivilegeValue(other.getObjectPrivilegeValue());
}
if (other.getObjectNameIndex() != 0) {
setObjectNameIndex(other.getObjectNameIndex());
}
if (other.getObjectNameIndexs() != 0) {
setObjectNameIndexs(other.getObjectNameIndexs());
}
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 8: {
objectType_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
objectPrivilege_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
objectNameIndex_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
objectNameIndexs_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
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 int objectType_ = 0;
/**
* .milvus.proto.common.ObjectType object_type = 1;
* @return The enum numeric value on the wire for objectType.
*/
@java.lang.Override public int getObjectTypeValue() {
return objectType_;
}
/**
* .milvus.proto.common.ObjectType object_type = 1;
* @param value The enum numeric value on the wire for objectType to set.
* @return This builder for chaining.
*/
public Builder setObjectTypeValue(int value) {
objectType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .milvus.proto.common.ObjectType object_type = 1;
* @return The objectType.
*/
@java.lang.Override
public io.milvus.grpc.ObjectType getObjectType() {
io.milvus.grpc.ObjectType result = io.milvus.grpc.ObjectType.forNumber(objectType_);
return result == null ? io.milvus.grpc.ObjectType.UNRECOGNIZED : result;
}
/**
* .milvus.proto.common.ObjectType object_type = 1;
* @param value The objectType to set.
* @return This builder for chaining.
*/
public Builder setObjectType(io.milvus.grpc.ObjectType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
objectType_ = value.getNumber();
onChanged();
return this;
}
/**
* .milvus.proto.common.ObjectType object_type = 1;
* @return This builder for chaining.
*/
public Builder clearObjectType() {
bitField0_ = (bitField0_ & ~0x00000001);
objectType_ = 0;
onChanged();
return this;
}
private int objectPrivilege_ = 0;
/**
* .milvus.proto.common.ObjectPrivilege object_privilege = 2;
* @return The enum numeric value on the wire for objectPrivilege.
*/
@java.lang.Override public int getObjectPrivilegeValue() {
return objectPrivilege_;
}
/**
* .milvus.proto.common.ObjectPrivilege object_privilege = 2;
* @param value The enum numeric value on the wire for objectPrivilege to set.
* @return This builder for chaining.
*/
public Builder setObjectPrivilegeValue(int value) {
objectPrivilege_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .milvus.proto.common.ObjectPrivilege object_privilege = 2;
* @return The objectPrivilege.
*/
@java.lang.Override
public io.milvus.grpc.ObjectPrivilege getObjectPrivilege() {
io.milvus.grpc.ObjectPrivilege result = io.milvus.grpc.ObjectPrivilege.forNumber(objectPrivilege_);
return result == null ? io.milvus.grpc.ObjectPrivilege.UNRECOGNIZED : result;
}
/**
* .milvus.proto.common.ObjectPrivilege object_privilege = 2;
* @param value The objectPrivilege to set.
* @return This builder for chaining.
*/
public Builder setObjectPrivilege(io.milvus.grpc.ObjectPrivilege value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
objectPrivilege_ = value.getNumber();
onChanged();
return this;
}
/**
* .milvus.proto.common.ObjectPrivilege object_privilege = 2;
* @return This builder for chaining.
*/
public Builder clearObjectPrivilege() {
bitField0_ = (bitField0_ & ~0x00000002);
objectPrivilege_ = 0;
onChanged();
return this;
}
private int objectNameIndex_ ;
/**
* int32 object_name_index = 3;
* @return The objectNameIndex.
*/
@java.lang.Override
public int getObjectNameIndex() {
return objectNameIndex_;
}
/**
* int32 object_name_index = 3;
* @param value The objectNameIndex to set.
* @return This builder for chaining.
*/
public Builder setObjectNameIndex(int value) {
objectNameIndex_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int32 object_name_index = 3;
* @return This builder for chaining.
*/
public Builder clearObjectNameIndex() {
bitField0_ = (bitField0_ & ~0x00000004);
objectNameIndex_ = 0;
onChanged();
return this;
}
private int objectNameIndexs_ ;
/**
* int32 object_name_indexs = 4;
* @return The objectNameIndexs.
*/
@java.lang.Override
public int getObjectNameIndexs() {
return objectNameIndexs_;
}
/**
* int32 object_name_indexs = 4;
* @param value The objectNameIndexs to set.
* @return This builder for chaining.
*/
public Builder setObjectNameIndexs(int value) {
objectNameIndexs_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int32 object_name_indexs = 4;
* @return This builder for chaining.
*/
public Builder clearObjectNameIndexs() {
bitField0_ = (bitField0_ & ~0x00000008);
objectNameIndexs_ = 0;
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.common.PrivilegeExt)
}
// @@protoc_insertion_point(class_scope:milvus.proto.common.PrivilegeExt)
private static final io.milvus.grpc.PrivilegeExt DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.PrivilegeExt();
}
public static io.milvus.grpc.PrivilegeExt getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PrivilegeExt 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.PrivilegeExt getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}