All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: lossless.proto

package com.tencent.polaris.specification.api.v1.traffic.manage;

public final class LosslessProto {
  private LosslessProto() {}
  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 LosslessRuleOrBuilder extends
      // @@protoc_insertion_point(interface_extends:v1.LosslessRule)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * rule id
     * 
* * string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** *
     * rule id
     * 
* * string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * service for rule belongs to
     * 
* * string service = 2 [json_name = "service"]; * @return The service. */ java.lang.String getService(); /** *
     * service for rule belongs to
     * 
* * string service = 2 [json_name = "service"]; * @return The bytes for service. */ com.google.protobuf.ByteString getServiceBytes(); /** *
     * namespace for rule belongs to
     * 
* * string namespace = 3 [json_name = "namespace"]; * @return The namespace. */ java.lang.String getNamespace(); /** *
     * namespace for rule belongs to
     * 
* * string namespace = 3 [json_name = "namespace"]; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** *
     * revision routing version
     * 
* * string revision = 4 [json_name = "revision"]; * @return The revision. */ java.lang.String getRevision(); /** *
     * revision routing version
     * 
* * string revision = 4 [json_name = "revision"]; * @return The bytes for revision. */ com.google.protobuf.ByteString getRevisionBytes(); /** *
     * ctime create time of the rules
     * 
* * string ctime = 5 [json_name = "ctime"]; * @return The ctime. */ java.lang.String getCtime(); /** *
     * ctime create time of the rules
     * 
* * string ctime = 5 [json_name = "ctime"]; * @return The bytes for ctime. */ com.google.protobuf.ByteString getCtimeBytes(); /** *
     * mtime modify time of the rules
     * 
* * string mtime = 6 [json_name = "mtime"]; * @return The mtime. */ java.lang.String getMtime(); /** *
     * mtime modify time of the rules
     * 
* * string mtime = 6 [json_name = "mtime"]; * @return The bytes for mtime. */ com.google.protobuf.ByteString getMtimeBytes(); /** *
     * configuration for lossless online
     * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; * @return Whether the losslessOnline field is set. */ boolean hasLosslessOnline(); /** *
     * configuration for lossless online
     * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; * @return The losslessOnline. */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline getLosslessOnline(); /** *
     * configuration for lossless online
     * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnlineOrBuilder getLosslessOnlineOrBuilder(); /** *
     * configuration for lossless offline
     * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; * @return Whether the losslessOffline field is set. */ boolean hasLosslessOffline(); /** *
     * configuration for lossless offline
     * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; * @return The losslessOffline. */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline getLosslessOffline(); /** *
     * configuration for lossless offline
     * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOfflineOrBuilder getLosslessOfflineOrBuilder(); /** *
     * rule labels
     * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ int getMetadataCount(); /** *
     * rule labels
     * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map getMetadata(); /** *
     * rule labels
     * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ java.util.Map getMetadataMap(); /** *
     * rule labels
     * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * rule labels
     * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ java.lang.String getMetadataOrThrow( java.lang.String key); /** *
     * 操作标志位
     * 
* * bool editable = 30 [json_name = "editable"]; * @return The editable. */ boolean getEditable(); /** * bool deleteable = 31 [json_name = "deleteable"]; * @return The deleteable. */ boolean getDeleteable(); } /** *
   * 优雅上下线规则的模型
   * 
* * Protobuf type {@code v1.LosslessRule} */ public static final class LosslessRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.LosslessRule) LosslessRuleOrBuilder { private static final long serialVersionUID = 0L; // Use LosslessRule.newBuilder() to construct. private LosslessRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LosslessRule() { id_ = ""; service_ = ""; namespace_ = ""; revision_ = ""; ctime_ = ""; mtime_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LosslessRule(); } @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.traffic.manage.LosslessProto.internal_static_v1_LosslessRule_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 9: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * rule id
     * 
* * string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * rule id
     * 
* * string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_FIELD_NUMBER = 2; private volatile java.lang.Object service_; /** *
     * service for rule belongs to
     * 
* * 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; } } /** *
     * service for rule belongs to
     * 
* * 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_; /** *
     * namespace for rule belongs to
     * 
* * 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; } } /** *
     * namespace for rule belongs to
     * 
* * 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 REVISION_FIELD_NUMBER = 4; private volatile java.lang.Object revision_; /** *
     * revision routing version
     * 
* * string revision = 4 [json_name = "revision"]; * @return The revision. */ @java.lang.Override public java.lang.String getRevision() { java.lang.Object ref = revision_; 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(); revision_ = s; return s; } } /** *
     * revision routing version
     * 
* * string revision = 4 [json_name = "revision"]; * @return The bytes for revision. */ @java.lang.Override public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CTIME_FIELD_NUMBER = 5; private volatile java.lang.Object ctime_; /** *
     * ctime create time of the rules
     * 
* * string ctime = 5 [json_name = "ctime"]; * @return The ctime. */ @java.lang.Override public java.lang.String getCtime() { java.lang.Object ref = ctime_; 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(); ctime_ = s; return s; } } /** *
     * ctime create time of the rules
     * 
* * string ctime = 5 [json_name = "ctime"]; * @return The bytes for ctime. */ @java.lang.Override public com.google.protobuf.ByteString getCtimeBytes() { java.lang.Object ref = ctime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ctime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MTIME_FIELD_NUMBER = 6; private volatile java.lang.Object mtime_; /** *
     * mtime modify time of the rules
     * 
* * string mtime = 6 [json_name = "mtime"]; * @return The mtime. */ @java.lang.Override public java.lang.String getMtime() { java.lang.Object ref = mtime_; 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(); mtime_ = s; return s; } } /** *
     * mtime modify time of the rules
     * 
* * string mtime = 6 [json_name = "mtime"]; * @return The bytes for mtime. */ @java.lang.Override public com.google.protobuf.ByteString getMtimeBytes() { java.lang.Object ref = mtime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mtime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOSSLESSONLINE_FIELD_NUMBER = 7; private com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline losslessOnline_; /** *
     * configuration for lossless online
     * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; * @return Whether the losslessOnline field is set. */ @java.lang.Override public boolean hasLosslessOnline() { return losslessOnline_ != null; } /** *
     * configuration for lossless online
     * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; * @return The losslessOnline. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline getLosslessOnline() { return losslessOnline_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.getDefaultInstance() : losslessOnline_; } /** *
     * configuration for lossless online
     * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnlineOrBuilder getLosslessOnlineOrBuilder() { return getLosslessOnline(); } public static final int LOSSLESSOFFLINE_FIELD_NUMBER = 8; private com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline losslessOffline_; /** *
     * configuration for lossless offline
     * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; * @return Whether the losslessOffline field is set. */ @java.lang.Override public boolean hasLosslessOffline() { return losslessOffline_ != null; } /** *
     * configuration for lossless offline
     * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; * @return The losslessOffline. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline getLosslessOffline() { return losslessOffline_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.getDefaultInstance() : losslessOffline_; } /** *
     * configuration for lossless offline
     * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOfflineOrBuilder getLosslessOfflineOrBuilder() { return getLosslessOffline(); } public static final int METADATA_FIELD_NUMBER = 9; private static final class MetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessRule_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
     * rule labels
     * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
     * rule labels
     * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
     * rule labels
     * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ @java.lang.Override public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * rule labels
     * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int EDITABLE_FIELD_NUMBER = 30; private boolean editable_; /** *
     * 操作标志位
     * 
* * bool editable = 30 [json_name = "editable"]; * @return The editable. */ @java.lang.Override public boolean getEditable() { return editable_; } public static final int DELETEABLE_FIELD_NUMBER = 31; private boolean deleteable_; /** * bool deleteable = 31 [json_name = "deleteable"]; * @return The deleteable. */ @java.lang.Override public boolean getDeleteable() { return deleteable_; } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } 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(revision_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, mtime_); } if (losslessOnline_ != null) { output.writeMessage(7, getLosslessOnline()); } if (losslessOffline_ != null) { output.writeMessage(8, getLosslessOffline()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 9); if (editable_ != false) { output.writeBool(30, editable_); } if (deleteable_ != false) { output.writeBool(31, deleteable_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } 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(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, mtime_); } if (losslessOnline_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getLosslessOnline()); } if (losslessOffline_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getLosslessOffline()); } for (java.util.Map.Entry entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, metadata__); } if (editable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(30, editable_); } if (deleteable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(31, deleteable_); } 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.traffic.manage.LosslessProto.LosslessRule)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule other = (com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule) obj; if (!getId() .equals(other.getId())) return false; if (!getService() .equals(other.getService())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getRevision() .equals(other.getRevision())) return false; if (!getCtime() .equals(other.getCtime())) return false; if (!getMtime() .equals(other.getMtime())) return false; if (hasLosslessOnline() != other.hasLosslessOnline()) return false; if (hasLosslessOnline()) { if (!getLosslessOnline() .equals(other.getLosslessOnline())) return false; } if (hasLosslessOffline() != other.hasLosslessOffline()) return false; if (hasLosslessOffline()) { if (!getLosslessOffline() .equals(other.getLosslessOffline())) return false; } if (!internalGetMetadata().equals( other.internalGetMetadata())) return false; if (getEditable() != other.getEditable()) return false; if (getDeleteable() != other.getDeleteable()) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().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) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision().hashCode(); hash = (37 * hash) + CTIME_FIELD_NUMBER; hash = (53 * hash) + getCtime().hashCode(); hash = (37 * hash) + MTIME_FIELD_NUMBER; hash = (53 * hash) + getMtime().hashCode(); if (hasLosslessOnline()) { hash = (37 * hash) + LOSSLESSONLINE_FIELD_NUMBER; hash = (53 * hash) + getLosslessOnline().hashCode(); } if (hasLosslessOffline()) { hash = (37 * hash) + LOSSLESSOFFLINE_FIELD_NUMBER; hash = (53 * hash) + getLosslessOffline().hashCode(); } if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } hash = (37 * hash) + EDITABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEditable()); hash = (37 * hash) + DELETEABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeleteable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule 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.traffic.manage.LosslessProto.LosslessRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule 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.traffic.manage.LosslessProto.LosslessRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule 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.traffic.manage.LosslessProto.LosslessRule 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.traffic.manage.LosslessProto.LosslessRule 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.traffic.manage.LosslessProto.LosslessRule 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.traffic.manage.LosslessProto.LosslessRule 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.traffic.manage.LosslessProto.LosslessRule 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.traffic.manage.LosslessProto.LosslessRule 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.traffic.manage.LosslessProto.LosslessRule 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.LosslessRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.LosslessRule) com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessRule_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 9: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 9: return internalGetMutableMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; service_ = ""; namespace_ = ""; revision_ = ""; ctime_ = ""; mtime_ = ""; if (losslessOnlineBuilder_ == null) { losslessOnline_ = null; } else { losslessOnline_ = null; losslessOnlineBuilder_ = null; } if (losslessOfflineBuilder_ == null) { losslessOffline_ = null; } else { losslessOffline_ = null; losslessOfflineBuilder_ = null; } internalGetMutableMetadata().clear(); editable_ = false; deleteable_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessRule_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule build() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule result = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.service_ = service_; result.namespace_ = namespace_; result.revision_ = revision_; result.ctime_ = ctime_; result.mtime_ = mtime_; if (losslessOnlineBuilder_ == null) { result.losslessOnline_ = losslessOnline_; } else { result.losslessOnline_ = losslessOnlineBuilder_.build(); } if (losslessOfflineBuilder_ == null) { result.losslessOffline_ = losslessOffline_; } else { result.losslessOffline_ = losslessOfflineBuilder_.build(); } result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); result.editable_ = editable_; result.deleteable_ = deleteable_; 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.traffic.manage.LosslessProto.LosslessRule) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getRevision().isEmpty()) { revision_ = other.revision_; onChanged(); } if (!other.getCtime().isEmpty()) { ctime_ = other.ctime_; onChanged(); } if (!other.getMtime().isEmpty()) { mtime_ = other.mtime_; onChanged(); } if (other.hasLosslessOnline()) { mergeLosslessOnline(other.getLosslessOnline()); } if (other.hasLosslessOffline()) { mergeLosslessOffline(other.getLosslessOffline()); } internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); if (other.getEditable() != false) { setEditable(other.getEditable()); } if (other.getDeleteable() != false) { setDeleteable(other.getDeleteable()); } 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: { id_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { service_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { namespace_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { revision_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { ctime_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { mtime_ = input.readStringRequireUtf8(); break; } // case 50 case 58: { input.readMessage( getLosslessOnlineFieldBuilder().getBuilder(), extensionRegistry); break; } // case 58 case 66: { input.readMessage( getLosslessOfflineFieldBuilder().getBuilder(), extensionRegistry); break; } // case 66 case 74: { com.google.protobuf.MapEntry metadata__ = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMetadata().getMutableMap().put( metadata__.getKey(), metadata__.getValue()); break; } // case 74 case 240: { editable_ = input.readBool(); break; } // case 240 case 248: { deleteable_ = input.readBool(); break; } // case 248 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * rule id
       * 
* * string id = 1 [json_name = "id"]; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * rule id
       * 
* * string id = 1 [json_name = "id"]; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * rule id
       * 
* * string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * rule id
       * 
* * string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * rule id
       * 
* * string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object service_ = ""; /** *
       * service for rule belongs to
       * 
* * 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; } } /** *
       * service for rule belongs to
       * 
* * 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; } } /** *
       * service for rule belongs to
       * 
* * 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; } /** *
       * service for rule belongs to
       * 
* * string service = 2 [json_name = "service"]; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** *
       * service for rule belongs to
       * 
* * 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_ = ""; /** *
       * namespace for rule belongs to
       * 
* * 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; } } /** *
       * namespace for rule belongs to
       * 
* * 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; } } /** *
       * namespace for rule belongs to
       * 
* * 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; } /** *
       * namespace for rule belongs to
       * 
* * string namespace = 3 [json_name = "namespace"]; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** *
       * namespace for rule belongs to
       * 
* * 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 revision_ = ""; /** *
       * revision routing version
       * 
* * string revision = 4 [json_name = "revision"]; * @return The revision. */ public java.lang.String getRevision() { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * revision routing version
       * 
* * string revision = 4 [json_name = "revision"]; * @return The bytes for revision. */ public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * revision routing version
       * 
* * string revision = 4 [json_name = "revision"]; * @param value The revision to set. * @return This builder for chaining. */ public Builder setRevision( java.lang.String value) { if (value == null) { throw new NullPointerException(); } revision_ = value; onChanged(); return this; } /** *
       * revision routing version
       * 
* * string revision = 4 [json_name = "revision"]; * @return This builder for chaining. */ public Builder clearRevision() { revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** *
       * revision routing version
       * 
* * string revision = 4 [json_name = "revision"]; * @param value The bytes for revision to set. * @return This builder for chaining. */ public Builder setRevisionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); revision_ = value; onChanged(); return this; } private java.lang.Object ctime_ = ""; /** *
       * ctime create time of the rules
       * 
* * string ctime = 5 [json_name = "ctime"]; * @return The ctime. */ public java.lang.String getCtime() { java.lang.Object ref = ctime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ctime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ctime create time of the rules
       * 
* * string ctime = 5 [json_name = "ctime"]; * @return The bytes for ctime. */ public com.google.protobuf.ByteString getCtimeBytes() { java.lang.Object ref = ctime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ctime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ctime create time of the rules
       * 
* * string ctime = 5 [json_name = "ctime"]; * @param value The ctime to set. * @return This builder for chaining. */ public Builder setCtime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ctime_ = value; onChanged(); return this; } /** *
       * ctime create time of the rules
       * 
* * string ctime = 5 [json_name = "ctime"]; * @return This builder for chaining. */ public Builder clearCtime() { ctime_ = getDefaultInstance().getCtime(); onChanged(); return this; } /** *
       * ctime create time of the rules
       * 
* * string ctime = 5 [json_name = "ctime"]; * @param value The bytes for ctime to set. * @return This builder for chaining. */ public Builder setCtimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ctime_ = value; onChanged(); return this; } private java.lang.Object mtime_ = ""; /** *
       * mtime modify time of the rules
       * 
* * string mtime = 6 [json_name = "mtime"]; * @return The mtime. */ public java.lang.String getMtime() { java.lang.Object ref = mtime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mtime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * mtime modify time of the rules
       * 
* * string mtime = 6 [json_name = "mtime"]; * @return The bytes for mtime. */ public com.google.protobuf.ByteString getMtimeBytes() { java.lang.Object ref = mtime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mtime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * mtime modify time of the rules
       * 
* * string mtime = 6 [json_name = "mtime"]; * @param value The mtime to set. * @return This builder for chaining. */ public Builder setMtime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } mtime_ = value; onChanged(); return this; } /** *
       * mtime modify time of the rules
       * 
* * string mtime = 6 [json_name = "mtime"]; * @return This builder for chaining. */ public Builder clearMtime() { mtime_ = getDefaultInstance().getMtime(); onChanged(); return this; } /** *
       * mtime modify time of the rules
       * 
* * string mtime = 6 [json_name = "mtime"]; * @param value The bytes for mtime to set. * @return This builder for chaining. */ public Builder setMtimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mtime_ = value; onChanged(); return this; } private com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline losslessOnline_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnlineOrBuilder> losslessOnlineBuilder_; /** *
       * configuration for lossless online
       * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; * @return Whether the losslessOnline field is set. */ public boolean hasLosslessOnline() { return losslessOnlineBuilder_ != null || losslessOnline_ != null; } /** *
       * configuration for lossless online
       * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; * @return The losslessOnline. */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline getLosslessOnline() { if (losslessOnlineBuilder_ == null) { return losslessOnline_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.getDefaultInstance() : losslessOnline_; } else { return losslessOnlineBuilder_.getMessage(); } } /** *
       * configuration for lossless online
       * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; */ public Builder setLosslessOnline(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline value) { if (losslessOnlineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } losslessOnline_ = value; onChanged(); } else { losslessOnlineBuilder_.setMessage(value); } return this; } /** *
       * configuration for lossless online
       * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; */ public Builder setLosslessOnline( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.Builder builderForValue) { if (losslessOnlineBuilder_ == null) { losslessOnline_ = builderForValue.build(); onChanged(); } else { losslessOnlineBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * configuration for lossless online
       * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; */ public Builder mergeLosslessOnline(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline value) { if (losslessOnlineBuilder_ == null) { if (losslessOnline_ != null) { losslessOnline_ = com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.newBuilder(losslessOnline_).mergeFrom(value).buildPartial(); } else { losslessOnline_ = value; } onChanged(); } else { losslessOnlineBuilder_.mergeFrom(value); } return this; } /** *
       * configuration for lossless online
       * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; */ public Builder clearLosslessOnline() { if (losslessOnlineBuilder_ == null) { losslessOnline_ = null; onChanged(); } else { losslessOnline_ = null; losslessOnlineBuilder_ = null; } return this; } /** *
       * configuration for lossless online
       * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.Builder getLosslessOnlineBuilder() { onChanged(); return getLosslessOnlineFieldBuilder().getBuilder(); } /** *
       * configuration for lossless online
       * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnlineOrBuilder getLosslessOnlineOrBuilder() { if (losslessOnlineBuilder_ != null) { return losslessOnlineBuilder_.getMessageOrBuilder(); } else { return losslessOnline_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.getDefaultInstance() : losslessOnline_; } } /** *
       * configuration for lossless online
       * 
* * .v1.LosslessOnline losslessOnline = 7 [json_name = "lossless_online"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnlineOrBuilder> getLosslessOnlineFieldBuilder() { if (losslessOnlineBuilder_ == null) { losslessOnlineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnlineOrBuilder>( getLosslessOnline(), getParentForChildren(), isClean()); losslessOnline_ = null; } return losslessOnlineBuilder_; } private com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline losslessOffline_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOfflineOrBuilder> losslessOfflineBuilder_; /** *
       * configuration for lossless offline
       * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; * @return Whether the losslessOffline field is set. */ public boolean hasLosslessOffline() { return losslessOfflineBuilder_ != null || losslessOffline_ != null; } /** *
       * configuration for lossless offline
       * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; * @return The losslessOffline. */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline getLosslessOffline() { if (losslessOfflineBuilder_ == null) { return losslessOffline_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.getDefaultInstance() : losslessOffline_; } else { return losslessOfflineBuilder_.getMessage(); } } /** *
       * configuration for lossless offline
       * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; */ public Builder setLosslessOffline(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline value) { if (losslessOfflineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } losslessOffline_ = value; onChanged(); } else { losslessOfflineBuilder_.setMessage(value); } return this; } /** *
       * configuration for lossless offline
       * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; */ public Builder setLosslessOffline( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.Builder builderForValue) { if (losslessOfflineBuilder_ == null) { losslessOffline_ = builderForValue.build(); onChanged(); } else { losslessOfflineBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * configuration for lossless offline
       * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; */ public Builder mergeLosslessOffline(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline value) { if (losslessOfflineBuilder_ == null) { if (losslessOffline_ != null) { losslessOffline_ = com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.newBuilder(losslessOffline_).mergeFrom(value).buildPartial(); } else { losslessOffline_ = value; } onChanged(); } else { losslessOfflineBuilder_.mergeFrom(value); } return this; } /** *
       * configuration for lossless offline
       * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; */ public Builder clearLosslessOffline() { if (losslessOfflineBuilder_ == null) { losslessOffline_ = null; onChanged(); } else { losslessOffline_ = null; losslessOfflineBuilder_ = null; } return this; } /** *
       * configuration for lossless offline
       * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.Builder getLosslessOfflineBuilder() { onChanged(); return getLosslessOfflineFieldBuilder().getBuilder(); } /** *
       * configuration for lossless offline
       * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOfflineOrBuilder getLosslessOfflineOrBuilder() { if (losslessOfflineBuilder_ != null) { return losslessOfflineBuilder_.getMessageOrBuilder(); } else { return losslessOffline_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.getDefaultInstance() : losslessOffline_; } } /** *
       * configuration for lossless offline
       * 
* * .v1.LosslessOffline losslessOffline = 8 [json_name = "lossless_offline"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOfflineOrBuilder> getLosslessOfflineFieldBuilder() { if (losslessOfflineBuilder_ == null) { losslessOfflineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOfflineOrBuilder>( getLosslessOffline(), getParentForChildren(), isClean()); losslessOffline_ = null; } return losslessOfflineBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } private com.google.protobuf.MapField internalGetMutableMetadata() { onChanged();; if (metadata_ == null) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
       * rule labels
       * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
       * rule labels
       * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
       * rule labels
       * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ @java.lang.Override public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * rule labels
       * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetadata() { internalGetMutableMetadata().getMutableMap() .clear(); return this; } /** *
       * rule labels
       * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMetadata().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** *
       * rule labels
       * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ public Builder putMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap() .put(key, value); return this; } /** *
       * rule labels
       * 
* * map<string, string> metadata = 9 [json_name = "metadata"]; */ public Builder putAllMetadata( java.util.Map values) { internalGetMutableMetadata().getMutableMap() .putAll(values); return this; } private boolean editable_ ; /** *
       * 操作标志位
       * 
* * bool editable = 30 [json_name = "editable"]; * @return The editable. */ @java.lang.Override public boolean getEditable() { return editable_; } /** *
       * 操作标志位
       * 
* * bool editable = 30 [json_name = "editable"]; * @param value The editable to set. * @return This builder for chaining. */ public Builder setEditable(boolean value) { editable_ = value; onChanged(); return this; } /** *
       * 操作标志位
       * 
* * bool editable = 30 [json_name = "editable"]; * @return This builder for chaining. */ public Builder clearEditable() { editable_ = false; onChanged(); return this; } private boolean deleteable_ ; /** * bool deleteable = 31 [json_name = "deleteable"]; * @return The deleteable. */ @java.lang.Override public boolean getDeleteable() { return deleteable_; } /** * bool deleteable = 31 [json_name = "deleteable"]; * @param value The deleteable to set. * @return This builder for chaining. */ public Builder setDeleteable(boolean value) { deleteable_ = value; onChanged(); return this; } /** * bool deleteable = 31 [json_name = "deleteable"]; * @return This builder for chaining. */ public Builder clearDeleteable() { deleteable_ = 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.LosslessRule) } // @@protoc_insertion_point(class_scope:v1.LosslessRule) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LosslessRule 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.traffic.manage.LosslessProto.LosslessRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LosslessOnlineOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.LosslessOnline) com.google.protobuf.MessageOrBuilder { /** *
     * configuration for delayRegister
     * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; * @return Whether the delayRegister field is set. */ boolean hasDelayRegister(); /** *
     * configuration for delayRegister
     * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; * @return The delayRegister. */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister getDelayRegister(); /** *
     * configuration for delayRegister
     * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegisterOrBuilder getDelayRegisterOrBuilder(); /** *
     * configuration for warmup
     * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; * @return Whether the warmup field is set. */ boolean hasWarmup(); /** *
     * configuration for warmup
     * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; * @return The warmup. */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup getWarmup(); /** *
     * configuration for warmup
     * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.WarmupOrBuilder getWarmupOrBuilder(); /** *
     * configuration for readiness probe
     * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; * @return Whether the readiness field is set. */ boolean hasReadiness(); /** *
     * configuration for readiness probe
     * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; * @return The readiness. */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness getReadiness(); /** *
     * configuration for readiness probe
     * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.ReadinessOrBuilder getReadinessOrBuilder(); } /** * Protobuf type {@code v1.LosslessOnline} */ public static final class LosslessOnline extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.LosslessOnline) LosslessOnlineOrBuilder { private static final long serialVersionUID = 0L; // Use LosslessOnline.newBuilder() to construct. private LosslessOnline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LosslessOnline() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LosslessOnline(); } @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.traffic.manage.LosslessProto.internal_static_v1_LosslessOnline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessOnline_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.Builder.class); } public static final int DELAYREGISTER_FIELD_NUMBER = 1; private com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister delayRegister_; /** *
     * configuration for delayRegister
     * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; * @return Whether the delayRegister field is set. */ @java.lang.Override public boolean hasDelayRegister() { return delayRegister_ != null; } /** *
     * configuration for delayRegister
     * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; * @return The delayRegister. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister getDelayRegister() { return delayRegister_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.getDefaultInstance() : delayRegister_; } /** *
     * configuration for delayRegister
     * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegisterOrBuilder getDelayRegisterOrBuilder() { return getDelayRegister(); } public static final int WARMUP_FIELD_NUMBER = 2; private com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup warmup_; /** *
     * configuration for warmup
     * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; * @return Whether the warmup field is set. */ @java.lang.Override public boolean hasWarmup() { return warmup_ != null; } /** *
     * configuration for warmup
     * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; * @return The warmup. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup getWarmup() { return warmup_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.getDefaultInstance() : warmup_; } /** *
     * configuration for warmup
     * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.WarmupOrBuilder getWarmupOrBuilder() { return getWarmup(); } public static final int READINESS_FIELD_NUMBER = 3; private com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness readiness_; /** *
     * configuration for readiness probe
     * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; * @return Whether the readiness field is set. */ @java.lang.Override public boolean hasReadiness() { return readiness_ != null; } /** *
     * configuration for readiness probe
     * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; * @return The readiness. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness getReadiness() { return readiness_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.getDefaultInstance() : readiness_; } /** *
     * configuration for readiness probe
     * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.ReadinessOrBuilder getReadinessOrBuilder() { return getReadiness(); } 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 (delayRegister_ != null) { output.writeMessage(1, getDelayRegister()); } if (warmup_ != null) { output.writeMessage(2, getWarmup()); } if (readiness_ != null) { output.writeMessage(3, getReadiness()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (delayRegister_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDelayRegister()); } if (warmup_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getWarmup()); } if (readiness_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getReadiness()); } 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.traffic.manage.LosslessProto.LosslessOnline)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline other = (com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline) obj; if (hasDelayRegister() != other.hasDelayRegister()) return false; if (hasDelayRegister()) { if (!getDelayRegister() .equals(other.getDelayRegister())) return false; } if (hasWarmup() != other.hasWarmup()) return false; if (hasWarmup()) { if (!getWarmup() .equals(other.getWarmup())) return false; } if (hasReadiness() != other.hasReadiness()) return false; if (hasReadiness()) { if (!getReadiness() .equals(other.getReadiness())) 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 (hasDelayRegister()) { hash = (37 * hash) + DELAYREGISTER_FIELD_NUMBER; hash = (53 * hash) + getDelayRegister().hashCode(); } if (hasWarmup()) { hash = (37 * hash) + WARMUP_FIELD_NUMBER; hash = (53 * hash) + getWarmup().hashCode(); } if (hasReadiness()) { hash = (37 * hash) + READINESS_FIELD_NUMBER; hash = (53 * hash) + getReadiness().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline 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.LosslessOnline} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.LosslessOnline) com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnlineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessOnline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessOnline_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (delayRegisterBuilder_ == null) { delayRegister_ = null; } else { delayRegister_ = null; delayRegisterBuilder_ = null; } if (warmupBuilder_ == null) { warmup_ = null; } else { warmup_ = null; warmupBuilder_ = null; } if (readinessBuilder_ == null) { readiness_ = null; } else { readiness_ = null; readinessBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessOnline_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline build() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline result = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline(this); if (delayRegisterBuilder_ == null) { result.delayRegister_ = delayRegister_; } else { result.delayRegister_ = delayRegisterBuilder_.build(); } if (warmupBuilder_ == null) { result.warmup_ = warmup_; } else { result.warmup_ = warmupBuilder_.build(); } if (readinessBuilder_ == null) { result.readiness_ = readiness_; } else { result.readiness_ = readinessBuilder_.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.traffic.manage.LosslessProto.LosslessOnline) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline.getDefaultInstance()) return this; if (other.hasDelayRegister()) { mergeDelayRegister(other.getDelayRegister()); } if (other.hasWarmup()) { mergeWarmup(other.getWarmup()); } if (other.hasReadiness()) { mergeReadiness(other.getReadiness()); } 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: { input.readMessage( getDelayRegisterFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getWarmupFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { input.readMessage( getReadinessFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 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 com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister delayRegister_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegisterOrBuilder> delayRegisterBuilder_; /** *
       * configuration for delayRegister
       * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; * @return Whether the delayRegister field is set. */ public boolean hasDelayRegister() { return delayRegisterBuilder_ != null || delayRegister_ != null; } /** *
       * configuration for delayRegister
       * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; * @return The delayRegister. */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister getDelayRegister() { if (delayRegisterBuilder_ == null) { return delayRegister_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.getDefaultInstance() : delayRegister_; } else { return delayRegisterBuilder_.getMessage(); } } /** *
       * configuration for delayRegister
       * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; */ public Builder setDelayRegister(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister value) { if (delayRegisterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } delayRegister_ = value; onChanged(); } else { delayRegisterBuilder_.setMessage(value); } return this; } /** *
       * configuration for delayRegister
       * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; */ public Builder setDelayRegister( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.Builder builderForValue) { if (delayRegisterBuilder_ == null) { delayRegister_ = builderForValue.build(); onChanged(); } else { delayRegisterBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * configuration for delayRegister
       * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; */ public Builder mergeDelayRegister(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister value) { if (delayRegisterBuilder_ == null) { if (delayRegister_ != null) { delayRegister_ = com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.newBuilder(delayRegister_).mergeFrom(value).buildPartial(); } else { delayRegister_ = value; } onChanged(); } else { delayRegisterBuilder_.mergeFrom(value); } return this; } /** *
       * configuration for delayRegister
       * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; */ public Builder clearDelayRegister() { if (delayRegisterBuilder_ == null) { delayRegister_ = null; onChanged(); } else { delayRegister_ = null; delayRegisterBuilder_ = null; } return this; } /** *
       * configuration for delayRegister
       * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.Builder getDelayRegisterBuilder() { onChanged(); return getDelayRegisterFieldBuilder().getBuilder(); } /** *
       * configuration for delayRegister
       * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegisterOrBuilder getDelayRegisterOrBuilder() { if (delayRegisterBuilder_ != null) { return delayRegisterBuilder_.getMessageOrBuilder(); } else { return delayRegister_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.getDefaultInstance() : delayRegister_; } } /** *
       * configuration for delayRegister
       * 
* * .v1.DelayRegister delayRegister = 1 [json_name = "delay_register"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegisterOrBuilder> getDelayRegisterFieldBuilder() { if (delayRegisterBuilder_ == null) { delayRegisterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegisterOrBuilder>( getDelayRegister(), getParentForChildren(), isClean()); delayRegister_ = null; } return delayRegisterBuilder_; } private com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup warmup_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.WarmupOrBuilder> warmupBuilder_; /** *
       * configuration for warmup
       * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; * @return Whether the warmup field is set. */ public boolean hasWarmup() { return warmupBuilder_ != null || warmup_ != null; } /** *
       * configuration for warmup
       * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; * @return The warmup. */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup getWarmup() { if (warmupBuilder_ == null) { return warmup_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.getDefaultInstance() : warmup_; } else { return warmupBuilder_.getMessage(); } } /** *
       * configuration for warmup
       * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; */ public Builder setWarmup(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup value) { if (warmupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } warmup_ = value; onChanged(); } else { warmupBuilder_.setMessage(value); } return this; } /** *
       * configuration for warmup
       * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; */ public Builder setWarmup( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.Builder builderForValue) { if (warmupBuilder_ == null) { warmup_ = builderForValue.build(); onChanged(); } else { warmupBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * configuration for warmup
       * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; */ public Builder mergeWarmup(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup value) { if (warmupBuilder_ == null) { if (warmup_ != null) { warmup_ = com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.newBuilder(warmup_).mergeFrom(value).buildPartial(); } else { warmup_ = value; } onChanged(); } else { warmupBuilder_.mergeFrom(value); } return this; } /** *
       * configuration for warmup
       * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; */ public Builder clearWarmup() { if (warmupBuilder_ == null) { warmup_ = null; onChanged(); } else { warmup_ = null; warmupBuilder_ = null; } return this; } /** *
       * configuration for warmup
       * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.Builder getWarmupBuilder() { onChanged(); return getWarmupFieldBuilder().getBuilder(); } /** *
       * configuration for warmup
       * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.WarmupOrBuilder getWarmupOrBuilder() { if (warmupBuilder_ != null) { return warmupBuilder_.getMessageOrBuilder(); } else { return warmup_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.getDefaultInstance() : warmup_; } } /** *
       * configuration for warmup
       * 
* * .v1.Warmup warmup = 2 [json_name = "warmup"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.WarmupOrBuilder> getWarmupFieldBuilder() { if (warmupBuilder_ == null) { warmupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.WarmupOrBuilder>( getWarmup(), getParentForChildren(), isClean()); warmup_ = null; } return warmupBuilder_; } private com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness readiness_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.ReadinessOrBuilder> readinessBuilder_; /** *
       * configuration for readiness probe
       * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; * @return Whether the readiness field is set. */ public boolean hasReadiness() { return readinessBuilder_ != null || readiness_ != null; } /** *
       * configuration for readiness probe
       * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; * @return The readiness. */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness getReadiness() { if (readinessBuilder_ == null) { return readiness_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.getDefaultInstance() : readiness_; } else { return readinessBuilder_.getMessage(); } } /** *
       * configuration for readiness probe
       * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; */ public Builder setReadiness(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness value) { if (readinessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readiness_ = value; onChanged(); } else { readinessBuilder_.setMessage(value); } return this; } /** *
       * configuration for readiness probe
       * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; */ public Builder setReadiness( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.Builder builderForValue) { if (readinessBuilder_ == null) { readiness_ = builderForValue.build(); onChanged(); } else { readinessBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * configuration for readiness probe
       * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; */ public Builder mergeReadiness(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness value) { if (readinessBuilder_ == null) { if (readiness_ != null) { readiness_ = com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.newBuilder(readiness_).mergeFrom(value).buildPartial(); } else { readiness_ = value; } onChanged(); } else { readinessBuilder_.mergeFrom(value); } return this; } /** *
       * configuration for readiness probe
       * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; */ public Builder clearReadiness() { if (readinessBuilder_ == null) { readiness_ = null; onChanged(); } else { readiness_ = null; readinessBuilder_ = null; } return this; } /** *
       * configuration for readiness probe
       * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.Builder getReadinessBuilder() { onChanged(); return getReadinessFieldBuilder().getBuilder(); } /** *
       * configuration for readiness probe
       * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.ReadinessOrBuilder getReadinessOrBuilder() { if (readinessBuilder_ != null) { return readinessBuilder_.getMessageOrBuilder(); } else { return readiness_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.getDefaultInstance() : readiness_; } } /** *
       * configuration for readiness probe
       * 
* * .v1.Readiness readiness = 3 [json_name = "readiness"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.ReadinessOrBuilder> getReadinessFieldBuilder() { if (readinessBuilder_ == null) { readinessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.ReadinessOrBuilder>( getReadiness(), getParentForChildren(), isClean()); readiness_ = null; } return readinessBuilder_; } @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.LosslessOnline) } // @@protoc_insertion_point(class_scope:v1.LosslessOnline) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOnline getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LosslessOnline 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.traffic.manage.LosslessProto.LosslessOnline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DelayRegisterOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.DelayRegister) com.google.protobuf.MessageOrBuilder { /** *
     * enable delay registry
     * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ boolean getEnable(); /** *
     * delay register strategy
     * 
* * .v1.DelayRegister.DelayStrategy strategy = 2 [json_name = "strategy"]; * @return The enum numeric value on the wire for strategy. */ int getStrategyValue(); /** *
     * delay register strategy
     * 
* * .v1.DelayRegister.DelayStrategy strategy = 2 [json_name = "strategy"]; * @return The strategy. */ com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy getStrategy(); /** *
     * delay register time by second, active when strategy == DELAY_BY_TIME
     * 
* * int32 intervalSecond = 3 [json_name = "interval_second"]; * @return The intervalSecond. */ int getIntervalSecond(); /** *
     * protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckProtocol = 4 [json_name = "health_check_protocol"]; * @return The healthCheckProtocol. */ java.lang.String getHealthCheckProtocol(); /** *
     * protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckProtocol = 4 [json_name = "health_check_protocol"]; * @return The bytes for healthCheckProtocol. */ com.google.protobuf.ByteString getHealthCheckProtocolBytes(); /** *
     * method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckMethod = 5 [json_name = "health_check_method"]; * @return The healthCheckMethod. */ java.lang.String getHealthCheckMethod(); /** *
     * method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckMethod = 5 [json_name = "health_check_method"]; * @return The bytes for healthCheckMethod. */ com.google.protobuf.ByteString getHealthCheckMethodBytes(); /** *
     * path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckPath = 6 [json_name = "health_check_path"]; * @return The healthCheckPath. */ java.lang.String getHealthCheckPath(); /** *
     * path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckPath = 6 [json_name = "health_check_path"]; * @return The bytes for healthCheckPath. */ com.google.protobuf.ByteString getHealthCheckPathBytes(); /** *
     * health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckIntervalSecond = 7 [json_name = "health_check_interval_second"]; * @return The healthCheckIntervalSecond. */ java.lang.String getHealthCheckIntervalSecond(); /** *
     * health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckIntervalSecond = 7 [json_name = "health_check_interval_second"]; * @return The bytes for healthCheckIntervalSecond. */ com.google.protobuf.ByteString getHealthCheckIntervalSecondBytes(); } /** * Protobuf type {@code v1.DelayRegister} */ public static final class DelayRegister extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.DelayRegister) DelayRegisterOrBuilder { private static final long serialVersionUID = 0L; // Use DelayRegister.newBuilder() to construct. private DelayRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DelayRegister() { strategy_ = 0; healthCheckProtocol_ = ""; healthCheckMethod_ = ""; healthCheckPath_ = ""; healthCheckIntervalSecond_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DelayRegister(); } @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.traffic.manage.LosslessProto.internal_static_v1_DelayRegister_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_DelayRegister_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.Builder.class); } /** * Protobuf enum {@code v1.DelayRegister.DelayStrategy} */ public enum DelayStrategy implements com.google.protobuf.ProtocolMessageEnum { /** *
       * register instance after delay specific time
       * 
* * DELAY_BY_TIME = 0; */ DELAY_BY_TIME(0), /** *
       * register instance until health check successfully
       * 
* * DELAY_BY_HEALTH_CHECK = 1; */ DELAY_BY_HEALTH_CHECK(1), UNRECOGNIZED(-1), ; /** *
       * register instance after delay specific time
       * 
* * DELAY_BY_TIME = 0; */ public static final int DELAY_BY_TIME_VALUE = 0; /** *
       * register instance until health check successfully
       * 
* * DELAY_BY_HEALTH_CHECK = 1; */ public static final int DELAY_BY_HEALTH_CHECK_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DelayStrategy valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static DelayStrategy forNumber(int value) { switch (value) { case 0: return DELAY_BY_TIME; case 1: return DELAY_BY_HEALTH_CHECK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DelayStrategy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DelayStrategy findValueByNumber(int number) { return DelayStrategy.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.getDescriptor().getEnumTypes().get(0); } private static final DelayStrategy[] VALUES = values(); public static DelayStrategy valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private DelayStrategy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.DelayRegister.DelayStrategy) } public static final int ENABLE_FIELD_NUMBER = 1; private boolean enable_; /** *
     * enable delay registry
     * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } public static final int STRATEGY_FIELD_NUMBER = 2; private int strategy_; /** *
     * delay register strategy
     * 
* * .v1.DelayRegister.DelayStrategy strategy = 2 [json_name = "strategy"]; * @return The enum numeric value on the wire for strategy. */ @java.lang.Override public int getStrategyValue() { return strategy_; } /** *
     * delay register strategy
     * 
* * .v1.DelayRegister.DelayStrategy strategy = 2 [json_name = "strategy"]; * @return The strategy. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy getStrategy() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy result = com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy.valueOf(strategy_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy.UNRECOGNIZED : result; } public static final int INTERVALSECOND_FIELD_NUMBER = 3; private int intervalSecond_; /** *
     * delay register time by second, active when strategy == DELAY_BY_TIME
     * 
* * int32 intervalSecond = 3 [json_name = "interval_second"]; * @return The intervalSecond. */ @java.lang.Override public int getIntervalSecond() { return intervalSecond_; } public static final int HEALTHCHECKPROTOCOL_FIELD_NUMBER = 4; private volatile java.lang.Object healthCheckProtocol_; /** *
     * protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckProtocol = 4 [json_name = "health_check_protocol"]; * @return The healthCheckProtocol. */ @java.lang.Override public java.lang.String getHealthCheckProtocol() { java.lang.Object ref = healthCheckProtocol_; 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(); healthCheckProtocol_ = s; return s; } } /** *
     * protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckProtocol = 4 [json_name = "health_check_protocol"]; * @return The bytes for healthCheckProtocol. */ @java.lang.Override public com.google.protobuf.ByteString getHealthCheckProtocolBytes() { java.lang.Object ref = healthCheckProtocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthCheckProtocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEALTHCHECKMETHOD_FIELD_NUMBER = 5; private volatile java.lang.Object healthCheckMethod_; /** *
     * method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckMethod = 5 [json_name = "health_check_method"]; * @return The healthCheckMethod. */ @java.lang.Override public java.lang.String getHealthCheckMethod() { java.lang.Object ref = healthCheckMethod_; 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(); healthCheckMethod_ = s; return s; } } /** *
     * method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckMethod = 5 [json_name = "health_check_method"]; * @return The bytes for healthCheckMethod. */ @java.lang.Override public com.google.protobuf.ByteString getHealthCheckMethodBytes() { java.lang.Object ref = healthCheckMethod_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthCheckMethod_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEALTHCHECKPATH_FIELD_NUMBER = 6; private volatile java.lang.Object healthCheckPath_; /** *
     * path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckPath = 6 [json_name = "health_check_path"]; * @return The healthCheckPath. */ @java.lang.Override public java.lang.String getHealthCheckPath() { java.lang.Object ref = healthCheckPath_; 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(); healthCheckPath_ = s; return s; } } /** *
     * path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckPath = 6 [json_name = "health_check_path"]; * @return The bytes for healthCheckPath. */ @java.lang.Override public com.google.protobuf.ByteString getHealthCheckPathBytes() { java.lang.Object ref = healthCheckPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthCheckPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEALTHCHECKINTERVALSECOND_FIELD_NUMBER = 7; private volatile java.lang.Object healthCheckIntervalSecond_; /** *
     * health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckIntervalSecond = 7 [json_name = "health_check_interval_second"]; * @return The healthCheckIntervalSecond. */ @java.lang.Override public java.lang.String getHealthCheckIntervalSecond() { java.lang.Object ref = healthCheckIntervalSecond_; 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(); healthCheckIntervalSecond_ = s; return s; } } /** *
     * health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK
     * 
* * string healthCheckIntervalSecond = 7 [json_name = "health_check_interval_second"]; * @return The bytes for healthCheckIntervalSecond. */ @java.lang.Override public com.google.protobuf.ByteString getHealthCheckIntervalSecondBytes() { java.lang.Object ref = healthCheckIntervalSecond_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthCheckIntervalSecond_ = 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 (enable_ != false) { output.writeBool(1, enable_); } if (strategy_ != com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy.DELAY_BY_TIME.getNumber()) { output.writeEnum(2, strategy_); } if (intervalSecond_ != 0) { output.writeInt32(3, intervalSecond_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckProtocol_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, healthCheckProtocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, healthCheckMethod_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, healthCheckPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckIntervalSecond_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, healthCheckIntervalSecond_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enable_); } if (strategy_ != com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy.DELAY_BY_TIME.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, strategy_); } if (intervalSecond_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, intervalSecond_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckProtocol_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, healthCheckProtocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckMethod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, healthCheckMethod_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, healthCheckPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckIntervalSecond_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, healthCheckIntervalSecond_); } 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.traffic.manage.LosslessProto.DelayRegister)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister other = (com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister) obj; if (getEnable() != other.getEnable()) return false; if (strategy_ != other.strategy_) return false; if (getIntervalSecond() != other.getIntervalSecond()) return false; if (!getHealthCheckProtocol() .equals(other.getHealthCheckProtocol())) return false; if (!getHealthCheckMethod() .equals(other.getHealthCheckMethod())) return false; if (!getHealthCheckPath() .equals(other.getHealthCheckPath())) return false; if (!getHealthCheckIntervalSecond() .equals(other.getHealthCheckIntervalSecond())) 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) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnable()); hash = (37 * hash) + STRATEGY_FIELD_NUMBER; hash = (53 * hash) + strategy_; hash = (37 * hash) + INTERVALSECOND_FIELD_NUMBER; hash = (53 * hash) + getIntervalSecond(); hash = (37 * hash) + HEALTHCHECKPROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getHealthCheckProtocol().hashCode(); hash = (37 * hash) + HEALTHCHECKMETHOD_FIELD_NUMBER; hash = (53 * hash) + getHealthCheckMethod().hashCode(); hash = (37 * hash) + HEALTHCHECKPATH_FIELD_NUMBER; hash = (53 * hash) + getHealthCheckPath().hashCode(); hash = (37 * hash) + HEALTHCHECKINTERVALSECOND_FIELD_NUMBER; hash = (53 * hash) + getHealthCheckIntervalSecond().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister 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.traffic.manage.LosslessProto.DelayRegister parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister 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.traffic.manage.LosslessProto.DelayRegister parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister 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.traffic.manage.LosslessProto.DelayRegister 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.traffic.manage.LosslessProto.DelayRegister 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.traffic.manage.LosslessProto.DelayRegister 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.traffic.manage.LosslessProto.DelayRegister 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.traffic.manage.LosslessProto.DelayRegister 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.traffic.manage.LosslessProto.DelayRegister 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.traffic.manage.LosslessProto.DelayRegister 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.DelayRegister} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.DelayRegister) com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegisterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_DelayRegister_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_DelayRegister_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); enable_ = false; strategy_ = 0; intervalSecond_ = 0; healthCheckProtocol_ = ""; healthCheckMethod_ = ""; healthCheckPath_ = ""; healthCheckIntervalSecond_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_DelayRegister_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister build() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister result = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister(this); result.enable_ = enable_; result.strategy_ = strategy_; result.intervalSecond_ = intervalSecond_; result.healthCheckProtocol_ = healthCheckProtocol_; result.healthCheckMethod_ = healthCheckMethod_; result.healthCheckPath_ = healthCheckPath_; result.healthCheckIntervalSecond_ = healthCheckIntervalSecond_; 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.traffic.manage.LosslessProto.DelayRegister) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.getDefaultInstance()) return this; if (other.getEnable() != false) { setEnable(other.getEnable()); } if (other.strategy_ != 0) { setStrategyValue(other.getStrategyValue()); } if (other.getIntervalSecond() != 0) { setIntervalSecond(other.getIntervalSecond()); } if (!other.getHealthCheckProtocol().isEmpty()) { healthCheckProtocol_ = other.healthCheckProtocol_; onChanged(); } if (!other.getHealthCheckMethod().isEmpty()) { healthCheckMethod_ = other.healthCheckMethod_; onChanged(); } if (!other.getHealthCheckPath().isEmpty()) { healthCheckPath_ = other.healthCheckPath_; onChanged(); } if (!other.getHealthCheckIntervalSecond().isEmpty()) { healthCheckIntervalSecond_ = other.healthCheckIntervalSecond_; 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: { enable_ = input.readBool(); break; } // case 8 case 16: { strategy_ = input.readEnum(); break; } // case 16 case 24: { intervalSecond_ = input.readInt32(); break; } // case 24 case 34: { healthCheckProtocol_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { healthCheckMethod_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { healthCheckPath_ = input.readStringRequireUtf8(); break; } // case 50 case 58: { healthCheckIntervalSecond_ = input.readStringRequireUtf8(); break; } // case 58 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 boolean enable_ ; /** *
       * enable delay registry
       * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } /** *
       * enable delay registry
       * 
* * bool enable = 1 [json_name = "enable"]; * @param value The enable to set. * @return This builder for chaining. */ public Builder setEnable(boolean value) { enable_ = value; onChanged(); return this; } /** *
       * enable delay registry
       * 
* * bool enable = 1 [json_name = "enable"]; * @return This builder for chaining. */ public Builder clearEnable() { enable_ = false; onChanged(); return this; } private int strategy_ = 0; /** *
       * delay register strategy
       * 
* * .v1.DelayRegister.DelayStrategy strategy = 2 [json_name = "strategy"]; * @return The enum numeric value on the wire for strategy. */ @java.lang.Override public int getStrategyValue() { return strategy_; } /** *
       * delay register strategy
       * 
* * .v1.DelayRegister.DelayStrategy strategy = 2 [json_name = "strategy"]; * @param value The enum numeric value on the wire for strategy to set. * @return This builder for chaining. */ public Builder setStrategyValue(int value) { strategy_ = value; onChanged(); return this; } /** *
       * delay register strategy
       * 
* * .v1.DelayRegister.DelayStrategy strategy = 2 [json_name = "strategy"]; * @return The strategy. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy getStrategy() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy result = com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy.valueOf(strategy_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy.UNRECOGNIZED : result; } /** *
       * delay register strategy
       * 
* * .v1.DelayRegister.DelayStrategy strategy = 2 [json_name = "strategy"]; * @param value The strategy to set. * @return This builder for chaining. */ public Builder setStrategy(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister.DelayStrategy value) { if (value == null) { throw new NullPointerException(); } strategy_ = value.getNumber(); onChanged(); return this; } /** *
       * delay register strategy
       * 
* * .v1.DelayRegister.DelayStrategy strategy = 2 [json_name = "strategy"]; * @return This builder for chaining. */ public Builder clearStrategy() { strategy_ = 0; onChanged(); return this; } private int intervalSecond_ ; /** *
       * delay register time by second, active when strategy == DELAY_BY_TIME
       * 
* * int32 intervalSecond = 3 [json_name = "interval_second"]; * @return The intervalSecond. */ @java.lang.Override public int getIntervalSecond() { return intervalSecond_; } /** *
       * delay register time by second, active when strategy == DELAY_BY_TIME
       * 
* * int32 intervalSecond = 3 [json_name = "interval_second"]; * @param value The intervalSecond to set. * @return This builder for chaining. */ public Builder setIntervalSecond(int value) { intervalSecond_ = value; onChanged(); return this; } /** *
       * delay register time by second, active when strategy == DELAY_BY_TIME
       * 
* * int32 intervalSecond = 3 [json_name = "interval_second"]; * @return This builder for chaining. */ public Builder clearIntervalSecond() { intervalSecond_ = 0; onChanged(); return this; } private java.lang.Object healthCheckProtocol_ = ""; /** *
       * protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckProtocol = 4 [json_name = "health_check_protocol"]; * @return The healthCheckProtocol. */ public java.lang.String getHealthCheckProtocol() { java.lang.Object ref = healthCheckProtocol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthCheckProtocol_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckProtocol = 4 [json_name = "health_check_protocol"]; * @return The bytes for healthCheckProtocol. */ public com.google.protobuf.ByteString getHealthCheckProtocolBytes() { java.lang.Object ref = healthCheckProtocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthCheckProtocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckProtocol = 4 [json_name = "health_check_protocol"]; * @param value The healthCheckProtocol to set. * @return This builder for chaining. */ public Builder setHealthCheckProtocol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } healthCheckProtocol_ = value; onChanged(); return this; } /** *
       * protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckProtocol = 4 [json_name = "health_check_protocol"]; * @return This builder for chaining. */ public Builder clearHealthCheckProtocol() { healthCheckProtocol_ = getDefaultInstance().getHealthCheckProtocol(); onChanged(); return this; } /** *
       * protocol to do health check, default http, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckProtocol = 4 [json_name = "health_check_protocol"]; * @param value The bytes for healthCheckProtocol to set. * @return This builder for chaining. */ public Builder setHealthCheckProtocolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); healthCheckProtocol_ = value; onChanged(); return this; } private java.lang.Object healthCheckMethod_ = ""; /** *
       * method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckMethod = 5 [json_name = "health_check_method"]; * @return The healthCheckMethod. */ public java.lang.String getHealthCheckMethod() { java.lang.Object ref = healthCheckMethod_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthCheckMethod_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckMethod = 5 [json_name = "health_check_method"]; * @return The bytes for healthCheckMethod. */ public com.google.protobuf.ByteString getHealthCheckMethodBytes() { java.lang.Object ref = healthCheckMethod_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthCheckMethod_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckMethod = 5 [json_name = "health_check_method"]; * @param value The healthCheckMethod to set. * @return This builder for chaining. */ public Builder setHealthCheckMethod( java.lang.String value) { if (value == null) { throw new NullPointerException(); } healthCheckMethod_ = value; onChanged(); return this; } /** *
       * method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckMethod = 5 [json_name = "health_check_method"]; * @return This builder for chaining. */ public Builder clearHealthCheckMethod() { healthCheckMethod_ = getDefaultInstance().getHealthCheckMethod(); onChanged(); return this; } /** *
       * method to do health check, default GET, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckMethod = 5 [json_name = "health_check_method"]; * @param value The bytes for healthCheckMethod to set. * @return This builder for chaining. */ public Builder setHealthCheckMethodBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); healthCheckMethod_ = value; onChanged(); return this; } private java.lang.Object healthCheckPath_ = ""; /** *
       * path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckPath = 6 [json_name = "health_check_path"]; * @return The healthCheckPath. */ public java.lang.String getHealthCheckPath() { java.lang.Object ref = healthCheckPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthCheckPath_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckPath = 6 [json_name = "health_check_path"]; * @return The bytes for healthCheckPath. */ public com.google.protobuf.ByteString getHealthCheckPathBytes() { java.lang.Object ref = healthCheckPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthCheckPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckPath = 6 [json_name = "health_check_path"]; * @param value The healthCheckPath to set. * @return This builder for chaining. */ public Builder setHealthCheckPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } healthCheckPath_ = value; onChanged(); return this; } /** *
       * path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckPath = 6 [json_name = "health_check_path"]; * @return This builder for chaining. */ public Builder clearHealthCheckPath() { healthCheckPath_ = getDefaultInstance().getHealthCheckPath(); onChanged(); return this; } /** *
       * path to do health check, no default value, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckPath = 6 [json_name = "health_check_path"]; * @param value The bytes for healthCheckPath to set. * @return This builder for chaining. */ public Builder setHealthCheckPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); healthCheckPath_ = value; onChanged(); return this; } private java.lang.Object healthCheckIntervalSecond_ = ""; /** *
       * health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckIntervalSecond = 7 [json_name = "health_check_interval_second"]; * @return The healthCheckIntervalSecond. */ public java.lang.String getHealthCheckIntervalSecond() { java.lang.Object ref = healthCheckIntervalSecond_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); healthCheckIntervalSecond_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckIntervalSecond = 7 [json_name = "health_check_interval_second"]; * @return The bytes for healthCheckIntervalSecond. */ public com.google.protobuf.ByteString getHealthCheckIntervalSecondBytes() { java.lang.Object ref = healthCheckIntervalSecond_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); healthCheckIntervalSecond_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckIntervalSecond = 7 [json_name = "health_check_interval_second"]; * @param value The healthCheckIntervalSecond to set. * @return This builder for chaining. */ public Builder setHealthCheckIntervalSecond( java.lang.String value) { if (value == null) { throw new NullPointerException(); } healthCheckIntervalSecond_ = value; onChanged(); return this; } /** *
       * health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckIntervalSecond = 7 [json_name = "health_check_interval_second"]; * @return This builder for chaining. */ public Builder clearHealthCheckIntervalSecond() { healthCheckIntervalSecond_ = getDefaultInstance().getHealthCheckIntervalSecond(); onChanged(); return this; } /** *
       * health check interval second, default is 30, active when strategy == DELAY_BY_HEALTH_CHECK
       * 
* * string healthCheckIntervalSecond = 7 [json_name = "health_check_interval_second"]; * @param value The bytes for healthCheckIntervalSecond to set. * @return This builder for chaining. */ public Builder setHealthCheckIntervalSecondBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); healthCheckIntervalSecond_ = 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.DelayRegister) } // @@protoc_insertion_point(class_scope:v1.DelayRegister) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.DelayRegister getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DelayRegister 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.traffic.manage.LosslessProto.DelayRegister getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WarmupOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.Warmup) com.google.protobuf.MessageOrBuilder { /** *
     * enable warmup
     * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ boolean getEnable(); /** *
     * total warmup interval by second
     * 
* * int32 intervalSecond = 2 [json_name = "interval_second"]; * @return The intervalSecond. */ int getIntervalSecond(); /** *
     * warmup stop when most of the instances in service are in warmup status
     * 
* * bool enableOverloadProtection = 3 [json_name = "enable_overload_protection"]; * @return The enableOverloadProtection. */ boolean getEnableOverloadProtection(); /** *
     * the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100
     * 
* * int32 overloadProtectionThreshold = 4 [json_name = "overload_protection_threshold"]; * @return The overloadProtectionThreshold. */ int getOverloadProtectionThreshold(); /** *
     * curvature for warmup register, default is 1
     * 
* * int32 curvature = 5 [json_name = "curvature"]; * @return The curvature. */ int getCurvature(); } /** * Protobuf type {@code v1.Warmup} */ public static final class Warmup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.Warmup) WarmupOrBuilder { private static final long serialVersionUID = 0L; // Use Warmup.newBuilder() to construct. private Warmup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Warmup() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Warmup(); } @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.traffic.manage.LosslessProto.internal_static_v1_Warmup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_Warmup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.Builder.class); } public static final int ENABLE_FIELD_NUMBER = 1; private boolean enable_; /** *
     * enable warmup
     * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } public static final int INTERVALSECOND_FIELD_NUMBER = 2; private int intervalSecond_; /** *
     * total warmup interval by second
     * 
* * int32 intervalSecond = 2 [json_name = "interval_second"]; * @return The intervalSecond. */ @java.lang.Override public int getIntervalSecond() { return intervalSecond_; } public static final int ENABLEOVERLOADPROTECTION_FIELD_NUMBER = 3; private boolean enableOverloadProtection_; /** *
     * warmup stop when most of the instances in service are in warmup status
     * 
* * bool enableOverloadProtection = 3 [json_name = "enable_overload_protection"]; * @return The enableOverloadProtection. */ @java.lang.Override public boolean getEnableOverloadProtection() { return enableOverloadProtection_; } public static final int OVERLOADPROTECTIONTHRESHOLD_FIELD_NUMBER = 4; private int overloadProtectionThreshold_; /** *
     * the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100
     * 
* * int32 overloadProtectionThreshold = 4 [json_name = "overload_protection_threshold"]; * @return The overloadProtectionThreshold. */ @java.lang.Override public int getOverloadProtectionThreshold() { return overloadProtectionThreshold_; } public static final int CURVATURE_FIELD_NUMBER = 5; private int curvature_; /** *
     * curvature for warmup register, default is 1
     * 
* * int32 curvature = 5 [json_name = "curvature"]; * @return The curvature. */ @java.lang.Override public int getCurvature() { return curvature_; } 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 (enable_ != false) { output.writeBool(1, enable_); } if (intervalSecond_ != 0) { output.writeInt32(2, intervalSecond_); } if (enableOverloadProtection_ != false) { output.writeBool(3, enableOverloadProtection_); } if (overloadProtectionThreshold_ != 0) { output.writeInt32(4, overloadProtectionThreshold_); } if (curvature_ != 0) { output.writeInt32(5, curvature_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enable_); } if (intervalSecond_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, intervalSecond_); } if (enableOverloadProtection_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, enableOverloadProtection_); } if (overloadProtectionThreshold_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, overloadProtectionThreshold_); } if (curvature_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, curvature_); } 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.traffic.manage.LosslessProto.Warmup)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup other = (com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup) obj; if (getEnable() != other.getEnable()) return false; if (getIntervalSecond() != other.getIntervalSecond()) return false; if (getEnableOverloadProtection() != other.getEnableOverloadProtection()) return false; if (getOverloadProtectionThreshold() != other.getOverloadProtectionThreshold()) return false; if (getCurvature() != other.getCurvature()) 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) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnable()); hash = (37 * hash) + INTERVALSECOND_FIELD_NUMBER; hash = (53 * hash) + getIntervalSecond(); hash = (37 * hash) + ENABLEOVERLOADPROTECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnableOverloadProtection()); hash = (37 * hash) + OVERLOADPROTECTIONTHRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getOverloadProtectionThreshold(); hash = (37 * hash) + CURVATURE_FIELD_NUMBER; hash = (53 * hash) + getCurvature(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup 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.traffic.manage.LosslessProto.Warmup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup 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.traffic.manage.LosslessProto.Warmup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup 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.traffic.manage.LosslessProto.Warmup 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.traffic.manage.LosslessProto.Warmup 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.traffic.manage.LosslessProto.Warmup 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.traffic.manage.LosslessProto.Warmup 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.traffic.manage.LosslessProto.Warmup 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.traffic.manage.LosslessProto.Warmup 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.traffic.manage.LosslessProto.Warmup 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.Warmup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.Warmup) com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.WarmupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_Warmup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_Warmup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); enable_ = false; intervalSecond_ = 0; enableOverloadProtection_ = false; overloadProtectionThreshold_ = 0; curvature_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_Warmup_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup build() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup result = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup(this); result.enable_ = enable_; result.intervalSecond_ = intervalSecond_; result.enableOverloadProtection_ = enableOverloadProtection_; result.overloadProtectionThreshold_ = overloadProtectionThreshold_; result.curvature_ = curvature_; 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.traffic.manage.LosslessProto.Warmup) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup.getDefaultInstance()) return this; if (other.getEnable() != false) { setEnable(other.getEnable()); } if (other.getIntervalSecond() != 0) { setIntervalSecond(other.getIntervalSecond()); } if (other.getEnableOverloadProtection() != false) { setEnableOverloadProtection(other.getEnableOverloadProtection()); } if (other.getOverloadProtectionThreshold() != 0) { setOverloadProtectionThreshold(other.getOverloadProtectionThreshold()); } if (other.getCurvature() != 0) { setCurvature(other.getCurvature()); } 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: { enable_ = input.readBool(); break; } // case 8 case 16: { intervalSecond_ = input.readInt32(); break; } // case 16 case 24: { enableOverloadProtection_ = input.readBool(); break; } // case 24 case 32: { overloadProtectionThreshold_ = input.readInt32(); break; } // case 32 case 40: { curvature_ = input.readInt32(); 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 boolean enable_ ; /** *
       * enable warmup
       * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } /** *
       * enable warmup
       * 
* * bool enable = 1 [json_name = "enable"]; * @param value The enable to set. * @return This builder for chaining. */ public Builder setEnable(boolean value) { enable_ = value; onChanged(); return this; } /** *
       * enable warmup
       * 
* * bool enable = 1 [json_name = "enable"]; * @return This builder for chaining. */ public Builder clearEnable() { enable_ = false; onChanged(); return this; } private int intervalSecond_ ; /** *
       * total warmup interval by second
       * 
* * int32 intervalSecond = 2 [json_name = "interval_second"]; * @return The intervalSecond. */ @java.lang.Override public int getIntervalSecond() { return intervalSecond_; } /** *
       * total warmup interval by second
       * 
* * int32 intervalSecond = 2 [json_name = "interval_second"]; * @param value The intervalSecond to set. * @return This builder for chaining. */ public Builder setIntervalSecond(int value) { intervalSecond_ = value; onChanged(); return this; } /** *
       * total warmup interval by second
       * 
* * int32 intervalSecond = 2 [json_name = "interval_second"]; * @return This builder for chaining. */ public Builder clearIntervalSecond() { intervalSecond_ = 0; onChanged(); return this; } private boolean enableOverloadProtection_ ; /** *
       * warmup stop when most of the instances in service are in warmup status
       * 
* * bool enableOverloadProtection = 3 [json_name = "enable_overload_protection"]; * @return The enableOverloadProtection. */ @java.lang.Override public boolean getEnableOverloadProtection() { return enableOverloadProtection_; } /** *
       * warmup stop when most of the instances in service are in warmup status
       * 
* * bool enableOverloadProtection = 3 [json_name = "enable_overload_protection"]; * @param value The enableOverloadProtection to set. * @return This builder for chaining. */ public Builder setEnableOverloadProtection(boolean value) { enableOverloadProtection_ = value; onChanged(); return this; } /** *
       * warmup stop when most of the instances in service are in warmup status
       * 
* * bool enableOverloadProtection = 3 [json_name = "enable_overload_protection"]; * @return This builder for chaining. */ public Builder clearEnableOverloadProtection() { enableOverloadProtection_ = false; onChanged(); return this; } private int overloadProtectionThreshold_ ; /** *
       * the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100
       * 
* * int32 overloadProtectionThreshold = 4 [json_name = "overload_protection_threshold"]; * @return The overloadProtectionThreshold. */ @java.lang.Override public int getOverloadProtectionThreshold() { return overloadProtectionThreshold_; } /** *
       * the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100
       * 
* * int32 overloadProtectionThreshold = 4 [json_name = "overload_protection_threshold"]; * @param value The overloadProtectionThreshold to set. * @return This builder for chaining. */ public Builder setOverloadProtectionThreshold(int value) { overloadProtectionThreshold_ = value; onChanged(); return this; } /** *
       * the threshold to active overload protection, default is 50, threshld = sum(WarmupInstances)/sum(AllInstances)*100
       * 
* * int32 overloadProtectionThreshold = 4 [json_name = "overload_protection_threshold"]; * @return This builder for chaining. */ public Builder clearOverloadProtectionThreshold() { overloadProtectionThreshold_ = 0; onChanged(); return this; } private int curvature_ ; /** *
       * curvature for warmup register, default is 1
       * 
* * int32 curvature = 5 [json_name = "curvature"]; * @return The curvature. */ @java.lang.Override public int getCurvature() { return curvature_; } /** *
       * curvature for warmup register, default is 1
       * 
* * int32 curvature = 5 [json_name = "curvature"]; * @param value The curvature to set. * @return This builder for chaining. */ public Builder setCurvature(int value) { curvature_ = value; onChanged(); return this; } /** *
       * curvature for warmup register, default is 1
       * 
* * int32 curvature = 5 [json_name = "curvature"]; * @return This builder for chaining. */ public Builder clearCurvature() { curvature_ = 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.Warmup) } // @@protoc_insertion_point(class_scope:v1.Warmup) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Warmup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Warmup 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.traffic.manage.LosslessProto.Warmup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadinessOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.Readiness) com.google.protobuf.MessageOrBuilder { /** *
     * enable /readiness expose
     * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ boolean getEnable(); } /** * Protobuf type {@code v1.Readiness} */ public static final class Readiness extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.Readiness) ReadinessOrBuilder { private static final long serialVersionUID = 0L; // Use Readiness.newBuilder() to construct. private Readiness(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Readiness() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Readiness(); } @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.traffic.manage.LosslessProto.internal_static_v1_Readiness_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_Readiness_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.Builder.class); } public static final int ENABLE_FIELD_NUMBER = 1; private boolean enable_; /** *
     * enable /readiness expose
     * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } 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 (enable_ != false) { output.writeBool(1, enable_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enable_); } 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.traffic.manage.LosslessProto.Readiness)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness other = (com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness) obj; if (getEnable() != other.getEnable()) 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) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness 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.traffic.manage.LosslessProto.Readiness parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness 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.traffic.manage.LosslessProto.Readiness parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness 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.traffic.manage.LosslessProto.Readiness 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.traffic.manage.LosslessProto.Readiness 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.traffic.manage.LosslessProto.Readiness 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.traffic.manage.LosslessProto.Readiness 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.traffic.manage.LosslessProto.Readiness 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.traffic.manage.LosslessProto.Readiness 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.traffic.manage.LosslessProto.Readiness 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.Readiness} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.Readiness) com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.ReadinessOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_Readiness_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_Readiness_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); enable_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_Readiness_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness build() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness result = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness(this); result.enable_ = enable_; 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.traffic.manage.LosslessProto.Readiness) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness.getDefaultInstance()) return this; if (other.getEnable() != false) { setEnable(other.getEnable()); } 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: { enable_ = input.readBool(); break; } // case 8 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 boolean enable_ ; /** *
       * enable /readiness expose
       * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } /** *
       * enable /readiness expose
       * 
* * bool enable = 1 [json_name = "enable"]; * @param value The enable to set. * @return This builder for chaining. */ public Builder setEnable(boolean value) { enable_ = value; onChanged(); return this; } /** *
       * enable /readiness expose
       * 
* * bool enable = 1 [json_name = "enable"]; * @return This builder for chaining. */ public Builder clearEnable() { enable_ = 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.Readiness) } // @@protoc_insertion_point(class_scope:v1.Readiness) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.Readiness getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Readiness 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.traffic.manage.LosslessProto.Readiness getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LosslessOfflineOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.LosslessOffline) com.google.protobuf.MessageOrBuilder { /** *
     * enable /offline expose
     * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ boolean getEnable(); } /** * Protobuf type {@code v1.LosslessOffline} */ public static final class LosslessOffline extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.LosslessOffline) LosslessOfflineOrBuilder { private static final long serialVersionUID = 0L; // Use LosslessOffline.newBuilder() to construct. private LosslessOffline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LosslessOffline() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LosslessOffline(); } @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.traffic.manage.LosslessProto.internal_static_v1_LosslessOffline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessOffline_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.Builder.class); } public static final int ENABLE_FIELD_NUMBER = 1; private boolean enable_; /** *
     * enable /offline expose
     * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } 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 (enable_ != false) { output.writeBool(1, enable_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enable_); } 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.traffic.manage.LosslessProto.LosslessOffline)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline other = (com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline) obj; if (getEnable() != other.getEnable()) 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) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline 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.LosslessOffline} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.LosslessOffline) com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOfflineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessOffline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessOffline_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.class, com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); enable_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.internal_static_v1_LosslessOffline_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline build() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline result = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline(this); result.enable_ = enable_; 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.traffic.manage.LosslessProto.LosslessOffline) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline.getDefaultInstance()) return this; if (other.getEnable() != false) { setEnable(other.getEnable()); } 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: { enable_ = input.readBool(); break; } // case 8 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 boolean enable_ ; /** *
       * enable /offline expose
       * 
* * bool enable = 1 [json_name = "enable"]; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } /** *
       * enable /offline expose
       * 
* * bool enable = 1 [json_name = "enable"]; * @param value The enable to set. * @return This builder for chaining. */ public Builder setEnable(boolean value) { enable_ = value; onChanged(); return this; } /** *
       * enable /offline expose
       * 
* * bool enable = 1 [json_name = "enable"]; * @return This builder for chaining. */ public Builder clearEnable() { enable_ = 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.LosslessOffline) } // @@protoc_insertion_point(class_scope:v1.LosslessOffline) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LosslessProto.LosslessOffline getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LosslessOffline 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.traffic.manage.LosslessProto.LosslessOffline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_LosslessRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_LosslessRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_LosslessRule_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_LosslessRule_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_LosslessOnline_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_LosslessOnline_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_DelayRegister_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_DelayRegister_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Warmup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Warmup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Readiness_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Readiness_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_LosslessOffline_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_LosslessOffline_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\016lossless.proto\022\002v1\"\304\003\n\014LosslessRule\022\016\n" + "\002id\030\001 \001(\tR\002id\022\030\n\007service\030\002 \001(\tR\007service\022" + "\034\n\tnamespace\030\003 \001(\tR\tnamespace\022\032\n\010revisio" + "n\030\004 \001(\tR\010revision\022\024\n\005ctime\030\005 \001(\tR\005ctime\022" + "\024\n\005mtime\030\006 \001(\tR\005mtime\022;\n\016losslessOnline\030" + "\007 \001(\0132\022.v1.LosslessOnlineR\017lossless_onli" + "ne\022>\n\017losslessOffline\030\010 \001(\0132\023.v1.Lossles" + "sOfflineR\020lossless_offline\022:\n\010metadata\030\t" + " \003(\0132\036.v1.LosslessRule.MetadataEntryR\010me" + "tadata\022\032\n\010editable\030\036 \001(\010R\010editable\022\036\n\nde" + "leteable\030\037 \001(\010R\ndeleteable\032/\n\rMetadataEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\233\001\n\016" + "LosslessOnline\0228\n\rdelayRegister\030\001 \001(\0132\021." + "v1.DelayRegisterR\016delay_register\022\"\n\006warm" + "up\030\002 \001(\0132\n.v1.WarmupR\006warmup\022+\n\treadines" + "s\030\003 \001(\0132\r.v1.ReadinessR\treadiness\"\235\003\n\rDe" + "layRegister\022\026\n\006enable\030\001 \001(\010R\006enable\022;\n\010s" + "trategy\030\002 \001(\0162\037.v1.DelayRegister.DelaySt" + "rategyR\010strategy\022\'\n\016intervalSecond\030\003 \001(\005" + "R\017interval_second\0222\n\023healthCheckProtocol" + "\030\004 \001(\tR\025health_check_protocol\022.\n\021healthC" + "heckMethod\030\005 \001(\tR\023health_check_method\022*\n" + "\017healthCheckPath\030\006 \001(\tR\021health_check_pat" + "h\022?\n\031healthCheckIntervalSecond\030\007 \001(\tR\034he" + "alth_check_interval_second\"=\n\rDelayStrat" + "egy\022\021\n\rDELAY_BY_TIME\020\000\022\031\n\025DELAY_BY_HEALT" + "H_CHECK\020\001\"\351\001\n\006Warmup\022\026\n\006enable\030\001 \001(\010R\006en" + "able\022\'\n\016intervalSecond\030\002 \001(\005R\017interval_s" + "econd\022<\n\030enableOverloadProtection\030\003 \001(\010R" + "\032enable_overload_protection\022B\n\033overloadP" + "rotectionThreshold\030\004 \001(\005R\035overload_prote" + "ction_threshold\022\034\n\tcurvature\030\005 \001(\005R\tcurv" + "ature\"#\n\tReadiness\022\026\n\006enable\030\001 \001(\010R\006enab" + "le\")\n\017LosslessOffline\022\026\n\006enable\030\001 \001(\010R\006e" + "nableB\216\001\n7com.tencent.polaris.specificat" + "ion.api.v1.traffic.manageB\rLosslessProto" + "ZDgithub.com/polarismesh/specification/s" + "ource/go/api/v1/traffic_manageb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_v1_LosslessRule_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_v1_LosslessRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_LosslessRule_descriptor, new java.lang.String[] { "Id", "Service", "Namespace", "Revision", "Ctime", "Mtime", "LosslessOnline", "LosslessOffline", "Metadata", "Editable", "Deleteable", }); internal_static_v1_LosslessRule_MetadataEntry_descriptor = internal_static_v1_LosslessRule_descriptor.getNestedTypes().get(0); internal_static_v1_LosslessRule_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_LosslessRule_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_LosslessOnline_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_v1_LosslessOnline_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_LosslessOnline_descriptor, new java.lang.String[] { "DelayRegister", "Warmup", "Readiness", }); internal_static_v1_DelayRegister_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_v1_DelayRegister_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_DelayRegister_descriptor, new java.lang.String[] { "Enable", "Strategy", "IntervalSecond", "HealthCheckProtocol", "HealthCheckMethod", "HealthCheckPath", "HealthCheckIntervalSecond", }); internal_static_v1_Warmup_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_v1_Warmup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Warmup_descriptor, new java.lang.String[] { "Enable", "IntervalSecond", "EnableOverloadProtection", "OverloadProtectionThreshold", "Curvature", }); internal_static_v1_Readiness_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_v1_Readiness_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Readiness_descriptor, new java.lang.String[] { "Enable", }); internal_static_v1_LosslessOffline_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_v1_LosslessOffline_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_LosslessOffline_descriptor, new java.lang.String[] { "Enable", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy