io.milvus.grpc.ClientInfo 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.ClientInfo}
*/
public final class ClientInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.common.ClientInfo)
ClientInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientInfo.newBuilder() to construct.
private ClientInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientInfo() {
sdkType_ = "";
sdkVersion_ = "";
localTime_ = "";
user_ = "";
host_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_ClientInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetReserved();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_ClientInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.ClientInfo.class, io.milvus.grpc.ClientInfo.Builder.class);
}
public static final int SDK_TYPE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sdkType_ = "";
/**
*
* sdk_type can be `python`, `golang`, `nodejs` and etc. It's not proper to make `sdk_type` an
* enumerate type, since we cannot always update the enum value everytime when newly sdk is supported.
*
*
* string sdk_type = 1;
* @return The sdkType.
*/
@java.lang.Override
public java.lang.String getSdkType() {
java.lang.Object ref = sdkType_;
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();
sdkType_ = s;
return s;
}
}
/**
*
* sdk_type can be `python`, `golang`, `nodejs` and etc. It's not proper to make `sdk_type` an
* enumerate type, since we cannot always update the enum value everytime when newly sdk is supported.
*
*
* string sdk_type = 1;
* @return The bytes for sdkType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSdkTypeBytes() {
java.lang.Object ref = sdkType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sdkType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SDK_VERSION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object sdkVersion_ = "";
/**
* string sdk_version = 2;
* @return The sdkVersion.
*/
@java.lang.Override
public java.lang.String getSdkVersion() {
java.lang.Object ref = sdkVersion_;
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();
sdkVersion_ = s;
return s;
}
}
/**
* string sdk_version = 2;
* @return The bytes for sdkVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSdkVersionBytes() {
java.lang.Object ref = sdkVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sdkVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCAL_TIME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object localTime_ = "";
/**
* string local_time = 3;
* @return The localTime.
*/
@java.lang.Override
public java.lang.String getLocalTime() {
java.lang.Object ref = localTime_;
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();
localTime_ = s;
return s;
}
}
/**
* string local_time = 3;
* @return The bytes for localTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocalTimeBytes() {
java.lang.Object ref = localTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object user_ = "";
/**
* string user = 4;
* @return The user.
*/
@java.lang.Override
public java.lang.String getUser() {
java.lang.Object ref = user_;
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();
user_ = s;
return s;
}
}
/**
* string user = 4;
* @return The bytes for user.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOST_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object host_ = "";
/**
* string host = 5;
* @return The host.
*/
@java.lang.Override
public java.lang.String getHost() {
java.lang.Object ref = host_;
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();
host_ = s;
return s;
}
}
/**
* string host = 5;
* @return The bytes for host.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESERVED_FIELD_NUMBER = 6;
private static final class ReservedDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_ClientInfo_ReservedEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> reserved_;
private com.google.protobuf.MapField
internalGetReserved() {
if (reserved_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ReservedDefaultEntryHolder.defaultEntry);
}
return reserved_;
}
public int getReservedCount() {
return internalGetReserved().getMap().size();
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
@java.lang.Override
public boolean containsReserved(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetReserved().getMap().containsKey(key);
}
/**
* Use {@link #getReservedMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getReserved() {
return getReservedMap();
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
@java.lang.Override
public java.util.Map getReservedMap() {
return internalGetReserved().getMap();
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
@java.lang.Override
public /* nullable */
java.lang.String getReservedOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetReserved().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
@java.lang.Override
public java.lang.String getReservedOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetReserved().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sdkType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sdkType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sdkVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sdkVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localTime_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, localTime_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, user_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, host_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetReserved(),
ReservedDefaultEntryHolder.defaultEntry,
6);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sdkType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sdkType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sdkVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sdkVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localTime_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, localTime_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, user_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, host_);
}
for (java.util.Map.Entry entry
: internalGetReserved().getMap().entrySet()) {
com.google.protobuf.MapEntry
reserved__ = ReservedDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, reserved__);
}
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.ClientInfo)) {
return super.equals(obj);
}
io.milvus.grpc.ClientInfo other = (io.milvus.grpc.ClientInfo) obj;
if (!getSdkType()
.equals(other.getSdkType())) return false;
if (!getSdkVersion()
.equals(other.getSdkVersion())) return false;
if (!getLocalTime()
.equals(other.getLocalTime())) return false;
if (!getUser()
.equals(other.getUser())) return false;
if (!getHost()
.equals(other.getHost())) return false;
if (!internalGetReserved().equals(
other.internalGetReserved())) 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) + SDK_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getSdkType().hashCode();
hash = (37 * hash) + SDK_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getSdkVersion().hashCode();
hash = (37 * hash) + LOCAL_TIME_FIELD_NUMBER;
hash = (53 * hash) + getLocalTime().hashCode();
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
if (!internalGetReserved().getMap().isEmpty()) {
hash = (37 * hash) + RESERVED_FIELD_NUMBER;
hash = (53 * hash) + internalGetReserved().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.ClientInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ClientInfo 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.ClientInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ClientInfo 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.ClientInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ClientInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.ClientInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.ClientInfo 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.ClientInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.ClientInfo 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.ClientInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.ClientInfo 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.ClientInfo 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.ClientInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.common.ClientInfo)
io.milvus.grpc.ClientInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_ClientInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetReserved();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableReserved();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_ClientInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.ClientInfo.class, io.milvus.grpc.ClientInfo.Builder.class);
}
// Construct using io.milvus.grpc.ClientInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sdkType_ = "";
sdkVersion_ = "";
localTime_ = "";
user_ = "";
host_ = "";
internalGetMutableReserved().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_ClientInfo_descriptor;
}
@java.lang.Override
public io.milvus.grpc.ClientInfo getDefaultInstanceForType() {
return io.milvus.grpc.ClientInfo.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.ClientInfo build() {
io.milvus.grpc.ClientInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.ClientInfo buildPartial() {
io.milvus.grpc.ClientInfo result = new io.milvus.grpc.ClientInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.milvus.grpc.ClientInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sdkType_ = sdkType_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.sdkVersion_ = sdkVersion_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.localTime_ = localTime_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.user_ = user_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.host_ = host_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.reserved_ = internalGetReserved();
result.reserved_.makeImmutable();
}
}
@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.ClientInfo) {
return mergeFrom((io.milvus.grpc.ClientInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.ClientInfo other) {
if (other == io.milvus.grpc.ClientInfo.getDefaultInstance()) return this;
if (!other.getSdkType().isEmpty()) {
sdkType_ = other.sdkType_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getSdkVersion().isEmpty()) {
sdkVersion_ = other.sdkVersion_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getLocalTime().isEmpty()) {
localTime_ = other.localTime_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getUser().isEmpty()) {
user_ = other.user_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getHost().isEmpty()) {
host_ = other.host_;
bitField0_ |= 0x00000010;
onChanged();
}
internalGetMutableReserved().mergeFrom(
other.internalGetReserved());
bitField0_ |= 0x00000020;
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: {
sdkType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
sdkVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
localTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
user_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
host_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
com.google.protobuf.MapEntry
reserved__ = input.readMessage(
ReservedDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableReserved().getMutableMap().put(
reserved__.getKey(), reserved__.getValue());
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sdkType_ = "";
/**
*
* sdk_type can be `python`, `golang`, `nodejs` and etc. It's not proper to make `sdk_type` an
* enumerate type, since we cannot always update the enum value everytime when newly sdk is supported.
*
*
* string sdk_type = 1;
* @return The sdkType.
*/
public java.lang.String getSdkType() {
java.lang.Object ref = sdkType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sdkType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* sdk_type can be `python`, `golang`, `nodejs` and etc. It's not proper to make `sdk_type` an
* enumerate type, since we cannot always update the enum value everytime when newly sdk is supported.
*
*
* string sdk_type = 1;
* @return The bytes for sdkType.
*/
public com.google.protobuf.ByteString
getSdkTypeBytes() {
java.lang.Object ref = sdkType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sdkType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* sdk_type can be `python`, `golang`, `nodejs` and etc. It's not proper to make `sdk_type` an
* enumerate type, since we cannot always update the enum value everytime when newly sdk is supported.
*
*
* string sdk_type = 1;
* @param value The sdkType to set.
* @return This builder for chaining.
*/
public Builder setSdkType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sdkType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* sdk_type can be `python`, `golang`, `nodejs` and etc. It's not proper to make `sdk_type` an
* enumerate type, since we cannot always update the enum value everytime when newly sdk is supported.
*
*
* string sdk_type = 1;
* @return This builder for chaining.
*/
public Builder clearSdkType() {
sdkType_ = getDefaultInstance().getSdkType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* sdk_type can be `python`, `golang`, `nodejs` and etc. It's not proper to make `sdk_type` an
* enumerate type, since we cannot always update the enum value everytime when newly sdk is supported.
*
*
* string sdk_type = 1;
* @param value The bytes for sdkType to set.
* @return This builder for chaining.
*/
public Builder setSdkTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sdkType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object sdkVersion_ = "";
/**
* string sdk_version = 2;
* @return The sdkVersion.
*/
public java.lang.String getSdkVersion() {
java.lang.Object ref = sdkVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sdkVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sdk_version = 2;
* @return The bytes for sdkVersion.
*/
public com.google.protobuf.ByteString
getSdkVersionBytes() {
java.lang.Object ref = sdkVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sdkVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sdk_version = 2;
* @param value The sdkVersion to set.
* @return This builder for chaining.
*/
public Builder setSdkVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sdkVersion_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string sdk_version = 2;
* @return This builder for chaining.
*/
public Builder clearSdkVersion() {
sdkVersion_ = getDefaultInstance().getSdkVersion();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string sdk_version = 2;
* @param value The bytes for sdkVersion to set.
* @return This builder for chaining.
*/
public Builder setSdkVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sdkVersion_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object localTime_ = "";
/**
* string local_time = 3;
* @return The localTime.
*/
public java.lang.String getLocalTime() {
java.lang.Object ref = localTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
localTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string local_time = 3;
* @return The bytes for localTime.
*/
public com.google.protobuf.ByteString
getLocalTimeBytes() {
java.lang.Object ref = localTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
localTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string local_time = 3;
* @param value The localTime to set.
* @return This builder for chaining.
*/
public Builder setLocalTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
localTime_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string local_time = 3;
* @return This builder for chaining.
*/
public Builder clearLocalTime() {
localTime_ = getDefaultInstance().getLocalTime();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string local_time = 3;
* @param value The bytes for localTime to set.
* @return This builder for chaining.
*/
public Builder setLocalTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
localTime_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object user_ = "";
/**
* string user = 4;
* @return The user.
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
user_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string user = 4;
* @return The bytes for user.
*/
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string user = 4;
* @param value The user to set.
* @return This builder for chaining.
*/
public Builder setUser(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
user_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string user = 4;
* @return This builder for chaining.
*/
public Builder clearUser() {
user_ = getDefaultInstance().getUser();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string user = 4;
* @param value The bytes for user to set.
* @return This builder for chaining.
*/
public Builder setUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
user_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object host_ = "";
/**
* string host = 5;
* @return The host.
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string host = 5;
* @return The bytes for host.
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string host = 5;
* @param value The host to set.
* @return This builder for chaining.
*/
public Builder setHost(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
host_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* string host = 5;
* @return This builder for chaining.
*/
public Builder clearHost() {
host_ = getDefaultInstance().getHost();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* string host = 5;
* @param value The bytes for host to set.
* @return This builder for chaining.
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
host_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> reserved_;
private com.google.protobuf.MapField
internalGetReserved() {
if (reserved_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ReservedDefaultEntryHolder.defaultEntry);
}
return reserved_;
}
private com.google.protobuf.MapField
internalGetMutableReserved() {
if (reserved_ == null) {
reserved_ = com.google.protobuf.MapField.newMapField(
ReservedDefaultEntryHolder.defaultEntry);
}
if (!reserved_.isMutable()) {
reserved_ = reserved_.copy();
}
bitField0_ |= 0x00000020;
onChanged();
return reserved_;
}
public int getReservedCount() {
return internalGetReserved().getMap().size();
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
@java.lang.Override
public boolean containsReserved(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetReserved().getMap().containsKey(key);
}
/**
* Use {@link #getReservedMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getReserved() {
return getReservedMap();
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
@java.lang.Override
public java.util.Map getReservedMap() {
return internalGetReserved().getMap();
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
@java.lang.Override
public /* nullable */
java.lang.String getReservedOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetReserved().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
@java.lang.Override
public java.lang.String getReservedOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetReserved().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearReserved() {
bitField0_ = (bitField0_ & ~0x00000020);
internalGetMutableReserved().getMutableMap()
.clear();
return this;
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
public Builder removeReserved(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableReserved().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableReserved() {
bitField0_ |= 0x00000020;
return internalGetMutableReserved().getMutableMap();
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
public Builder putReserved(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableReserved().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000020;
return this;
}
/**
*
* reserved for newly-added feature if necessary.
*
*
* map<string, string> reserved = 6;
*/
public Builder putAllReserved(
java.util.Map values) {
internalGetMutableReserved().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000020;
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.ClientInfo)
}
// @@protoc_insertion_point(class_scope:milvus.proto.common.ClientInfo)
private static final io.milvus.grpc.ClientInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.ClientInfo();
}
public static io.milvus.grpc.ClientInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientInfo 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.ClientInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}