com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: 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 extends com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder>
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 extends com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder>
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 extends com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptor> 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 extends com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.InterfaceDescriptorOrBuilder>
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy