com.tencent.polaris.specification.api.v1.service.manage.Heartbeat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: heartbeat.proto
package com.tencent.polaris.specification.api.v1.service.manage;
public final class Heartbeat {
private Heartbeat() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface HeartbeatRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.HeartbeatRecord)
com.google.protobuf.MessageOrBuilder {
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
* int64 lastHeartbeatSec = 6 [json_name = "last_heartbeat_sec"];
* @return The lastHeartbeatSec.
*/
long getLastHeartbeatSec();
/**
* bool exist = 7 [json_name = "exist"];
* @return The exist.
*/
boolean getExist();
}
/**
* Protobuf type {@code v1.HeartbeatRecord}
*/
public static final class HeartbeatRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.HeartbeatRecord)
HeartbeatRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use HeartbeatRecord.newBuilder() to construct.
private HeartbeatRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HeartbeatRecord() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HeartbeatRecord();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder.class);
}
public static final int INSTANCEID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LASTHEARTBEATSEC_FIELD_NUMBER = 6;
private long lastHeartbeatSec_;
/**
* int64 lastHeartbeatSec = 6 [json_name = "last_heartbeat_sec"];
* @return The lastHeartbeatSec.
*/
@java.lang.Override
public long getLastHeartbeatSec() {
return lastHeartbeatSec_;
}
public static final int EXIST_FIELD_NUMBER = 7;
private boolean exist_;
/**
* bool exist = 7 [json_name = "exist"];
* @return The exist.
*/
@java.lang.Override
public boolean getExist() {
return exist_;
}
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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
if (lastHeartbeatSec_ != 0L) {
output.writeInt64(6, lastHeartbeatSec_);
}
if (exist_ != false) {
output.writeBool(7, exist_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
if (lastHeartbeatSec_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, lastHeartbeatSec_);
}
if (exist_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, exist_);
}
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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord other = (com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) return false;
if (getLastHeartbeatSec()
!= other.getLastHeartbeatSec()) return false;
if (getExist()
!= other.getExist()) 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) + INSTANCEID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (37 * hash) + LASTHEARTBEATSEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastHeartbeatSec());
hash = (37 * hash) + EXIST_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getExist());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord 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(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord 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 v1.HeartbeatRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.HeartbeatRecord)
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
instanceId_ = "";
lastHeartbeatSec_ = 0L;
exist_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatRecord_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord build() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord result = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord(this);
result.instanceId_ = instanceId_;
result.lastHeartbeatSec_ = lastHeartbeatSec_;
result.exist_ = exist_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
onChanged();
}
if (other.getLastHeartbeatSec() != 0L) {
setLastHeartbeatSec(other.getLastHeartbeatSec());
}
if (other.getExist() != false) {
setExist(other.getExist());
}
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: {
instanceId_ = input.readStringRequireUtf8();
break;
} // case 10
case 48: {
lastHeartbeatSec_ = input.readInt64();
break;
} // case 48
case 56: {
exist_ = input.readBool();
break;
} // case 56
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 java.lang.Object instanceId_ = "";
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = value;
onChanged();
return this;
}
private long lastHeartbeatSec_ ;
/**
* int64 lastHeartbeatSec = 6 [json_name = "last_heartbeat_sec"];
* @return The lastHeartbeatSec.
*/
@java.lang.Override
public long getLastHeartbeatSec() {
return lastHeartbeatSec_;
}
/**
* int64 lastHeartbeatSec = 6 [json_name = "last_heartbeat_sec"];
* @param value The lastHeartbeatSec to set.
* @return This builder for chaining.
*/
public Builder setLastHeartbeatSec(long value) {
lastHeartbeatSec_ = value;
onChanged();
return this;
}
/**
* int64 lastHeartbeatSec = 6 [json_name = "last_heartbeat_sec"];
* @return This builder for chaining.
*/
public Builder clearLastHeartbeatSec() {
lastHeartbeatSec_ = 0L;
onChanged();
return this;
}
private boolean exist_ ;
/**
* bool exist = 7 [json_name = "exist"];
* @return The exist.
*/
@java.lang.Override
public boolean getExist() {
return exist_;
}
/**
* bool exist = 7 [json_name = "exist"];
* @param value The exist to set.
* @return This builder for chaining.
*/
public Builder setExist(boolean value) {
exist_ = value;
onChanged();
return this;
}
/**
* bool exist = 7 [json_name = "exist"];
* @return This builder for chaining.
*/
public Builder clearExist() {
exist_ = false;
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:v1.HeartbeatRecord)
}
// @@protoc_insertion_point(class_scope:v1.HeartbeatRecord)
private static final com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord();
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HeartbeatRecord 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InstanceHeartbeatOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.InstanceHeartbeat)
com.google.protobuf.MessageOrBuilder {
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
* string service = 2 [json_name = "service"];
* @return The service.
*/
java.lang.String getService();
/**
* string service = 2 [json_name = "service"];
* @return The bytes for service.
*/
com.google.protobuf.ByteString
getServiceBytes();
/**
* string namespace = 3 [json_name = "namespace"];
* @return The namespace.
*/
java.lang.String getNamespace();
/**
* string namespace = 3 [json_name = "namespace"];
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
/**
* string host = 4 [json_name = "host"];
* @return The host.
*/
java.lang.String getHost();
/**
* string host = 4 [json_name = "host"];
* @return The bytes for host.
*/
com.google.protobuf.ByteString
getHostBytes();
/**
* uint32 port = 5 [json_name = "port"];
* @return The port.
*/
int getPort();
}
/**
* Protobuf type {@code v1.InstanceHeartbeat}
*/
public static final class InstanceHeartbeat extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.InstanceHeartbeat)
InstanceHeartbeatOrBuilder {
private static final long serialVersionUID = 0L;
// Use InstanceHeartbeat.newBuilder() to construct.
private InstanceHeartbeat(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InstanceHeartbeat() {
instanceId_ = "";
service_ = "";
namespace_ = "";
host_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InstanceHeartbeat();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_InstanceHeartbeat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_InstanceHeartbeat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder.class);
}
public static final int INSTANCEID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_FIELD_NUMBER = 2;
private volatile java.lang.Object service_;
/**
* string service = 2 [json_name = "service"];
* @return The service.
*/
@java.lang.Override
public java.lang.String getService() {
java.lang.Object ref = service_;
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();
service_ = s;
return s;
}
}
/**
* string service = 2 [json_name = "service"];
* @return The bytes for service.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAMESPACE_FIELD_NUMBER = 3;
private volatile java.lang.Object namespace_;
/**
* string namespace = 3 [json_name = "namespace"];
* @return The namespace.
*/
@java.lang.Override
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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();
namespace_ = s;
return s;
}
}
/**
* string namespace = 3 [json_name = "namespace"];
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOST_FIELD_NUMBER = 4;
private volatile java.lang.Object host_;
/**
* string host = 4 [json_name = "host"];
* @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 = 4 [json_name = "host"];
* @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 PORT_FIELD_NUMBER = 5;
private int port_;
/**
* uint32 port = 5 [json_name = "port"];
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, service_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_);
}
if (port_ != 0) {
output.writeUInt32(5, port_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_);
}
if (port_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, port_);
}
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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat other = (com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) return false;
if (!getService()
.equals(other.getService())) return false;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (!getHost()
.equals(other.getHost())) return false;
if (getPort()
!= other.getPort()) 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) + INSTANCEID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService().hashCode();
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat 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(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat 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 v1.InstanceHeartbeat}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.InstanceHeartbeat)
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_InstanceHeartbeat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_InstanceHeartbeat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
instanceId_ = "";
service_ = "";
namespace_ = "";
host_ = "";
port_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_InstanceHeartbeat_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat build() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat result = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat(this);
result.instanceId_ = instanceId_;
result.service_ = service_;
result.namespace_ = namespace_;
result.host_ = host_;
result.port_ = port_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
onChanged();
}
if (!other.getService().isEmpty()) {
service_ = other.service_;
onChanged();
}
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (!other.getHost().isEmpty()) {
host_ = other.host_;
onChanged();
}
if (other.getPort() != 0) {
setPort(other.getPort());
}
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: {
instanceId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
service_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
namespace_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
host_ = input.readStringRequireUtf8();
break;
} // case 34
case 40: {
port_ = input.readUInt32();
break;
} // case 40
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 java.lang.Object instanceId_ = "";
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
* string instanceId = 1 [json_name = "instance_id"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = value;
onChanged();
return this;
}
private java.lang.Object service_ = "";
/**
* string service = 2 [json_name = "service"];
* @return The service.
*/
public java.lang.String getService() {
java.lang.Object ref = service_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
service_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string service = 2 [json_name = "service"];
* @return The bytes for service.
*/
public com.google.protobuf.ByteString
getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string service = 2 [json_name = "service"];
* @param value The service to set.
* @return This builder for chaining.
*/
public Builder setService(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
service_ = value;
onChanged();
return this;
}
/**
* string service = 2 [json_name = "service"];
* @return This builder for chaining.
*/
public Builder clearService() {
service_ = getDefaultInstance().getService();
onChanged();
return this;
}
/**
* string service = 2 [json_name = "service"];
* @param value The bytes for service to set.
* @return This builder for chaining.
*/
public Builder setServiceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
service_ = value;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
* string namespace = 3 [json_name = "namespace"];
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string namespace = 3 [json_name = "namespace"];
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string namespace = 3 [json_name = "namespace"];
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namespace_ = value;
onChanged();
return this;
}
/**
* string namespace = 3 [json_name = "namespace"];
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
* string namespace = 3 [json_name = "namespace"];
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namespace_ = value;
onChanged();
return this;
}
private java.lang.Object host_ = "";
/**
* string host = 4 [json_name = "host"];
* @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 = 4 [json_name = "host"];
* @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 = 4 [json_name = "host"];
* @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;
onChanged();
return this;
}
/**
* string host = 4 [json_name = "host"];
* @return This builder for chaining.
*/
public Builder clearHost() {
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* string host = 4 [json_name = "host"];
* @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;
onChanged();
return this;
}
private int port_ ;
/**
* uint32 port = 5 [json_name = "port"];
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
/**
* uint32 port = 5 [json_name = "port"];
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(int value) {
port_ = value;
onChanged();
return this;
}
/**
* uint32 port = 5 [json_name = "port"];
* @return This builder for chaining.
*/
public Builder clearPort() {
port_ = 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:v1.InstanceHeartbeat)
}
// @@protoc_insertion_point(class_scope:v1.InstanceHeartbeat)
private static final com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat();
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InstanceHeartbeat 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HeartbeatsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.HeartbeatsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
java.util.List
getHeartbeatsList();
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat getHeartbeats(int index);
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
int getHeartbeatsCount();
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder>
getHeartbeatsOrBuilderList();
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder getHeartbeatsOrBuilder(
int index);
}
/**
* Protobuf type {@code v1.HeartbeatsRequest}
*/
public static final class HeartbeatsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.HeartbeatsRequest)
HeartbeatsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use HeartbeatsRequest.newBuilder() to construct.
private HeartbeatsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HeartbeatsRequest() {
heartbeats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HeartbeatsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest.Builder.class);
}
public static final int HEARTBEATS_FIELD_NUMBER = 1;
private java.util.List heartbeats_;
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
@java.lang.Override
public java.util.List getHeartbeatsList() {
return heartbeats_;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder>
getHeartbeatsOrBuilderList() {
return heartbeats_;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
@java.lang.Override
public int getHeartbeatsCount() {
return heartbeats_.size();
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat getHeartbeats(int index) {
return heartbeats_.get(index);
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder getHeartbeatsOrBuilder(
int index) {
return heartbeats_.get(index);
}
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 {
for (int i = 0; i < heartbeats_.size(); i++) {
output.writeMessage(1, heartbeats_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < heartbeats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, heartbeats_.get(i));
}
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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest other = (com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest) obj;
if (!getHeartbeatsList()
.equals(other.getHeartbeatsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getHeartbeatsCount() > 0) {
hash = (37 * hash) + HEARTBEATS_FIELD_NUMBER;
hash = (53 * hash) + getHeartbeatsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest 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(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest 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 v1.HeartbeatsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.HeartbeatsRequest)
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (heartbeatsBuilder_ == null) {
heartbeats_ = java.util.Collections.emptyList();
} else {
heartbeats_ = null;
heartbeatsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsRequest_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest build() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest result = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest(this);
int from_bitField0_ = bitField0_;
if (heartbeatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
heartbeats_ = java.util.Collections.unmodifiableList(heartbeats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.heartbeats_ = heartbeats_;
} else {
result.heartbeats_ = heartbeatsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest.getDefaultInstance()) return this;
if (heartbeatsBuilder_ == null) {
if (!other.heartbeats_.isEmpty()) {
if (heartbeats_.isEmpty()) {
heartbeats_ = other.heartbeats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHeartbeatsIsMutable();
heartbeats_.addAll(other.heartbeats_);
}
onChanged();
}
} else {
if (!other.heartbeats_.isEmpty()) {
if (heartbeatsBuilder_.isEmpty()) {
heartbeatsBuilder_.dispose();
heartbeatsBuilder_ = null;
heartbeats_ = other.heartbeats_;
bitField0_ = (bitField0_ & ~0x00000001);
heartbeatsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHeartbeatsFieldBuilder() : null;
} else {
heartbeatsBuilder_.addAllMessages(other.heartbeats_);
}
}
}
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: {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.parser(),
extensionRegistry);
if (heartbeatsBuilder_ == null) {
ensureHeartbeatsIsMutable();
heartbeats_.add(m);
} else {
heartbeatsBuilder_.addMessage(m);
}
break;
} // case 10
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.util.List heartbeats_ =
java.util.Collections.emptyList();
private void ensureHeartbeatsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
heartbeats_ = new java.util.ArrayList(heartbeats_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder> heartbeatsBuilder_;
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public java.util.List getHeartbeatsList() {
if (heartbeatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(heartbeats_);
} else {
return heartbeatsBuilder_.getMessageList();
}
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public int getHeartbeatsCount() {
if (heartbeatsBuilder_ == null) {
return heartbeats_.size();
} else {
return heartbeatsBuilder_.getCount();
}
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat getHeartbeats(int index) {
if (heartbeatsBuilder_ == null) {
return heartbeats_.get(index);
} else {
return heartbeatsBuilder_.getMessage(index);
}
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public Builder setHeartbeats(
int index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat value) {
if (heartbeatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeartbeatsIsMutable();
heartbeats_.set(index, value);
onChanged();
} else {
heartbeatsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public Builder setHeartbeats(
int index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder builderForValue) {
if (heartbeatsBuilder_ == null) {
ensureHeartbeatsIsMutable();
heartbeats_.set(index, builderForValue.build());
onChanged();
} else {
heartbeatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public Builder addHeartbeats(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat value) {
if (heartbeatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeartbeatsIsMutable();
heartbeats_.add(value);
onChanged();
} else {
heartbeatsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public Builder addHeartbeats(
int index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat value) {
if (heartbeatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeartbeatsIsMutable();
heartbeats_.add(index, value);
onChanged();
} else {
heartbeatsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public Builder addHeartbeats(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder builderForValue) {
if (heartbeatsBuilder_ == null) {
ensureHeartbeatsIsMutable();
heartbeats_.add(builderForValue.build());
onChanged();
} else {
heartbeatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public Builder addHeartbeats(
int index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder builderForValue) {
if (heartbeatsBuilder_ == null) {
ensureHeartbeatsIsMutable();
heartbeats_.add(index, builderForValue.build());
onChanged();
} else {
heartbeatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public Builder addAllHeartbeats(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat> values) {
if (heartbeatsBuilder_ == null) {
ensureHeartbeatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, heartbeats_);
onChanged();
} else {
heartbeatsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public Builder clearHeartbeats() {
if (heartbeatsBuilder_ == null) {
heartbeats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
heartbeatsBuilder_.clear();
}
return this;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public Builder removeHeartbeats(int index) {
if (heartbeatsBuilder_ == null) {
ensureHeartbeatsIsMutable();
heartbeats_.remove(index);
onChanged();
} else {
heartbeatsBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder getHeartbeatsBuilder(
int index) {
return getHeartbeatsFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder getHeartbeatsOrBuilder(
int index) {
if (heartbeatsBuilder_ == null) {
return heartbeats_.get(index); } else {
return heartbeatsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder>
getHeartbeatsOrBuilderList() {
if (heartbeatsBuilder_ != null) {
return heartbeatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(heartbeats_);
}
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder addHeartbeatsBuilder() {
return getHeartbeatsFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.getDefaultInstance());
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder addHeartbeatsBuilder(
int index) {
return getHeartbeatsFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.getDefaultInstance());
}
/**
* repeated .v1.InstanceHeartbeat heartbeats = 1 [json_name = "heartbeats"];
*/
public java.util.List
getHeartbeatsBuilderList() {
return getHeartbeatsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder>
getHeartbeatsFieldBuilder() {
if (heartbeatsBuilder_ == null) {
heartbeatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeat.Builder, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.InstanceHeartbeatOrBuilder>(
heartbeats_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
heartbeats_ = null;
}
return heartbeatsBuilder_;
}
@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:v1.HeartbeatsRequest)
}
// @@protoc_insertion_point(class_scope:v1.HeartbeatsRequest)
private static final com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest();
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HeartbeatsRequest 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HeartbeatsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.HeartbeatsResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code v1.HeartbeatsResponse}
*/
public static final class HeartbeatsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.HeartbeatsResponse)
HeartbeatsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use HeartbeatsResponse.newBuilder() to construct.
private HeartbeatsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HeartbeatsResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HeartbeatsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse other = (com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse 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(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse 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 v1.HeartbeatsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.HeartbeatsResponse)
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_HeartbeatsResponse_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse build() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse result = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse.getDefaultInstance()) return this;
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;
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;
}
@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:v1.HeartbeatsResponse)
}
// @@protoc_insertion_point(class_scope:v1.HeartbeatsResponse)
private static final com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse();
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HeartbeatsResponse 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetHeartbeatsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.GetHeartbeatsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return A list containing the instanceIds.
*/
java.util.List
getInstanceIdsList();
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return The count of instanceIds.
*/
int getInstanceIdsCount();
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the element to return.
* @return The instanceIds at the given index.
*/
java.lang.String getInstanceIds(int index);
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the value to return.
* @return The bytes of the instanceIds at the given index.
*/
com.google.protobuf.ByteString
getInstanceIdsBytes(int index);
}
/**
* Protobuf type {@code v1.GetHeartbeatsRequest}
*/
public static final class GetHeartbeatsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.GetHeartbeatsRequest)
GetHeartbeatsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetHeartbeatsRequest.newBuilder() to construct.
private GetHeartbeatsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetHeartbeatsRequest() {
instanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetHeartbeatsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest.Builder.class);
}
public static final int INSTANCEIDS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList instanceIds_;
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return A list containing the instanceIds.
*/
public com.google.protobuf.ProtocolStringList
getInstanceIdsList() {
return instanceIds_;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return The count of instanceIds.
*/
public int getInstanceIdsCount() {
return instanceIds_.size();
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the element to return.
* @return The instanceIds at the given index.
*/
public java.lang.String getInstanceIds(int index) {
return instanceIds_.get(index);
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the value to return.
* @return The bytes of the instanceIds at the given index.
*/
public com.google.protobuf.ByteString
getInstanceIdsBytes(int index) {
return instanceIds_.getByteString(index);
}
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 {
for (int i = 0; i < instanceIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceIds_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < instanceIds_.size(); i++) {
dataSize += computeStringSizeNoTag(instanceIds_.getRaw(i));
}
size += dataSize;
size += 1 * getInstanceIdsList().size();
}
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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest other = (com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest) obj;
if (!getInstanceIdsList()
.equals(other.getInstanceIdsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getInstanceIdsCount() > 0) {
hash = (37 * hash) + INSTANCEIDS_FIELD_NUMBER;
hash = (53 * hash) + getInstanceIdsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest 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(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest 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 v1.GetHeartbeatsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.GetHeartbeatsRequest)
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
instanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsRequest_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest build() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest result = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
instanceIds_ = instanceIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.instanceIds_ = instanceIds_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest.getDefaultInstance()) return this;
if (!other.instanceIds_.isEmpty()) {
if (instanceIds_.isEmpty()) {
instanceIds_ = other.instanceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInstanceIdsIsMutable();
instanceIds_.addAll(other.instanceIds_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureInstanceIdsIsMutable();
instanceIds_.add(s);
break;
} // case 10
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 com.google.protobuf.LazyStringList instanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureInstanceIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
instanceIds_ = new com.google.protobuf.LazyStringArrayList(instanceIds_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return A list containing the instanceIds.
*/
public com.google.protobuf.ProtocolStringList
getInstanceIdsList() {
return instanceIds_.getUnmodifiableView();
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return The count of instanceIds.
*/
public int getInstanceIdsCount() {
return instanceIds_.size();
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the element to return.
* @return The instanceIds at the given index.
*/
public java.lang.String getInstanceIds(int index) {
return instanceIds_.get(index);
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the value to return.
* @return The bytes of the instanceIds at the given index.
*/
public com.google.protobuf.ByteString
getInstanceIdsBytes(int index) {
return instanceIds_.getByteString(index);
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index to set the value at.
* @param value The instanceIds to set.
* @return This builder for chaining.
*/
public Builder setInstanceIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceIdsIsMutable();
instanceIds_.set(index, value);
onChanged();
return this;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param value The instanceIds to add.
* @return This builder for chaining.
*/
public Builder addInstanceIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceIdsIsMutable();
instanceIds_.add(value);
onChanged();
return this;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param values The instanceIds to add.
* @return This builder for chaining.
*/
public Builder addAllInstanceIds(
java.lang.Iterable values) {
ensureInstanceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instanceIds_);
onChanged();
return this;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return This builder for chaining.
*/
public Builder clearInstanceIds() {
instanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param value The bytes of the instanceIds to add.
* @return This builder for chaining.
*/
public Builder addInstanceIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureInstanceIdsIsMutable();
instanceIds_.add(value);
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:v1.GetHeartbeatsRequest)
}
// @@protoc_insertion_point(class_scope:v1.GetHeartbeatsRequest)
private static final com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest();
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetHeartbeatsRequest 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetHeartbeatsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.GetHeartbeatsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
java.util.List
getRecordsList();
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord getRecords(int index);
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
int getRecordsCount();
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder>
getRecordsOrBuilderList();
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder getRecordsOrBuilder(
int index);
}
/**
* Protobuf type {@code v1.GetHeartbeatsResponse}
*/
public static final class GetHeartbeatsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.GetHeartbeatsResponse)
GetHeartbeatsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetHeartbeatsResponse.newBuilder() to construct.
private GetHeartbeatsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetHeartbeatsResponse() {
records_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetHeartbeatsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse.Builder.class);
}
public static final int RECORDS_FIELD_NUMBER = 1;
private java.util.List records_;
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
@java.lang.Override
public java.util.List getRecordsList() {
return records_;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
@java.lang.Override
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder>
getRecordsOrBuilderList() {
return records_;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
@java.lang.Override
public int getRecordsCount() {
return records_.size();
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord getRecords(int index) {
return records_.get(index);
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder getRecordsOrBuilder(
int index) {
return records_.get(index);
}
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 {
for (int i = 0; i < records_.size(); i++) {
output.writeMessage(1, records_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < records_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, records_.get(i));
}
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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse other = (com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse) obj;
if (!getRecordsList()
.equals(other.getRecordsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRecordsCount() > 0) {
hash = (37 * hash) + RECORDS_FIELD_NUMBER;
hash = (53 * hash) + getRecordsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse 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(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse 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 v1.GetHeartbeatsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.GetHeartbeatsResponse)
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
} else {
records_ = null;
recordsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_GetHeartbeatsResponse_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse build() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse result = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse(this);
int from_bitField0_ = bitField0_;
if (recordsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
records_ = java.util.Collections.unmodifiableList(records_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.records_ = records_;
} else {
result.records_ = recordsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse.getDefaultInstance()) return this;
if (recordsBuilder_ == null) {
if (!other.records_.isEmpty()) {
if (records_.isEmpty()) {
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRecordsIsMutable();
records_.addAll(other.records_);
}
onChanged();
}
} else {
if (!other.records_.isEmpty()) {
if (recordsBuilder_.isEmpty()) {
recordsBuilder_.dispose();
recordsBuilder_ = null;
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000001);
recordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecordsFieldBuilder() : null;
} else {
recordsBuilder_.addAllMessages(other.records_);
}
}
}
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: {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord m =
input.readMessage(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.parser(),
extensionRegistry);
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(m);
} else {
recordsBuilder_.addMessage(m);
}
break;
} // case 10
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.util.List records_ =
java.util.Collections.emptyList();
private void ensureRecordsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
records_ = new java.util.ArrayList(records_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder> recordsBuilder_;
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public java.util.List getRecordsList() {
if (recordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(records_);
} else {
return recordsBuilder_.getMessageList();
}
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public int getRecordsCount() {
if (recordsBuilder_ == null) {
return records_.size();
} else {
return recordsBuilder_.getCount();
}
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord getRecords(int index) {
if (recordsBuilder_ == null) {
return records_.get(index);
} else {
return recordsBuilder_.getMessage(index);
}
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public Builder setRecords(
int index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.set(index, value);
onChanged();
} else {
recordsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public Builder setRecords(
int index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.set(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public Builder addRecords(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(value);
onChanged();
} else {
recordsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public Builder addRecords(
int index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(index, value);
onChanged();
} else {
recordsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public Builder addRecords(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public Builder addRecords(
int index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public Builder addAllRecords(
java.lang.Iterable extends com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord> values) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, records_);
onChanged();
} else {
recordsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public Builder clearRecords() {
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
recordsBuilder_.clear();
}
return this;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public Builder removeRecords(int index) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.remove(index);
onChanged();
} else {
recordsBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder getRecordsBuilder(
int index) {
return getRecordsFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder getRecordsOrBuilder(
int index) {
if (recordsBuilder_ == null) {
return records_.get(index); } else {
return recordsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public java.util.List extends com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder>
getRecordsOrBuilderList() {
if (recordsBuilder_ != null) {
return recordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(records_);
}
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder addRecordsBuilder() {
return getRecordsFieldBuilder().addBuilder(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.getDefaultInstance());
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder addRecordsBuilder(
int index) {
return getRecordsFieldBuilder().addBuilder(
index, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.getDefaultInstance());
}
/**
* repeated .v1.HeartbeatRecord records = 1 [json_name = "records"];
*/
public java.util.List
getRecordsBuilderList() {
return getRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder>
getRecordsFieldBuilder() {
if (recordsBuilder_ == null) {
recordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecord.Builder, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatRecordOrBuilder>(
records_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
records_ = null;
}
return recordsBuilder_;
}
@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:v1.GetHeartbeatsResponse)
}
// @@protoc_insertion_point(class_scope:v1.GetHeartbeatsResponse)
private static final com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse();
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetHeartbeatsResponse 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DelHeartbeatsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.DelHeartbeatsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return A list containing the instanceIds.
*/
java.util.List
getInstanceIdsList();
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return The count of instanceIds.
*/
int getInstanceIdsCount();
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the element to return.
* @return The instanceIds at the given index.
*/
java.lang.String getInstanceIds(int index);
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the value to return.
* @return The bytes of the instanceIds at the given index.
*/
com.google.protobuf.ByteString
getInstanceIdsBytes(int index);
}
/**
* Protobuf type {@code v1.DelHeartbeatsRequest}
*/
public static final class DelHeartbeatsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.DelHeartbeatsRequest)
DelHeartbeatsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DelHeartbeatsRequest.newBuilder() to construct.
private DelHeartbeatsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DelHeartbeatsRequest() {
instanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DelHeartbeatsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest.Builder.class);
}
public static final int INSTANCEIDS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList instanceIds_;
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return A list containing the instanceIds.
*/
public com.google.protobuf.ProtocolStringList
getInstanceIdsList() {
return instanceIds_;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return The count of instanceIds.
*/
public int getInstanceIdsCount() {
return instanceIds_.size();
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the element to return.
* @return The instanceIds at the given index.
*/
public java.lang.String getInstanceIds(int index) {
return instanceIds_.get(index);
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the value to return.
* @return The bytes of the instanceIds at the given index.
*/
public com.google.protobuf.ByteString
getInstanceIdsBytes(int index) {
return instanceIds_.getByteString(index);
}
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 {
for (int i = 0; i < instanceIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceIds_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < instanceIds_.size(); i++) {
dataSize += computeStringSizeNoTag(instanceIds_.getRaw(i));
}
size += dataSize;
size += 1 * getInstanceIdsList().size();
}
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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest other = (com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest) obj;
if (!getInstanceIdsList()
.equals(other.getInstanceIdsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getInstanceIdsCount() > 0) {
hash = (37 * hash) + INSTANCEIDS_FIELD_NUMBER;
hash = (53 * hash) + getInstanceIdsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest 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(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest 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 v1.DelHeartbeatsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.DelHeartbeatsRequest)
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
instanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsRequest_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest build() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest result = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
instanceIds_ = instanceIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.instanceIds_ = instanceIds_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest.getDefaultInstance()) return this;
if (!other.instanceIds_.isEmpty()) {
if (instanceIds_.isEmpty()) {
instanceIds_ = other.instanceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInstanceIdsIsMutable();
instanceIds_.addAll(other.instanceIds_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureInstanceIdsIsMutable();
instanceIds_.add(s);
break;
} // case 10
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 com.google.protobuf.LazyStringList instanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureInstanceIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
instanceIds_ = new com.google.protobuf.LazyStringArrayList(instanceIds_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return A list containing the instanceIds.
*/
public com.google.protobuf.ProtocolStringList
getInstanceIdsList() {
return instanceIds_.getUnmodifiableView();
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return The count of instanceIds.
*/
public int getInstanceIdsCount() {
return instanceIds_.size();
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the element to return.
* @return The instanceIds at the given index.
*/
public java.lang.String getInstanceIds(int index) {
return instanceIds_.get(index);
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index of the value to return.
* @return The bytes of the instanceIds at the given index.
*/
public com.google.protobuf.ByteString
getInstanceIdsBytes(int index) {
return instanceIds_.getByteString(index);
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param index The index to set the value at.
* @param value The instanceIds to set.
* @return This builder for chaining.
*/
public Builder setInstanceIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceIdsIsMutable();
instanceIds_.set(index, value);
onChanged();
return this;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param value The instanceIds to add.
* @return This builder for chaining.
*/
public Builder addInstanceIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceIdsIsMutable();
instanceIds_.add(value);
onChanged();
return this;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param values The instanceIds to add.
* @return This builder for chaining.
*/
public Builder addAllInstanceIds(
java.lang.Iterable values) {
ensureInstanceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instanceIds_);
onChanged();
return this;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @return This builder for chaining.
*/
public Builder clearInstanceIds() {
instanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string instanceIds = 1 [json_name = "instance_ids"];
* @param value The bytes of the instanceIds to add.
* @return This builder for chaining.
*/
public Builder addInstanceIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureInstanceIdsIsMutable();
instanceIds_.add(value);
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:v1.DelHeartbeatsRequest)
}
// @@protoc_insertion_point(class_scope:v1.DelHeartbeatsRequest)
private static final com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest();
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DelHeartbeatsRequest 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DelHeartbeatsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:v1.DelHeartbeatsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 code = 1;
* @return The code.
*/
int getCode();
/**
* string info = 2;
* @return The info.
*/
java.lang.String getInfo();
/**
* string info = 2;
* @return The bytes for info.
*/
com.google.protobuf.ByteString
getInfoBytes();
}
/**
* Protobuf type {@code v1.DelHeartbeatsResponse}
*/
public static final class DelHeartbeatsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.DelHeartbeatsResponse)
DelHeartbeatsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DelHeartbeatsResponse.newBuilder() to construct.
private DelHeartbeatsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DelHeartbeatsResponse() {
info_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DelHeartbeatsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
public static final int INFO_FIELD_NUMBER = 2;
private volatile java.lang.Object info_;
/**
* string info = 2;
* @return The info.
*/
@java.lang.Override
public java.lang.String getInfo() {
java.lang.Object ref = info_;
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();
info_ = s;
return s;
}
}
/**
* string info = 2;
* @return The bytes for info.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (code_ != 0) {
output.writeUInt32(1, code_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, info_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (code_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, code_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, info_);
}
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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse)) {
return super.equals(obj);
}
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse other = (com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse) obj;
if (getCode()
!= other.getCode()) return false;
if (!getInfo()
.equals(other.getInfo())) 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) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse 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(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse 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 v1.DelHeartbeatsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.DelHeartbeatsResponse)
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse.class, com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse.Builder.class);
}
// Construct using com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
code_ = 0;
info_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.internal_static_v1_DelHeartbeatsResponse_descriptor;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse getDefaultInstanceForType() {
return com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse.getDefaultInstance();
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse build() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse buildPartial() {
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse result = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse(this);
result.code_ = code_;
result.info_ = info_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse) {
return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse other) {
if (other == com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse.getDefaultInstance()) return this;
if (other.getCode() != 0) {
setCode(other.getCode());
}
if (!other.getInfo().isEmpty()) {
info_ = other.info_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
code_ = input.readUInt32();
break;
} // case 8
case 18: {
info_ = input.readStringRequireUtf8();
break;
} // case 18
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 code_ ;
/**
* uint32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
/**
* uint32 code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(int value) {
code_ = value;
onChanged();
return this;
}
/**
* uint32 code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = 0;
onChanged();
return this;
}
private java.lang.Object info_ = "";
/**
* string info = 2;
* @return The info.
*/
public java.lang.String getInfo() {
java.lang.Object ref = info_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
info_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string info = 2;
* @return The bytes for info.
*/
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string info = 2;
* @param value The info to set.
* @return This builder for chaining.
*/
public Builder setInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
info_ = value;
onChanged();
return this;
}
/**
* string info = 2;
* @return This builder for chaining.
*/
public Builder clearInfo() {
info_ = getDefaultInstance().getInfo();
onChanged();
return this;
}
/**
* string info = 2;
* @param value The bytes for info to set.
* @return This builder for chaining.
*/
public Builder setInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
info_ = value;
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:v1.DelHeartbeatsResponse)
}
// @@protoc_insertion_point(class_scope:v1.DelHeartbeatsResponse)
private static final com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse();
}
public static com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DelHeartbeatsResponse 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 com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_HeartbeatRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_HeartbeatRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_InstanceHeartbeat_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_InstanceHeartbeat_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_HeartbeatsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_HeartbeatsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_HeartbeatsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_HeartbeatsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_GetHeartbeatsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_GetHeartbeatsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_GetHeartbeatsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_GetHeartbeatsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_DelHeartbeatsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_DelHeartbeatsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_v1_DelHeartbeatsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_v1_DelHeartbeatsResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\017heartbeat.proto\022\002v1\032\rservice.proto\"|\n\017" +
"HeartbeatRecord\022\037\n\ninstanceId\030\001 \001(\tR\013ins" +
"tance_id\022,\n\020lastHeartbeatSec\030\006 \001(\003R\022last" +
"_heartbeat_sec\022\024\n\005exist\030\007 \001(\010R\005existJ\004\010\002" +
"\020\006\"\224\001\n\021InstanceHeartbeat\022\037\n\ninstanceId\030\001" +
" \001(\tR\013instance_id\022\030\n\007service\030\002 \001(\tR\007serv" +
"ice\022\034\n\tnamespace\030\003 \001(\tR\tnamespace\022\022\n\004hos" +
"t\030\004 \001(\tR\004host\022\022\n\004port\030\005 \001(\rR\004port\"J\n\021Hea" +
"rtbeatsRequest\0225\n\nheartbeats\030\001 \003(\0132\025.v1." +
"InstanceHeartbeatR\nheartbeats\"\024\n\022Heartbe" +
"atsResponse\"9\n\024GetHeartbeatsRequest\022!\n\013i" +
"nstanceIds\030\001 \003(\tR\014instance_ids\"F\n\025GetHea" +
"rtbeatsResponse\022-\n\007records\030\001 \003(\0132\023.v1.He" +
"artbeatRecordR\007records\"9\n\024DelHeartbeatsR" +
"equest\022!\n\013instanceIds\030\001 \003(\tR\014instance_id" +
"s\"3\n\025DelHeartbeatsResponse\022\014\n\004code\030\001 \001(\r" +
"\022\014\n\004info\030\002 \001(\tB\177\n7com.tencent.polaris.sp" +
"ecification.api.v1.service.manageZDgithu" +
"b.com/polarismesh/specification/source/g" +
"o/api/v1/service_manageb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.getDescriptor(),
});
internal_static_v1_HeartbeatRecord_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_v1_HeartbeatRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_HeartbeatRecord_descriptor,
new java.lang.String[] { "InstanceId", "LastHeartbeatSec", "Exist", });
internal_static_v1_InstanceHeartbeat_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_v1_InstanceHeartbeat_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_InstanceHeartbeat_descriptor,
new java.lang.String[] { "InstanceId", "Service", "Namespace", "Host", "Port", });
internal_static_v1_HeartbeatsRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_v1_HeartbeatsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_HeartbeatsRequest_descriptor,
new java.lang.String[] { "Heartbeats", });
internal_static_v1_HeartbeatsResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_v1_HeartbeatsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_HeartbeatsResponse_descriptor,
new java.lang.String[] { });
internal_static_v1_GetHeartbeatsRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_v1_GetHeartbeatsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_GetHeartbeatsRequest_descriptor,
new java.lang.String[] { "InstanceIds", });
internal_static_v1_GetHeartbeatsResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_v1_GetHeartbeatsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_GetHeartbeatsResponse_descriptor,
new java.lang.String[] { "Records", });
internal_static_v1_DelHeartbeatsRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_v1_DelHeartbeatsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_DelHeartbeatsRequest_descriptor,
new java.lang.String[] { "InstanceIds", });
internal_static_v1_DelHeartbeatsResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_v1_DelHeartbeatsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_v1_DelHeartbeatsResponse_descriptor,
new java.lang.String[] { "Code", "Info", });
com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy