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

com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto Maven / Gradle / Ivy

There is a newer version: 2.0.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: contract.proto

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

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

    /**
     * 
     * 契约ID
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * 契约ID
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * 契约名称
     * deprecated, use type field
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * 契约名称
     * deprecated, use type field
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * 所属命名空间
     * 
* * string namespace = 3; * @return The namespace. */ java.lang.String getNamespace(); /** *
     * 所属命名空间
     * 
* * string namespace = 3; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** *
     * 所属服务名称
     * 
* * string service = 4; * @return The service. */ java.lang.String getService(); /** *
     * 所属服务名称
     * 
* * string service = 4; * @return The bytes for service. */ com.google.protobuf.ByteString getServiceBytes(); /** *
     * 协议,http/grpc/dubbo/thrift
     * 
* * string protocol = 5; * @return The protocol. */ java.lang.String getProtocol(); /** *
     * 协议,http/grpc/dubbo/thrift
     * 
* * string protocol = 5; * @return The bytes for protocol. */ com.google.protobuf.ByteString getProtocolBytes(); /** *
     * 契约版本
     * 
* * string version = 6; * @return The version. */ java.lang.String getVersion(); /** *
     * 契约版本
     * 
* * string version = 6; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * 信息摘要
     * 
* * string revision = 7; * @return The revision. */ java.lang.String getRevision(); /** *
     * 信息摘要
     * 
* * string revision = 7; * @return The bytes for revision. */ com.google.protobuf.ByteString getRevisionBytes(); /** *
     * 额外描述
     * 
* * string content = 8; * @return The content. */ java.lang.String getContent(); /** *
     * 额外描述
     * 
* * string content = 8; * @return The bytes for content. */ com.google.protobuf.ByteString getContentBytes(); /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ java.util.List getInterfacesList(); /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor getInterfaces(int index); /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ int getInterfacesCount(); /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ java.util.List getInterfacesOrBuilderList(); /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder getInterfacesOrBuilder( int index); /** *
     * 创建时间
     * 
* * string ctime = 10; * @return The ctime. */ java.lang.String getCtime(); /** *
     * 创建时间
     * 
* * string ctime = 10; * @return The bytes for ctime. */ com.google.protobuf.ByteString getCtimeBytes(); /** *
     * 更新时间
     * 
* * string mtime = 11; * @return The mtime. */ java.lang.String getMtime(); /** *
     * 更新时间
     * 
* * string mtime = 11; * @return The bytes for mtime. */ com.google.protobuf.ByteString getMtimeBytes(); /** *
     * 接口状态,Offline/Online
     * 
* * string status = 12; * @return The status. */ java.lang.String getStatus(); /** *
     * 接口状态,Offline/Online
     * 
* * string status = 12; * @return The bytes for status. */ com.google.protobuf.ByteString getStatusBytes(); /** *
     * 类型
     * 
* * string type = 14; * @return The type. */ java.lang.String getType(); /** *
     * 类型
     * 
* * string type = 14; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); } /** * Protobuf type {@code v1.ServiceContract} */ public static final class ServiceContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ServiceContract) ServiceContractOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceContract.newBuilder() to construct. private ServiceContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceContract() { id_ = ""; name_ = ""; namespace_ = ""; service_ = ""; protocol_ = ""; version_ = ""; revision_ = ""; content_ = ""; interfaces_ = java.util.Collections.emptyList(); ctime_ = ""; mtime_ = ""; status_ = ""; type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ServiceContract(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_ServiceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_ServiceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.class, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * 契约ID
     * 
* * string id = 1; * @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; } } /** *
     * 契约ID
     * 
* * string id = 1; * @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 NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * 契约名称
     * deprecated, use type field
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * 契约名称
     * deprecated, use type field
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object namespace_; /** *
     * 所属命名空间
     * 
* * string namespace = 3; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** *
     * 所属命名空间
     * 
* * string namespace = 3; * @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 SERVICE_FIELD_NUMBER = 4; private volatile java.lang.Object service_; /** *
     * 所属服务名称
     * 
* * string service = 4; * @return The service. */ @java.lang.Override public java.lang.String getService() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** *
     * 所属服务名称
     * 
* * string service = 4; * @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 PROTOCOL_FIELD_NUMBER = 5; private volatile java.lang.Object protocol_; /** *
     * 协议,http/grpc/dubbo/thrift
     * 
* * string protocol = 5; * @return The protocol. */ @java.lang.Override public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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(); protocol_ = s; return s; } } /** *
     * 协议,http/grpc/dubbo/thrift
     * 
* * string protocol = 5; * @return The bytes for protocol. */ @java.lang.Override public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object version_; /** *
     * 契约版本
     * 
* * string version = 6; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** *
     * 契约版本
     * 
* * string version = 6; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REVISION_FIELD_NUMBER = 7; private volatile java.lang.Object revision_; /** *
     * 信息摘要
     * 
* * string revision = 7; * @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; } } /** *
     * 信息摘要
     * 
* * string revision = 7; * @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 CONTENT_FIELD_NUMBER = 8; private volatile java.lang.Object content_; /** *
     * 额外描述
     * 
* * string content = 8; * @return The content. */ @java.lang.Override public java.lang.String getContent() { java.lang.Object ref = content_; 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(); content_ = s; return s; } } /** *
     * 额外描述
     * 
* * string content = 8; * @return The bytes for content. */ @java.lang.Override public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INTERFACES_FIELD_NUMBER = 9; private java.util.List interfaces_; /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ @java.lang.Override public java.util.List getInterfacesList() { return interfaces_; } /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ @java.lang.Override public java.util.List getInterfacesOrBuilderList() { return interfaces_; } /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ @java.lang.Override public int getInterfacesCount() { return interfaces_.size(); } /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor getInterfaces(int index) { return interfaces_.get(index); } /** *
     * 接口描述信息
     * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder getInterfacesOrBuilder( int index) { return interfaces_.get(index); } public static final int CTIME_FIELD_NUMBER = 10; private volatile java.lang.Object ctime_; /** *
     * 创建时间
     * 
* * string ctime = 10; * @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; } } /** *
     * 创建时间
     * 
* * string ctime = 10; * @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 = 11; private volatile java.lang.Object mtime_; /** *
     * 更新时间
     * 
* * string mtime = 11; * @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; } } /** *
     * 更新时间
     * 
* * string mtime = 11; * @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 STATUS_FIELD_NUMBER = 12; private volatile java.lang.Object status_; /** *
     * 接口状态,Offline/Online
     * 
* * string status = 12; * @return The status. */ @java.lang.Override public java.lang.String getStatus() { java.lang.Object ref = status_; 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(); status_ = s; return s; } } /** *
     * 接口状态,Offline/Online
     * 
* * string status = 12; * @return The bytes for status. */ @java.lang.Override public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 14; private volatile java.lang.Object type_; /** *
     * 类型
     * 
* * string type = 14; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** *
     * 类型
     * 
* * string type = 14; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, protocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, content_); } for (int i = 0; i < interfaces_.size(); i++) { output.writeMessage(9, interfaces_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, mtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, type_); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, protocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, content_); } for (int i = 0; i < interfaces_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, interfaces_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, mtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract other = (com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getService() .equals(other.getService())) return false; if (!getProtocol() .equals(other.getProtocol())) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getRevision() .equals(other.getRevision())) return false; if (!getContent() .equals(other.getContent())) return false; if (!getInterfacesList() .equals(other.getInterfacesList())) return false; if (!getCtime() .equals(other.getCtime())) return false; if (!getMtime() .equals(other.getMtime())) return false; if (!getStatus() .equals(other.getStatus())) return false; if (!getType() .equals(other.getType())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision().hashCode(); hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); if (getInterfacesCount() > 0) { hash = (37 * hash) + INTERFACES_FIELD_NUMBER; hash = (53 * hash) + getInterfacesList().hashCode(); } hash = (37 * hash) + CTIME_FIELD_NUMBER; hash = (53 * hash) + getCtime().hashCode(); hash = (37 * hash) + MTIME_FIELD_NUMBER; hash = (53 * hash) + getMtime().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract 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.ServiceContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ServiceContract) com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_ServiceContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_ServiceContract_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.class, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; namespace_ = ""; service_ = ""; protocol_ = ""; version_ = ""; revision_ = ""; content_ = ""; if (interfacesBuilder_ == null) { interfaces_ = java.util.Collections.emptyList(); } else { interfaces_ = null; interfacesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); ctime_ = ""; mtime_ = ""; status_ = ""; type_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_ServiceContract_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract build() { com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract buildPartial() { com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract result = new com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; result.namespace_ = namespace_; result.service_ = service_; result.protocol_ = protocol_; result.version_ = version_; result.revision_ = revision_; result.content_ = content_; if (interfacesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { interfaces_ = java.util.Collections.unmodifiableList(interfaces_); bitField0_ = (bitField0_ & ~0x00000001); } result.interfaces_ = interfaces_; } else { result.interfaces_ = interfacesBuilder_.build(); } result.ctime_ = ctime_; result.mtime_ = mtime_; result.status_ = status_; result.type_ = type_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract) { return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract other) { if (other == com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getProtocol().isEmpty()) { protocol_ = other.protocol_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getRevision().isEmpty()) { revision_ = other.revision_; onChanged(); } if (!other.getContent().isEmpty()) { content_ = other.content_; onChanged(); } if (interfacesBuilder_ == null) { if (!other.interfaces_.isEmpty()) { if (interfaces_.isEmpty()) { interfaces_ = other.interfaces_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInterfacesIsMutable(); interfaces_.addAll(other.interfaces_); } onChanged(); } } else { if (!other.interfaces_.isEmpty()) { if (interfacesBuilder_.isEmpty()) { interfacesBuilder_.dispose(); interfacesBuilder_ = null; interfaces_ = other.interfaces_; bitField0_ = (bitField0_ & ~0x00000001); interfacesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInterfacesFieldBuilder() : null; } else { interfacesBuilder_.addAllMessages(other.interfaces_); } } } if (!other.getCtime().isEmpty()) { ctime_ = other.ctime_; onChanged(); } if (!other.getMtime().isEmpty()) { mtime_ = other.mtime_; onChanged(); } if (!other.getStatus().isEmpty()) { status_ = other.status_; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { name_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { namespace_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { service_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { protocol_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { version_ = input.readStringRequireUtf8(); break; } // case 50 case 58: { revision_ = input.readStringRequireUtf8(); break; } // case 58 case 66: { content_ = input.readStringRequireUtf8(); break; } // case 66 case 74: { com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor m = input.readMessage( com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.parser(), extensionRegistry); if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.add(m); } else { interfacesBuilder_.addMessage(m); } break; } // case 74 case 82: { ctime_ = input.readStringRequireUtf8(); break; } // case 82 case 90: { mtime_ = input.readStringRequireUtf8(); break; } // case 90 case 98: { status_ = input.readStringRequireUtf8(); break; } // case 98 case 114: { type_ = input.readStringRequireUtf8(); break; } // case 114 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_ = ""; /** *
       * 契约ID
       * 
* * string id = 1; * @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; } } /** *
       * 契约ID
       * 
* * string id = 1; * @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; } } /** *
       * 契约ID
       * 
* * string id = 1; * @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; } /** *
       * 契约ID
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * 契约ID
       * 
* * string id = 1; * @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 name_ = ""; /** *
       * 契约名称
       * deprecated, use type field
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 契约名称
       * deprecated, use type field
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 契约名称
       * deprecated, use type field
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * 契约名称
       * deprecated, use type field
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * 契约名称
       * deprecated, use type field
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** *
       * 所属命名空间
       * 
* * string namespace = 3; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 所属命名空间
       * 
* * string namespace = 3; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 所属命名空间
       * 
* * string namespace = 3; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** *
       * 所属命名空间
       * 
* * string namespace = 3; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** *
       * 所属命名空间
       * 
* * string namespace = 3; * @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 service_ = ""; /** *
       * 所属服务名称
       * 
* * string service = 4; * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 所属服务名称
       * 
* * string service = 4; * @return The bytes for service. */ public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 所属服务名称
       * 
* * string service = 4; * @param value The service to set. * @return This builder for chaining. */ public Builder setService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); return this; } /** *
       * 所属服务名称
       * 
* * string service = 4; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** *
       * 所属服务名称
       * 
* * string service = 4; * @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 protocol_ = ""; /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 5; * @return The protocol. */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); protocol_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 5; * @return The bytes for protocol. */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 5; * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } protocol_ = value; onChanged(); return this; } /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 5; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 5; * @param value The bytes for protocol to set. * @return This builder for chaining. */ public Builder setProtocolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); protocol_ = value; onChanged(); return this; } private java.lang.Object version_ = ""; /** *
       * 契约版本
       * 
* * string version = 6; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 契约版本
       * 
* * string version = 6; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 契约版本
       * 
* * string version = 6; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       * 契约版本
       * 
* * string version = 6; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * 契约版本
       * 
* * string version = 6; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private java.lang.Object revision_ = ""; /** *
       * 信息摘要
       * 
* * string revision = 7; * @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; } } /** *
       * 信息摘要
       * 
* * string revision = 7; * @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; } } /** *
       * 信息摘要
       * 
* * string revision = 7; * @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; } /** *
       * 信息摘要
       * 
* * string revision = 7; * @return This builder for chaining. */ public Builder clearRevision() { revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** *
       * 信息摘要
       * 
* * string revision = 7; * @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 content_ = ""; /** *
       * 额外描述
       * 
* * string content = 8; * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 额外描述
       * 
* * string content = 8; * @return The bytes for content. */ public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 额外描述
       * 
* * string content = 8; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /** *
       * 额外描述
       * 
* * string content = 8; * @return This builder for chaining. */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** *
       * 额外描述
       * 
* * string content = 8; * @param value The bytes for content to set. * @return This builder for chaining. */ public Builder setContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; onChanged(); return this; } private java.util.List interfaces_ = java.util.Collections.emptyList(); private void ensureInterfacesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { interfaces_ = new java.util.ArrayList(interfaces_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder> interfacesBuilder_; /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public java.util.List getInterfacesList() { if (interfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(interfaces_); } else { return interfacesBuilder_.getMessageList(); } } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public int getInterfacesCount() { if (interfacesBuilder_ == null) { return interfaces_.size(); } else { return interfacesBuilder_.getCount(); } } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor getInterfaces(int index) { if (interfacesBuilder_ == null) { return interfaces_.get(index); } else { return interfacesBuilder_.getMessage(index); } } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public Builder setInterfaces( int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor value) { if (interfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterfacesIsMutable(); interfaces_.set(index, value); onChanged(); } else { interfacesBuilder_.setMessage(index, value); } return this; } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public Builder setInterfaces( int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder builderForValue) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.set(index, builderForValue.build()); onChanged(); } else { interfacesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public Builder addInterfaces(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor value) { if (interfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterfacesIsMutable(); interfaces_.add(value); onChanged(); } else { interfacesBuilder_.addMessage(value); } return this; } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public Builder addInterfaces( int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor value) { if (interfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterfacesIsMutable(); interfaces_.add(index, value); onChanged(); } else { interfacesBuilder_.addMessage(index, value); } return this; } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public Builder addInterfaces( com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder builderForValue) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.add(builderForValue.build()); onChanged(); } else { interfacesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public Builder addInterfaces( int index, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder builderForValue) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.add(index, builderForValue.build()); onChanged(); } else { interfacesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public Builder addAllInterfaces( java.lang.Iterable values) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, interfaces_); onChanged(); } else { interfacesBuilder_.addAllMessages(values); } return this; } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public Builder clearInterfaces() { if (interfacesBuilder_ == null) { interfaces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { interfacesBuilder_.clear(); } return this; } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public Builder removeInterfaces(int index) { if (interfacesBuilder_ == null) { ensureInterfacesIsMutable(); interfaces_.remove(index); onChanged(); } else { interfacesBuilder_.remove(index); } return this; } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder getInterfacesBuilder( int index) { return getInterfacesFieldBuilder().getBuilder(index); } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder getInterfacesOrBuilder( int index) { if (interfacesBuilder_ == null) { return interfaces_.get(index); } else { return interfacesBuilder_.getMessageOrBuilder(index); } } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public java.util.List getInterfacesOrBuilderList() { if (interfacesBuilder_ != null) { return interfacesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(interfaces_); } } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder addInterfacesBuilder() { return getInterfacesFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.getDefaultInstance()); } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder addInterfacesBuilder( int index) { return getInterfacesFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.getDefaultInstance()); } /** *
       * 接口描述信息
       * 
* * repeated .v1.InterfaceDescriptor interfaces = 9; */ public java.util.List getInterfacesBuilderList() { return getInterfacesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder> getInterfacesFieldBuilder() { if (interfacesBuilder_ == null) { interfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder>( interfaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); interfaces_ = null; } return interfacesBuilder_; } private java.lang.Object ctime_ = ""; /** *
       * 创建时间
       * 
* * string ctime = 10; * @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; } } /** *
       * 创建时间
       * 
* * string ctime = 10; * @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; } } /** *
       * 创建时间
       * 
* * string ctime = 10; * @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; } /** *
       * 创建时间
       * 
* * string ctime = 10; * @return This builder for chaining. */ public Builder clearCtime() { ctime_ = getDefaultInstance().getCtime(); onChanged(); return this; } /** *
       * 创建时间
       * 
* * string ctime = 10; * @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_ = ""; /** *
       * 更新时间
       * 
* * string mtime = 11; * @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; } } /** *
       * 更新时间
       * 
* * string mtime = 11; * @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; } } /** *
       * 更新时间
       * 
* * string mtime = 11; * @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; } /** *
       * 更新时间
       * 
* * string mtime = 11; * @return This builder for chaining. */ public Builder clearMtime() { mtime_ = getDefaultInstance().getMtime(); onChanged(); return this; } /** *
       * 更新时间
       * 
* * string mtime = 11; * @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 java.lang.Object status_ = ""; /** *
       * 接口状态,Offline/Online
       * 
* * string status = 12; * @return The status. */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 接口状态,Offline/Online
       * 
* * string status = 12; * @return The bytes for status. */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 接口状态,Offline/Online
       * 
* * string status = 12; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus( java.lang.String value) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); return this; } /** *
       * 接口状态,Offline/Online
       * 
* * string status = 12; * @return This builder for chaining. */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** *
       * 接口状态,Offline/Online
       * 
* * string status = 12; * @param value The bytes for status to set. * @return This builder for chaining. */ public Builder setStatusBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); status_ = value; onChanged(); return this; } private java.lang.Object type_ = ""; /** *
       * 类型
       * 
* * string type = 14; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 类型
       * 
* * string type = 14; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 类型
       * 
* * string type = 14; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); return this; } /** *
       * 类型
       * 
* * string type = 14; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
       * 类型
       * 
* * string type = 14; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = 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.ServiceContract) } // @@protoc_insertion_point(class_scope:v1.ServiceContract) private static final com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract(); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceContract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InterfaceDescriptorOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.InterfaceDescriptor) com.google.protobuf.MessageOrBuilder { /** *
     * 接口ID
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * 接口ID
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * 方法名称,对应 http method/ dubbo interface func/grpc service func
     * 
* * string method = 2; * @return The method. */ java.lang.String getMethod(); /** *
     * 方法名称,对应 http method/ dubbo interface func/grpc service func
     * 
* * string method = 2; * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** *
     * 接口名称,http path/dubbo interface/grpc service
     * 
* * string path = 3; * @return The path. */ java.lang.String getPath(); /** *
     * 接口名称,http path/dubbo interface/grpc service
     * 
* * string path = 3; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
     * 接口描述信息
     * 
* * string content = 4; * @return The content. */ java.lang.String getContent(); /** *
     * 接口描述信息
     * 
* * string content = 4; * @return The bytes for content. */ com.google.protobuf.ByteString getContentBytes(); /** *
     * 创建来源
     * 
* * .v1.InterfaceDescriptor.Source source = 5; * @return The enum numeric value on the wire for source. */ int getSourceValue(); /** *
     * 创建来源
     * 
* * .v1.InterfaceDescriptor.Source source = 5; * @return The source. */ com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source getSource(); /** *
     * 接口信息摘要
     * 
* * string revision = 6; * @return The revision. */ java.lang.String getRevision(); /** *
     * 接口信息摘要
     * 
* * string revision = 6; * @return The bytes for revision. */ com.google.protobuf.ByteString getRevisionBytes(); /** *
     * 创建时间
     * 
* * string ctime = 7; * @return The ctime. */ java.lang.String getCtime(); /** *
     * 创建时间
     * 
* * string ctime = 7; * @return The bytes for ctime. */ com.google.protobuf.ByteString getCtimeBytes(); /** *
     * 更新时间
     * 
* * string mtime = 8; * @return The mtime. */ java.lang.String getMtime(); /** *
     * 更新时间
     * 
* * string mtime = 8; * @return The bytes for mtime. */ com.google.protobuf.ByteString getMtimeBytes(); /** *
     * 接口名称描述信息
     * deprecated, use type field
     * 
* * string name = 9; * @return The name. */ java.lang.String getName(); /** *
     * 接口名称描述信息
     * deprecated, use type field
     * 
* * string name = 9; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * 所属命名空间
     * 
* * string namespace = 10; * @return The namespace. */ java.lang.String getNamespace(); /** *
     * 所属命名空间
     * 
* * string namespace = 10; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** *
     * 所属服务名称
     * 
* * string service = 11; * @return The service. */ java.lang.String getService(); /** *
     * 所属服务名称
     * 
* * string service = 11; * @return The bytes for service. */ com.google.protobuf.ByteString getServiceBytes(); /** *
     * 协议,http/grpc/dubbo/thrift
     * 
* * string protocol = 12; * @return The protocol. */ java.lang.String getProtocol(); /** *
     * 协议,http/grpc/dubbo/thrift
     * 
* * string protocol = 12; * @return The bytes for protocol. */ com.google.protobuf.ByteString getProtocolBytes(); /** *
     * 契约版本
     * 
* * string version = 13; * @return The version. */ java.lang.String getVersion(); /** *
     * 契约版本
     * 
* * string version = 13; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * 类型
     * 
* * string type = 14; * @return The type. */ java.lang.String getType(); /** *
     * 类型
     * 
* * string type = 14; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); } /** * Protobuf type {@code v1.InterfaceDescriptor} */ public static final class InterfaceDescriptor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.InterfaceDescriptor) InterfaceDescriptorOrBuilder { private static final long serialVersionUID = 0L; // Use InterfaceDescriptor.newBuilder() to construct. private InterfaceDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InterfaceDescriptor() { id_ = ""; method_ = ""; path_ = ""; content_ = ""; source_ = 0; revision_ = ""; ctime_ = ""; mtime_ = ""; name_ = ""; namespace_ = ""; service_ = ""; protocol_ = ""; version_ = ""; type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InterfaceDescriptor(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_InterfaceDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_InterfaceDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.class, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder.class); } /** * Protobuf enum {@code v1.InterfaceDescriptor.Source} */ public enum Source implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * Manual = 1; */ Manual(1), /** * Client = 2; */ Client(2), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * Manual = 1; */ public static final int Manual_VALUE = 1; /** * Client = 2; */ public static final int Client_VALUE = 2; 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 Source 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 Source forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return Manual; case 2: return Client; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Source> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Source findValueByNumber(int number) { return Source.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.service.manage.ServiceContractProto.InterfaceDescriptor.getDescriptor().getEnumTypes().get(0); } private static final Source[] VALUES = values(); public static Source 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 Source(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.InterfaceDescriptor.Source) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * 接口ID
     * 
* * string id = 1; * @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; } } /** *
     * 接口ID
     * 
* * string id = 1; * @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 METHOD_FIELD_NUMBER = 2; private volatile java.lang.Object method_; /** *
     * 方法名称,对应 http method/ dubbo interface func/grpc service func
     * 
* * string method = 2; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { java.lang.Object ref = method_; 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(); method_ = s; return s; } } /** *
     * 方法名称,对应 http method/ dubbo interface func/grpc service func
     * 
* * string method = 2; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH_FIELD_NUMBER = 3; private volatile java.lang.Object path_; /** *
     * 接口名称,http path/dubbo interface/grpc service
     * 
* * string path = 3; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
     * 接口名称,http path/dubbo interface/grpc service
     * 
* * string path = 3; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTENT_FIELD_NUMBER = 4; private volatile java.lang.Object content_; /** *
     * 接口描述信息
     * 
* * string content = 4; * @return The content. */ @java.lang.Override public java.lang.String getContent() { java.lang.Object ref = content_; 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(); content_ = s; return s; } } /** *
     * 接口描述信息
     * 
* * string content = 4; * @return The bytes for content. */ @java.lang.Override public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_FIELD_NUMBER = 5; private int source_; /** *
     * 创建来源
     * 
* * .v1.InterfaceDescriptor.Source source = 5; * @return The enum numeric value on the wire for source. */ @java.lang.Override public int getSourceValue() { return source_; } /** *
     * 创建来源
     * 
* * .v1.InterfaceDescriptor.Source source = 5; * @return The source. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source getSource() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source result = com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source.valueOf(source_); return result == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source.UNRECOGNIZED : result; } public static final int REVISION_FIELD_NUMBER = 6; private volatile java.lang.Object revision_; /** *
     * 接口信息摘要
     * 
* * string revision = 6; * @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; } } /** *
     * 接口信息摘要
     * 
* * string revision = 6; * @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 = 7; private volatile java.lang.Object ctime_; /** *
     * 创建时间
     * 
* * string ctime = 7; * @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; } } /** *
     * 创建时间
     * 
* * string ctime = 7; * @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 = 8; private volatile java.lang.Object mtime_; /** *
     * 更新时间
     * 
* * string mtime = 8; * @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; } } /** *
     * 更新时间
     * 
* * string mtime = 8; * @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 NAME_FIELD_NUMBER = 9; private volatile java.lang.Object name_; /** *
     * 接口名称描述信息
     * deprecated, use type field
     * 
* * string name = 9; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * 接口名称描述信息
     * deprecated, use type field
     * 
* * string name = 9; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 10; private volatile java.lang.Object namespace_; /** *
     * 所属命名空间
     * 
* * string namespace = 10; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** *
     * 所属命名空间
     * 
* * string namespace = 10; * @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 SERVICE_FIELD_NUMBER = 11; private volatile java.lang.Object service_; /** *
     * 所属服务名称
     * 
* * string service = 11; * @return The service. */ @java.lang.Override public java.lang.String getService() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** *
     * 所属服务名称
     * 
* * string service = 11; * @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 PROTOCOL_FIELD_NUMBER = 12; private volatile java.lang.Object protocol_; /** *
     * 协议,http/grpc/dubbo/thrift
     * 
* * string protocol = 12; * @return The protocol. */ @java.lang.Override public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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(); protocol_ = s; return s; } } /** *
     * 协议,http/grpc/dubbo/thrift
     * 
* * string protocol = 12; * @return The bytes for protocol. */ @java.lang.Override public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 13; private volatile java.lang.Object version_; /** *
     * 契约版本
     * 
* * string version = 13; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** *
     * 契约版本
     * 
* * string version = 13; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 14; private volatile java.lang.Object type_; /** *
     * 类型
     * 
* * string type = 14; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** *
     * 类型
     * 
* * string type = 14; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, content_); } if (source_ != com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source.UNKNOWN.getNumber()) { output.writeEnum(5, source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, mtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, protocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, type_); } 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(method_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, content_); } if (source_ != com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, source_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, mtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, protocol_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor other = (com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor) obj; if (!getId() .equals(other.getId())) return false; if (!getMethod() .equals(other.getMethod())) return false; if (!getPath() .equals(other.getPath())) return false; if (!getContent() .equals(other.getContent())) return false; if (source_ != other.source_) return false; if (!getRevision() .equals(other.getRevision())) return false; if (!getCtime() .equals(other.getCtime())) return false; if (!getMtime() .equals(other.getMtime())) return false; if (!getName() .equals(other.getName())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getService() .equals(other.getService())) return false; if (!getProtocol() .equals(other.getProtocol())) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getType() .equals(other.getType())) 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) + METHOD_FIELD_NUMBER; hash = (53 * hash) + getMethod().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + source_; 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor 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.InterfaceDescriptor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.InterfaceDescriptor) com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_InterfaceDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_InterfaceDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.class, com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; method_ = ""; path_ = ""; content_ = ""; source_ = 0; revision_ = ""; ctime_ = ""; mtime_ = ""; name_ = ""; namespace_ = ""; service_ = ""; protocol_ = ""; version_ = ""; type_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.internal_static_v1_InterfaceDescriptor_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor build() { com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor buildPartial() { com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor result = new com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor(this); result.id_ = id_; result.method_ = method_; result.path_ = path_; result.content_ = content_; result.source_ = source_; result.revision_ = revision_; result.ctime_ = ctime_; result.mtime_ = mtime_; result.name_ = name_; result.namespace_ = namespace_; result.service_ = service_; result.protocol_ = protocol_; result.version_ = version_; result.type_ = type_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor) { return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor other) { if (other == com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getMethod().isEmpty()) { method_ = other.method_; onChanged(); } if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); } if (!other.getContent().isEmpty()) { content_ = other.content_; onChanged(); } if (other.source_ != 0) { setSourceValue(other.getSourceValue()); } 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.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getProtocol().isEmpty()) { protocol_ = other.protocol_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { method_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { path_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { content_ = input.readStringRequireUtf8(); break; } // case 34 case 40: { source_ = input.readEnum(); break; } // case 40 case 50: { revision_ = input.readStringRequireUtf8(); break; } // case 50 case 58: { ctime_ = input.readStringRequireUtf8(); break; } // case 58 case 66: { mtime_ = input.readStringRequireUtf8(); break; } // case 66 case 74: { name_ = input.readStringRequireUtf8(); break; } // case 74 case 82: { namespace_ = input.readStringRequireUtf8(); break; } // case 82 case 90: { service_ = input.readStringRequireUtf8(); break; } // case 90 case 98: { protocol_ = input.readStringRequireUtf8(); break; } // case 98 case 106: { version_ = input.readStringRequireUtf8(); break; } // case 106 case 114: { type_ = input.readStringRequireUtf8(); break; } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object id_ = ""; /** *
       * 接口ID
       * 
* * string id = 1; * @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; } } /** *
       * 接口ID
       * 
* * string id = 1; * @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; } } /** *
       * 接口ID
       * 
* * string id = 1; * @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; } /** *
       * 接口ID
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * 接口ID
       * 
* * string id = 1; * @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 method_ = ""; /** *
       * 方法名称,对应 http method/ dubbo interface func/grpc service func
       * 
* * string method = 2; * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 方法名称,对应 http method/ dubbo interface func/grpc service func
       * 
* * string method = 2; * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 方法名称,对应 http method/ dubbo interface func/grpc service func
       * 
* * string method = 2; * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { if (value == null) { throw new NullPointerException(); } method_ = value; onChanged(); return this; } /** *
       * 方法名称,对应 http method/ dubbo interface func/grpc service func
       * 
* * string method = 2; * @return This builder for chaining. */ public Builder clearMethod() { method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** *
       * 方法名称,对应 http method/ dubbo interface func/grpc service func
       * 
* * string method = 2; * @param value The bytes for method to set. * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); method_ = value; onChanged(); return this; } private java.lang.Object path_ = ""; /** *
       * 接口名称,http path/dubbo interface/grpc service
       * 
* * string path = 3; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 接口名称,http path/dubbo interface/grpc service
       * 
* * string path = 3; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 接口名称,http path/dubbo interface/grpc service
       * 
* * string path = 3; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; onChanged(); return this; } /** *
       * 接口名称,http path/dubbo interface/grpc service
       * 
* * string path = 3; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** *
       * 接口名称,http path/dubbo interface/grpc service
       * 
* * string path = 3; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; onChanged(); return this; } private java.lang.Object content_ = ""; /** *
       * 接口描述信息
       * 
* * string content = 4; * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 接口描述信息
       * 
* * string content = 4; * @return The bytes for content. */ public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 接口描述信息
       * 
* * string content = 4; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /** *
       * 接口描述信息
       * 
* * string content = 4; * @return This builder for chaining. */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** *
       * 接口描述信息
       * 
* * string content = 4; * @param value The bytes for content to set. * @return This builder for chaining. */ public Builder setContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; onChanged(); return this; } private int source_ = 0; /** *
       * 创建来源
       * 
* * .v1.InterfaceDescriptor.Source source = 5; * @return The enum numeric value on the wire for source. */ @java.lang.Override public int getSourceValue() { return source_; } /** *
       * 创建来源
       * 
* * .v1.InterfaceDescriptor.Source source = 5; * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ public Builder setSourceValue(int value) { source_ = value; onChanged(); return this; } /** *
       * 创建来源
       * 
* * .v1.InterfaceDescriptor.Source source = 5; * @return The source. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source getSource() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source result = com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source.valueOf(source_); return result == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source.UNRECOGNIZED : result; } /** *
       * 创建来源
       * 
* * .v1.InterfaceDescriptor.Source source = 5; * @param value The source to set. * @return This builder for chaining. */ public Builder setSource(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor.Source value) { if (value == null) { throw new NullPointerException(); } source_ = value.getNumber(); onChanged(); return this; } /** *
       * 创建来源
       * 
* * .v1.InterfaceDescriptor.Source source = 5; * @return This builder for chaining. */ public Builder clearSource() { source_ = 0; onChanged(); return this; } private java.lang.Object revision_ = ""; /** *
       * 接口信息摘要
       * 
* * string revision = 6; * @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; } } /** *
       * 接口信息摘要
       * 
* * string revision = 6; * @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; } } /** *
       * 接口信息摘要
       * 
* * string revision = 6; * @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; } /** *
       * 接口信息摘要
       * 
* * string revision = 6; * @return This builder for chaining. */ public Builder clearRevision() { revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** *
       * 接口信息摘要
       * 
* * string revision = 6; * @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_ = ""; /** *
       * 创建时间
       * 
* * string ctime = 7; * @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; } } /** *
       * 创建时间
       * 
* * string ctime = 7; * @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; } } /** *
       * 创建时间
       * 
* * string ctime = 7; * @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; } /** *
       * 创建时间
       * 
* * string ctime = 7; * @return This builder for chaining. */ public Builder clearCtime() { ctime_ = getDefaultInstance().getCtime(); onChanged(); return this; } /** *
       * 创建时间
       * 
* * string ctime = 7; * @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_ = ""; /** *
       * 更新时间
       * 
* * string mtime = 8; * @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; } } /** *
       * 更新时间
       * 
* * string mtime = 8; * @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; } } /** *
       * 更新时间
       * 
* * string mtime = 8; * @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; } /** *
       * 更新时间
       * 
* * string mtime = 8; * @return This builder for chaining. */ public Builder clearMtime() { mtime_ = getDefaultInstance().getMtime(); onChanged(); return this; } /** *
       * 更新时间
       * 
* * string mtime = 8; * @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 java.lang.Object name_ = ""; /** *
       * 接口名称描述信息
       * deprecated, use type field
       * 
* * string name = 9; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 接口名称描述信息
       * deprecated, use type field
       * 
* * string name = 9; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 接口名称描述信息
       * deprecated, use type field
       * 
* * string name = 9; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * 接口名称描述信息
       * deprecated, use type field
       * 
* * string name = 9; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * 接口名称描述信息
       * deprecated, use type field
       * 
* * string name = 9; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** *
       * 所属命名空间
       * 
* * string namespace = 10; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 所属命名空间
       * 
* * string namespace = 10; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 所属命名空间
       * 
* * string namespace = 10; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** *
       * 所属命名空间
       * 
* * string namespace = 10; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** *
       * 所属命名空间
       * 
* * string namespace = 10; * @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 service_ = ""; /** *
       * 所属服务名称
       * 
* * string service = 11; * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 所属服务名称
       * 
* * string service = 11; * @return The bytes for service. */ public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 所属服务名称
       * 
* * string service = 11; * @param value The service to set. * @return This builder for chaining. */ public Builder setService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); return this; } /** *
       * 所属服务名称
       * 
* * string service = 11; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** *
       * 所属服务名称
       * 
* * string service = 11; * @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 protocol_ = ""; /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 12; * @return The protocol. */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); protocol_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 12; * @return The bytes for protocol. */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 12; * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } protocol_ = value; onChanged(); return this; } /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 12; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } /** *
       * 协议,http/grpc/dubbo/thrift
       * 
* * string protocol = 12; * @param value The bytes for protocol to set. * @return This builder for chaining. */ public Builder setProtocolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); protocol_ = value; onChanged(); return this; } private java.lang.Object version_ = ""; /** *
       * 契约版本
       * 
* * string version = 13; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 契约版本
       * 
* * string version = 13; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 契约版本
       * 
* * string version = 13; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       * 契约版本
       * 
* * string version = 13; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * 契约版本
       * 
* * string version = 13; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private java.lang.Object type_ = ""; /** *
       * 类型
       * 
* * string type = 14; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 类型
       * 
* * string type = 14; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 类型
       * 
* * string type = 14; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); return this; } /** *
       * 类型
       * 
* * string type = 14; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
       * 类型
       * 
* * string type = 14; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = 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.InterfaceDescriptor) } // @@protoc_insertion_point(class_scope:v1.InterfaceDescriptor) private static final com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor(); } public static com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InterfaceDescriptor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ServiceContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ServiceContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_InterfaceDescriptor_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_InterfaceDescriptor_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\016contract.proto\022\002v1\"\376\001\n\017ServiceContract" + "\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\021\n\tnamespace\030" + "\003 \001(\t\022\017\n\007service\030\004 \001(\t\022\020\n\010protocol\030\005 \001(\t" + "\022\017\n\007version\030\006 \001(\t\022\020\n\010revision\030\007 \001(\t\022\017\n\007c" + "ontent\030\010 \001(\t\022+\n\ninterfaces\030\t \003(\0132\027.v1.In" + "terfaceDescriptor\022\r\n\005ctime\030\n \001(\t\022\r\n\005mtim" + "e\030\013 \001(\t\022\016\n\006status\030\014 \001(\t\022\014\n\004type\030\016 \001(\t\"\302\002" + "\n\023InterfaceDescriptor\022\n\n\002id\030\001 \001(\t\022\016\n\006met" + "hod\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022\017\n\007content\030\004 \001(\t" + "\022.\n\006source\030\005 \001(\0162\036.v1.InterfaceDescripto" + "r.Source\022\020\n\010revision\030\006 \001(\t\022\r\n\005ctime\030\007 \001(" + "\t\022\r\n\005mtime\030\010 \001(\t\022\014\n\004name\030\t \001(\t\022\021\n\tnamesp" + "ace\030\n \001(\t\022\017\n\007service\030\013 \001(\t\022\020\n\010protocol\030\014" + " \001(\t\022\017\n\007version\030\r \001(\t\022\014\n\004type\030\016 \001(\t\"-\n\006S" + "ource\022\013\n\007UNKNOWN\020\000\022\n\n\006Manual\020\001\022\n\n\006Client" + "\020\002B\225\001\n7com.tencent.polaris.specification" + ".api.v1.service.manageB\024ServiceContractP" + "rotoZDgithub.com/polarismesh/specificati" + "on/source/go/api/v1/service_manageb\006prot" + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_v1_ServiceContract_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_v1_ServiceContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ServiceContract_descriptor, new java.lang.String[] { "Id", "Name", "Namespace", "Service", "Protocol", "Version", "Revision", "Content", "Interfaces", "Ctime", "Mtime", "Status", "Type", }); internal_static_v1_InterfaceDescriptor_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_v1_InterfaceDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_InterfaceDescriptor_descriptor, new java.lang.String[] { "Id", "Method", "Path", "Content", "Source", "Revision", "Ctime", "Mtime", "Name", "Namespace", "Service", "Protocol", "Version", "Type", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy