io.milvus.grpc.ServerInfo 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.ServerInfo}
*/
public final class ServerInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.common.ServerInfo)
ServerInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServerInfo.newBuilder() to construct.
private ServerInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServerInfo() {
buildTags_ = "";
buildTime_ = "";
gitCommit_ = "";
goVersion_ = "";
deployMode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServerInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_ServerInfo_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_ServerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.ServerInfo.class, io.milvus.grpc.ServerInfo.Builder.class);
}
public static final int BUILD_TAGS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object buildTags_ = "";
/**
* string build_tags = 1;
* @return The buildTags.
*/
@java.lang.Override
public java.lang.String getBuildTags() {
java.lang.Object ref = buildTags_;
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();
buildTags_ = s;
return s;
}
}
/**
* string build_tags = 1;
* @return The bytes for buildTags.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBuildTagsBytes() {
java.lang.Object ref = buildTags_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
buildTags_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUILD_TIME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object buildTime_ = "";
/**
* string build_time = 2;
* @return The buildTime.
*/
@java.lang.Override
public java.lang.String getBuildTime() {
java.lang.Object ref = buildTime_;
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();
buildTime_ = s;
return s;
}
}
/**
* string build_time = 2;
* @return The bytes for buildTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBuildTimeBytes() {
java.lang.Object ref = buildTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
buildTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GIT_COMMIT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object gitCommit_ = "";
/**
* string git_commit = 3;
* @return The gitCommit.
*/
@java.lang.Override
public java.lang.String getGitCommit() {
java.lang.Object ref = gitCommit_;
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();
gitCommit_ = s;
return s;
}
}
/**
* string git_commit = 3;
* @return The bytes for gitCommit.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGitCommitBytes() {
java.lang.Object ref = gitCommit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gitCommit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GO_VERSION_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object goVersion_ = "";
/**
* string go_version = 4;
* @return The goVersion.
*/
@java.lang.Override
public java.lang.String getGoVersion() {
java.lang.Object ref = goVersion_;
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();
goVersion_ = s;
return s;
}
}
/**
* string go_version = 4;
* @return The bytes for goVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGoVersionBytes() {
java.lang.Object ref = goVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
goVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPLOY_MODE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object deployMode_ = "";
/**
* string deploy_mode = 5;
* @return The deployMode.
*/
@java.lang.Override
public java.lang.String getDeployMode() {
java.lang.Object ref = deployMode_;
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();
deployMode_ = s;
return s;
}
}
/**
* string deploy_mode = 5;
* @return The bytes for deployMode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeployModeBytes() {
java.lang.Object ref = deployMode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deployMode_ = 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_ServerInfo_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(buildTags_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, buildTags_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildTime_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, buildTime_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitCommit_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gitCommit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, goVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployMode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deployMode_);
}
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(buildTags_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, buildTags_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildTime_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, buildTime_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitCommit_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gitCommit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, goVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployMode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deployMode_);
}
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.ServerInfo)) {
return super.equals(obj);
}
io.milvus.grpc.ServerInfo other = (io.milvus.grpc.ServerInfo) obj;
if (!getBuildTags()
.equals(other.getBuildTags())) return false;
if (!getBuildTime()
.equals(other.getBuildTime())) return false;
if (!getGitCommit()
.equals(other.getGitCommit())) return false;
if (!getGoVersion()
.equals(other.getGoVersion())) return false;
if (!getDeployMode()
.equals(other.getDeployMode())) 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) + BUILD_TAGS_FIELD_NUMBER;
hash = (53 * hash) + getBuildTags().hashCode();
hash = (37 * hash) + BUILD_TIME_FIELD_NUMBER;
hash = (53 * hash) + getBuildTime().hashCode();
hash = (37 * hash) + GIT_COMMIT_FIELD_NUMBER;
hash = (53 * hash) + getGitCommit().hashCode();
hash = (37 * hash) + GO_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getGoVersion().hashCode();
hash = (37 * hash) + DEPLOY_MODE_FIELD_NUMBER;
hash = (53 * hash) + getDeployMode().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.ServerInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ServerInfo 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.ServerInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ServerInfo 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.ServerInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ServerInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.ServerInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.ServerInfo 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.ServerInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.ServerInfo 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.ServerInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.ServerInfo 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.ServerInfo 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.ServerInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.common.ServerInfo)
io.milvus.grpc.ServerInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_ServerInfo_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_ServerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.ServerInfo.class, io.milvus.grpc.ServerInfo.Builder.class);
}
// Construct using io.milvus.grpc.ServerInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
buildTags_ = "";
buildTime_ = "";
gitCommit_ = "";
goVersion_ = "";
deployMode_ = "";
internalGetMutableReserved().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_ServerInfo_descriptor;
}
@java.lang.Override
public io.milvus.grpc.ServerInfo getDefaultInstanceForType() {
return io.milvus.grpc.ServerInfo.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.ServerInfo build() {
io.milvus.grpc.ServerInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.ServerInfo buildPartial() {
io.milvus.grpc.ServerInfo result = new io.milvus.grpc.ServerInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.milvus.grpc.ServerInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.buildTags_ = buildTags_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.buildTime_ = buildTime_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.gitCommit_ = gitCommit_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.goVersion_ = goVersion_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.deployMode_ = deployMode_;
}
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.ServerInfo) {
return mergeFrom((io.milvus.grpc.ServerInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.ServerInfo other) {
if (other == io.milvus.grpc.ServerInfo.getDefaultInstance()) return this;
if (!other.getBuildTags().isEmpty()) {
buildTags_ = other.buildTags_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getBuildTime().isEmpty()) {
buildTime_ = other.buildTime_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getGitCommit().isEmpty()) {
gitCommit_ = other.gitCommit_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getGoVersion().isEmpty()) {
goVersion_ = other.goVersion_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getDeployMode().isEmpty()) {
deployMode_ = other.deployMode_;
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: {
buildTags_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
buildTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
gitCommit_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
goVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
deployMode_ = 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 buildTags_ = "";
/**
* string build_tags = 1;
* @return The buildTags.
*/
public java.lang.String getBuildTags() {
java.lang.Object ref = buildTags_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
buildTags_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string build_tags = 1;
* @return The bytes for buildTags.
*/
public com.google.protobuf.ByteString
getBuildTagsBytes() {
java.lang.Object ref = buildTags_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
buildTags_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string build_tags = 1;
* @param value The buildTags to set.
* @return This builder for chaining.
*/
public Builder setBuildTags(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
buildTags_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string build_tags = 1;
* @return This builder for chaining.
*/
public Builder clearBuildTags() {
buildTags_ = getDefaultInstance().getBuildTags();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string build_tags = 1;
* @param value The bytes for buildTags to set.
* @return This builder for chaining.
*/
public Builder setBuildTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
buildTags_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object buildTime_ = "";
/**
* string build_time = 2;
* @return The buildTime.
*/
public java.lang.String getBuildTime() {
java.lang.Object ref = buildTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
buildTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string build_time = 2;
* @return The bytes for buildTime.
*/
public com.google.protobuf.ByteString
getBuildTimeBytes() {
java.lang.Object ref = buildTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
buildTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string build_time = 2;
* @param value The buildTime to set.
* @return This builder for chaining.
*/
public Builder setBuildTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
buildTime_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string build_time = 2;
* @return This builder for chaining.
*/
public Builder clearBuildTime() {
buildTime_ = getDefaultInstance().getBuildTime();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string build_time = 2;
* @param value The bytes for buildTime to set.
* @return This builder for chaining.
*/
public Builder setBuildTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
buildTime_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object gitCommit_ = "";
/**
* string git_commit = 3;
* @return The gitCommit.
*/
public java.lang.String getGitCommit() {
java.lang.Object ref = gitCommit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gitCommit_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string git_commit = 3;
* @return The bytes for gitCommit.
*/
public com.google.protobuf.ByteString
getGitCommitBytes() {
java.lang.Object ref = gitCommit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gitCommit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string git_commit = 3;
* @param value The gitCommit to set.
* @return This builder for chaining.
*/
public Builder setGitCommit(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
gitCommit_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string git_commit = 3;
* @return This builder for chaining.
*/
public Builder clearGitCommit() {
gitCommit_ = getDefaultInstance().getGitCommit();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string git_commit = 3;
* @param value The bytes for gitCommit to set.
* @return This builder for chaining.
*/
public Builder setGitCommitBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
gitCommit_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object goVersion_ = "";
/**
* string go_version = 4;
* @return The goVersion.
*/
public java.lang.String getGoVersion() {
java.lang.Object ref = goVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
goVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string go_version = 4;
* @return The bytes for goVersion.
*/
public com.google.protobuf.ByteString
getGoVersionBytes() {
java.lang.Object ref = goVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
goVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string go_version = 4;
* @param value The goVersion to set.
* @return This builder for chaining.
*/
public Builder setGoVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
goVersion_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string go_version = 4;
* @return This builder for chaining.
*/
public Builder clearGoVersion() {
goVersion_ = getDefaultInstance().getGoVersion();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string go_version = 4;
* @param value The bytes for goVersion to set.
* @return This builder for chaining.
*/
public Builder setGoVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
goVersion_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object deployMode_ = "";
/**
* string deploy_mode = 5;
* @return The deployMode.
*/
public java.lang.String getDeployMode() {
java.lang.Object ref = deployMode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deployMode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string deploy_mode = 5;
* @return The bytes for deployMode.
*/
public com.google.protobuf.ByteString
getDeployModeBytes() {
java.lang.Object ref = deployMode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deployMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string deploy_mode = 5;
* @param value The deployMode to set.
* @return This builder for chaining.
*/
public Builder setDeployMode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
deployMode_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* string deploy_mode = 5;
* @return This builder for chaining.
*/
public Builder clearDeployMode() {
deployMode_ = getDefaultInstance().getDeployMode();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* string deploy_mode = 5;
* @param value The bytes for deployMode to set.
* @return This builder for chaining.
*/
public Builder setDeployModeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
deployMode_ = 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.ServerInfo)
}
// @@protoc_insertion_point(class_scope:milvus.proto.common.ServerInfo)
private static final io.milvus.grpc.ServerInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.ServerInfo();
}
public static io.milvus.grpc.ServerInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServerInfo 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.ServerInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}