// Generated by the protocol buffer compiler. DO NOT EDIT! // source: core/plugin.proto package com.akaxin.proto.core; public final class PluginProto { private PluginProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** *
   *header 里面
   * 
* * Protobuf enum {@code core.PluginHeaderKey} */ public enum PluginHeaderKey implements com.google.protobuf.ProtocolMessageEnum { /** * CLIENT_VERSION = 0; */ CLIENT_VERSION(0), /** *
     *当前客户端用户ID
     * 
* * CLIENT_SITE_USER_ID = 1; */ CLIENT_SITE_USER_ID(1), /** *
     *当前用户的sessionID
     * 
* * CLIENT_SITE_SESSION_ID = 2; */ CLIENT_SITE_SESSION_ID(2), /** *
     *使用zaly:goto
     * 
* * PLUGIN_REFERER = 3; */ PLUGIN_REFERER(3), /** *
     *单位ms
     * 
* * PLUGIN_TIMESTAMP = 4; */ PLUGIN_TIMESTAMP(4), /** *
     *扩展的ID
     * 
* * PLUGIN_ID = 5; */ PLUGIN_ID(5), UNRECOGNIZED(-1), ; /** * CLIENT_VERSION = 0; */ public static final int CLIENT_VERSION_VALUE = 0; /** *
     *当前客户端用户ID
     * 
* * CLIENT_SITE_USER_ID = 1; */ public static final int CLIENT_SITE_USER_ID_VALUE = 1; /** *
     *当前用户的sessionID
     * 
* * CLIENT_SITE_SESSION_ID = 2; */ public static final int CLIENT_SITE_SESSION_ID_VALUE = 2; /** *
     *使用zaly:goto
     * 
* * PLUGIN_REFERER = 3; */ public static final int PLUGIN_REFERER_VALUE = 3; /** *
     *单位ms
     * 
* * PLUGIN_TIMESTAMP = 4; */ public static final int PLUGIN_TIMESTAMP_VALUE = 4; /** *
     *扩展的ID
     * 
* * PLUGIN_ID = 5; */ public static final int PLUGIN_ID_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PluginHeaderKey valueOf(int value) { return forNumber(value); } public static PluginHeaderKey forNumber(int value) { switch (value) { case 0: return CLIENT_VERSION; case 1: return CLIENT_SITE_USER_ID; case 2: return CLIENT_SITE_SESSION_ID; case 3: return PLUGIN_REFERER; case 4: return PLUGIN_TIMESTAMP; case 5: return PLUGIN_ID; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PluginHeaderKey> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PluginHeaderKey findValueByNumber(int number) { return PluginHeaderKey.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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.akaxin.proto.core.PluginProto.getDescriptor().getEnumTypes().get(0); } private static final PluginHeaderKey[] VALUES = values(); public static PluginHeaderKey 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 PluginHeaderKey(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:core.PluginHeaderKey) } /** * Protobuf enum {@code core.PermissionStatus} */ public enum PermissionStatus implements com.google.protobuf.ProtocolMessageEnum { /** *
     *禁用状态
     * 
* * DISABLED = 0; */ DISABLED(0), /** *
     *可用状态
     * 
* * AVAILABLE = 1; */ AVAILABLE(1), UNRECOGNIZED(-1), ; /** *
     *禁用状态
     * 
* * DISABLED = 0; */ public static final int DISABLED_VALUE = 0; /** *
     *可用状态
     * 
* * AVAILABLE = 1; */ public static final int AVAILABLE_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PermissionStatus valueOf(int value) { return forNumber(value); } public static PermissionStatus forNumber(int value) { switch (value) { case 0: return DISABLED; case 1: return AVAILABLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PermissionStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PermissionStatus findValueByNumber(int number) { return PermissionStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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.akaxin.proto.core.PluginProto.getDescriptor().getEnumTypes().get(1); } private static final PermissionStatus[] VALUES = values(); public static PermissionStatus 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 PermissionStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:core.PermissionStatus) } /** * Protobuf enum {@code core.PluginPosition} */ public enum PluginPosition implements com.google.protobuf.ProtocolMessageEnum { /** *
     *首页位置
     * 
* * HOME_PAGE = 0; */ HOME_PAGE(0), /** *
     *消息帧位置
     * 
* * MSG_PAGE = 1; */ MSG_PAGE(1), UNRECOGNIZED(-1), ; /** *
     *首页位置
     * 
* * HOME_PAGE = 0; */ public static final int HOME_PAGE_VALUE = 0; /** *
     *消息帧位置
     * 
* * MSG_PAGE = 1; */ public static final int MSG_PAGE_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PluginPosition valueOf(int value) { return forNumber(value); } public static PluginPosition forNumber(int value) { switch (value) { case 0: return HOME_PAGE; case 1: return MSG_PAGE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PluginPosition> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PluginPosition findValueByNumber(int number) { return PluginPosition.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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.akaxin.proto.core.PluginProto.getDescriptor().getEnumTypes().get(2); } private static final PluginPosition[] VALUES = values(); public static PluginPosition 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 PluginPosition(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:core.PluginPosition) } /** * Protobuf enum {@code core.PluginDisplayMode} */ public enum PluginDisplayMode implements com.google.protobuf.ProtocolMessageEnum { /** *
     *默认,新页面
     * 
* * NEW_PAGE = 0; */ NEW_PAGE(0), /** *
     *浮屏
     * 
* * FLOATING_SCREEN = 1; */ FLOATING_SCREEN(1), /** *
     *分屏
     * 
* * SPLIT_SCREEN = 2; */ SPLIT_SCREEN(2), UNRECOGNIZED(-1), ; /** *
     *默认,新页面
     * 
* * NEW_PAGE = 0; */ public static final int NEW_PAGE_VALUE = 0; /** *
     *浮屏
     * 
* * FLOATING_SCREEN = 1; */ public static final int FLOATING_SCREEN_VALUE = 1; /** *
     *分屏
     * 
* * SPLIT_SCREEN = 2; */ public static final int SPLIT_SCREEN_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; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PluginDisplayMode valueOf(int value) { return forNumber(value); } public static PluginDisplayMode forNumber(int value) { switch (value) { case 0: return NEW_PAGE; case 1: return FLOATING_SCREEN; case 2: return SPLIT_SCREEN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PluginDisplayMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PluginDisplayMode findValueByNumber(int number) { return PluginDisplayMode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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.akaxin.proto.core.PluginProto.getDescriptor().getEnumTypes().get(3); } private static final PluginDisplayMode[] VALUES = values(); public static PluginDisplayMode 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 PluginDisplayMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:core.PluginDisplayMode) } public interface ProxyPluginPackageOrBuilder extends // @@protoc_insertion_point(interface_extends:core.ProxyPluginPackage) com.google.protobuf.MessageOrBuilder { /** *
     *header
     * 
* * map<int32, string> plugin_header = 1; */ int getPluginHeaderCount(); /** *
     *header
     * 
* * map<int32, string> plugin_header = 1; */ boolean containsPluginHeader( int key); /** * Use {@link #getPluginHeaderMap()} instead. */ @java.lang.Deprecated java.util.Map getPluginHeader(); /** *
     *header
     * 
* * map<int32, string> plugin_header = 1; */ java.util.Map getPluginHeaderMap(); /** *
     *header
     * 
* * map<int32, string> plugin_header = 1; */ java.lang.String getPluginHeaderOrDefault( int key, java.lang.String defaultValue); /** *
     *header
     * 
* * map<int32, string> plugin_header = 1; */ java.lang.String getPluginHeaderOrThrow( int key); /** *
     *data在赋值之前先base64
     *site -> plugin 是开发者自定义的格式
     *plugin -> site 为具体请求的proto格式
     * 
* * string data = 2; */ java.lang.String getData(); /** *
     *data在赋值之前先base64
     *site -> plugin 是开发者自定义的格式
     *plugin -> site 为具体请求的proto格式
     * 
* * string data = 2; */ com.google.protobuf.ByteString getDataBytes(); /** *
     *error信息
     * 
* * .core.ErrorInfo error_info = 3; */ boolean hasErrorInfo(); /** *
     *error信息
     * 
* * .core.ErrorInfo error_info = 3; */ com.akaxin.proto.core.CoreProto.ErrorInfo getErrorInfo(); /** *
     *error信息
     * 
* * .core.ErrorInfo error_info = 3; */ com.akaxin.proto.core.CoreProto.ErrorInfoOrBuilder getErrorInfoOrBuilder(); } /** *
   * site 与plugin之间交互传输的package包
   * 
* * Protobuf type {@code core.ProxyPluginPackage} */ public static final class ProxyPluginPackage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:core.ProxyPluginPackage) ProxyPluginPackageOrBuilder { private static final long serialVersionUID = 0L; // Use ProxyPluginPackage.newBuilder() to construct. private ProxyPluginPackage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProxyPluginPackage() { data_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProxyPluginPackage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { pluginHeader_ = com.google.protobuf.MapField.newMapField( PluginHeaderDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry pluginHeader__ = input.readMessage( PluginHeaderDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); pluginHeader_.getMutableMap().put( pluginHeader__.getKey(), pluginHeader__.getValue()); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); data_ = s; break; } case 26: { com.akaxin.proto.core.CoreProto.ErrorInfo.Builder subBuilder = null; if (errorInfo_ != null) { subBuilder = errorInfo_.toBuilder(); } errorInfo_ = input.readMessage(com.akaxin.proto.core.CoreProto.ErrorInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(errorInfo_); errorInfo_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.core.PluginProto.internal_static_core_ProxyPluginPackage_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetPluginHeader(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.core.PluginProto.internal_static_core_ProxyPluginPackage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.core.PluginProto.ProxyPluginPackage.class, com.akaxin.proto.core.PluginProto.ProxyPluginPackage.Builder.class); } private int bitField0_; public static final int PLUGIN_HEADER_FIELD_NUMBER = 1; private static final class PluginHeaderDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.akaxin.proto.core.PluginProto.internal_static_core_ProxyPluginPackage_PluginHeaderEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.Integer, java.lang.String> pluginHeader_; private com.google.protobuf.MapField internalGetPluginHeader() { if (pluginHeader_ == null) { return com.google.protobuf.MapField.emptyMapField( PluginHeaderDefaultEntryHolder.defaultEntry); } return pluginHeader_; } public int getPluginHeaderCount() { return internalGetPluginHeader().getMap().size(); } /** *
     *header
     * 
* * map<int32, string> plugin_header = 1; */ public boolean containsPluginHeader( int key) { return internalGetPluginHeader().getMap().containsKey(key); } /** * Use {@link #getPluginHeaderMap()} instead. */ @java.lang.Deprecated public java.util.Map getPluginHeader() { return getPluginHeaderMap(); } /** *
     *header
     * 
* * map<int32, string> plugin_header = 1; */ public java.util.Map getPluginHeaderMap() { return internalGetPluginHeader().getMap(); } /** *
     *header
     * 
* * map<int32, string> plugin_header = 1; */ public java.lang.String getPluginHeaderOrDefault( int key, java.lang.String defaultValue) { java.util.Map map = internalGetPluginHeader().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     *header
     * 
* * map<int32, string> plugin_header = 1; */ public java.lang.String getPluginHeaderOrThrow( int key) { java.util.Map map = internalGetPluginHeader().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int DATA_FIELD_NUMBER = 2; private volatile java.lang.Object data_; /** *
     *data在赋值之前先base64
     *site -> plugin 是开发者自定义的格式
     *plugin -> site 为具体请求的proto格式
     * 
* * string data = 2; */ public java.lang.String getData() { java.lang.Object ref = data_; 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(); data_ = s; return s; } } /** *
     *data在赋值之前先base64
     *site -> plugin 是开发者自定义的格式
     *plugin -> site 为具体请求的proto格式
     * 
* * string data = 2; */ public com.google.protobuf.ByteString getDataBytes() { java.lang.Object ref = data_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); data_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERROR_INFO_FIELD_NUMBER = 3; private com.akaxin.proto.core.CoreProto.ErrorInfo errorInfo_; /** *
     *error信息
     * 
* * .core.ErrorInfo error_info = 3; */ public boolean hasErrorInfo() { return errorInfo_ != null; } /** *
     *error信息
     * 
* * .core.ErrorInfo error_info = 3; */ public com.akaxin.proto.core.CoreProto.ErrorInfo getErrorInfo() { return errorInfo_ == null ? com.akaxin.proto.core.CoreProto.ErrorInfo.getDefaultInstance() : errorInfo_; } /** *
     *error信息
     * 
* * .core.ErrorInfo error_info = 3; */ public com.akaxin.proto.core.CoreProto.ErrorInfoOrBuilder getErrorInfoOrBuilder() { return getErrorInfo(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetPluginHeader(), PluginHeaderDefaultEntryHolder.defaultEntry, 1); if (!getDataBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); } if (errorInfo_ != null) { output.writeMessage(3, getErrorInfo()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetPluginHeader().getMap().entrySet()) { com.google.protobuf.MapEntry pluginHeader__ = PluginHeaderDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, pluginHeader__); } if (!getDataBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); } if (errorInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getErrorInfo()); } size += unknownFields.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.akaxin.proto.core.PluginProto.ProxyPluginPackage)) { return super.equals(obj); } com.akaxin.proto.core.PluginProto.ProxyPluginPackage other = (com.akaxin.proto.core.PluginProto.ProxyPluginPackage) obj; boolean result = true; result = result && internalGetPluginHeader().equals( other.internalGetPluginHeader()); result = result && getData() .equals(other.getData()); result = result && (hasErrorInfo() == other.hasErrorInfo()); if (hasErrorInfo()) { result = result && getErrorInfo() .equals(other.getErrorInfo()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetPluginHeader().getMap().isEmpty()) { hash = (37 * hash) + PLUGIN_HEADER_FIELD_NUMBER; hash = (53 * hash) + internalGetPluginHeader().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); if (hasErrorInfo()) { hash = (37 * hash) + ERROR_INFO_FIELD_NUMBER; hash = (53 * hash) + getErrorInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage 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.akaxin.proto.core.PluginProto.ProxyPluginPackage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage 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.akaxin.proto.core.PluginProto.ProxyPluginPackage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.akaxin.proto.core.PluginProto.ProxyPluginPackage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * site 与plugin之间交互传输的package包
     * 
* * Protobuf type {@code core.ProxyPluginPackage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:core.ProxyPluginPackage) com.akaxin.proto.core.PluginProto.ProxyPluginPackageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.core.PluginProto.internal_static_core_ProxyPluginPackage_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetPluginHeader(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutablePluginHeader(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.core.PluginProto.internal_static_core_ProxyPluginPackage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.core.PluginProto.ProxyPluginPackage.class, com.akaxin.proto.core.PluginProto.ProxyPluginPackage.Builder.class); } // Construct using com.akaxin.proto.core.PluginProto.ProxyPluginPackage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); internalGetMutablePluginHeader().clear(); data_ = ""; if (errorInfoBuilder_ == null) { errorInfo_ = null; } else { errorInfo_ = null; errorInfoBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.akaxin.proto.core.PluginProto.internal_static_core_ProxyPluginPackage_descriptor; } public com.akaxin.proto.core.PluginProto.ProxyPluginPackage getDefaultInstanceForType() { return com.akaxin.proto.core.PluginProto.ProxyPluginPackage.getDefaultInstance(); } public com.akaxin.proto.core.PluginProto.ProxyPluginPackage build() { com.akaxin.proto.core.PluginProto.ProxyPluginPackage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.akaxin.proto.core.PluginProto.ProxyPluginPackage buildPartial() { com.akaxin.proto.core.PluginProto.ProxyPluginPackage result = new com.akaxin.proto.core.PluginProto.ProxyPluginPackage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.pluginHeader_ = internalGetPluginHeader(); result.pluginHeader_.makeImmutable(); result.data_ = data_; if (errorInfoBuilder_ == null) { result.errorInfo_ = errorInfo_; } else { result.errorInfo_ = errorInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.akaxin.proto.core.PluginProto.ProxyPluginPackage) { return mergeFrom((com.akaxin.proto.core.PluginProto.ProxyPluginPackage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.akaxin.proto.core.PluginProto.ProxyPluginPackage other) { if (other == com.akaxin.proto.core.PluginProto.ProxyPluginPackage.getDefaultInstance()) return this; internalGetMutablePluginHeader().mergeFrom( other.internalGetPluginHeader()); if (!other.getData().isEmpty()) { data_ = other.data_; onChanged(); } if (other.hasErrorInfo()) { mergeErrorInfo(other.getErrorInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.akaxin.proto.core.PluginProto.ProxyPluginPackage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.akaxin.proto.core.PluginProto.ProxyPluginPackage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.Integer, java.lang.String> pluginHeader_; private com.google.protobuf.MapField internalGetPluginHeader() { if (pluginHeader_ == null) { return com.google.protobuf.MapField.emptyMapField( PluginHeaderDefaultEntryHolder.defaultEntry); } return pluginHeader_; } private com.google.protobuf.MapField internalGetMutablePluginHeader() { onChanged();; if (pluginHeader_ == null) { pluginHeader_ = com.google.protobuf.MapField.newMapField( PluginHeaderDefaultEntryHolder.defaultEntry); } if (!pluginHeader_.isMutable()) { pluginHeader_ = pluginHeader_.copy(); } return pluginHeader_; } public int getPluginHeaderCount() { return internalGetPluginHeader().getMap().size(); } /** *
       *header
       * 
* * map<int32, string> plugin_header = 1; */ public boolean containsPluginHeader( int key) { return internalGetPluginHeader().getMap().containsKey(key); } /** * Use {@link #getPluginHeaderMap()} instead. */ @java.lang.Deprecated public java.util.Map getPluginHeader() { return getPluginHeaderMap(); } /** *
       *header
       * 
* * map<int32, string> plugin_header = 1; */ public java.util.Map getPluginHeaderMap() { return internalGetPluginHeader().getMap(); } /** *
       *header
       * 
* * map<int32, string> plugin_header = 1; */ public java.lang.String getPluginHeaderOrDefault( int key, java.lang.String defaultValue) { java.util.Map map = internalGetPluginHeader().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       *header
       * 
* * map<int32, string> plugin_header = 1; */ public java.lang.String getPluginHeaderOrThrow( int key) { java.util.Map map = internalGetPluginHeader().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearPluginHeader() { internalGetMutablePluginHeader().getMutableMap() .clear(); return this; } /** *
       *header
       * 
* * map<int32, string> plugin_header = 1; */ public Builder removePluginHeader( int key) { internalGetMutablePluginHeader().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutablePluginHeader() { return internalGetMutablePluginHeader().getMutableMap(); } /** *
       *header
       * 
* * map<int32, string> plugin_header = 1; */ public Builder putPluginHeader( int key, java.lang.String value) { if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutablePluginHeader().getMutableMap() .put(key, value); return this; } /** *
       *header
       * 
* * map<int32, string> plugin_header = 1; */ public Builder putAllPluginHeader( java.util.Map values) { internalGetMutablePluginHeader().getMutableMap() .putAll(values); return this; } private java.lang.Object data_ = ""; /** *
       *data在赋值之前先base64
       *site -> plugin 是开发者自定义的格式
       *plugin -> site 为具体请求的proto格式
       * 
* * string data = 2; */ public java.lang.String getData() { java.lang.Object ref = data_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); data_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *data在赋值之前先base64
       *site -> plugin 是开发者自定义的格式
       *plugin -> site 为具体请求的proto格式
       * 
* * string data = 2; */ public com.google.protobuf.ByteString getDataBytes() { java.lang.Object ref = data_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); data_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *data在赋值之前先base64
       *site -> plugin 是开发者自定义的格式
       *plugin -> site 为具体请求的proto格式
       * 
* * string data = 2; */ public Builder setData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** *
       *data在赋值之前先base64
       *site -> plugin 是开发者自定义的格式
       *plugin -> site 为具体请求的proto格式
       * 
* * string data = 2; */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } /** *
       *data在赋值之前先base64
       *site -> plugin 是开发者自定义的格式
       *plugin -> site 为具体请求的proto格式
       * 
* * string data = 2; */ public Builder setDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); data_ = value; onChanged(); return this; } private com.akaxin.proto.core.CoreProto.ErrorInfo errorInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.akaxin.proto.core.CoreProto.ErrorInfo, com.akaxin.proto.core.CoreProto.ErrorInfo.Builder, com.akaxin.proto.core.CoreProto.ErrorInfoOrBuilder> errorInfoBuilder_; /** *
       *error信息
       * 
* * .core.ErrorInfo error_info = 3; */ public boolean hasErrorInfo() { return errorInfoBuilder_ != null || errorInfo_ != null; } /** *
       *error信息
       * 
* * .core.ErrorInfo error_info = 3; */ public com.akaxin.proto.core.CoreProto.ErrorInfo getErrorInfo() { if (errorInfoBuilder_ == null) { return errorInfo_ == null ? com.akaxin.proto.core.CoreProto.ErrorInfo.getDefaultInstance() : errorInfo_; } else { return errorInfoBuilder_.getMessage(); } } /** *
       *error信息
       * 
* * .core.ErrorInfo error_info = 3; */ public Builder setErrorInfo(com.akaxin.proto.core.CoreProto.ErrorInfo value) { if (errorInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } errorInfo_ = value; onChanged(); } else { errorInfoBuilder_.setMessage(value); } return this; } /** *
       *error信息
       * 
* * .core.ErrorInfo error_info = 3; */ public Builder setErrorInfo( com.akaxin.proto.core.CoreProto.ErrorInfo.Builder builderForValue) { if (errorInfoBuilder_ == null) { errorInfo_ = builderForValue.build(); onChanged(); } else { errorInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       *error信息
       * 
* * .core.ErrorInfo error_info = 3; */ public Builder mergeErrorInfo(com.akaxin.proto.core.CoreProto.ErrorInfo value) { if (errorInfoBuilder_ == null) { if (errorInfo_ != null) { errorInfo_ = com.akaxin.proto.core.CoreProto.ErrorInfo.newBuilder(errorInfo_).mergeFrom(value).buildPartial(); } else { errorInfo_ = value; } onChanged(); } else { errorInfoBuilder_.mergeFrom(value); } return this; } /** *
       *error信息
       * 
* * .core.ErrorInfo error_info = 3; */ public Builder clearErrorInfo() { if (errorInfoBuilder_ == null) { errorInfo_ = null; onChanged(); } else { errorInfo_ = null; errorInfoBuilder_ = null; } return this; } /** *
       *error信息
       * 
* * .core.ErrorInfo error_info = 3; */ public com.akaxin.proto.core.CoreProto.ErrorInfo.Builder getErrorInfoBuilder() { onChanged(); return getErrorInfoFieldBuilder().getBuilder(); } /** *
       *error信息
       * 
* * .core.ErrorInfo error_info = 3; */ public com.akaxin.proto.core.CoreProto.ErrorInfoOrBuilder getErrorInfoOrBuilder() { if (errorInfoBuilder_ != null) { return errorInfoBuilder_.getMessageOrBuilder(); } else { return errorInfo_ == null ? com.akaxin.proto.core.CoreProto.ErrorInfo.getDefaultInstance() : errorInfo_; } } /** *
       *error信息
       * 
* * .core.ErrorInfo error_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.akaxin.proto.core.CoreProto.ErrorInfo, com.akaxin.proto.core.CoreProto.ErrorInfo.Builder, com.akaxin.proto.core.CoreProto.ErrorInfoOrBuilder> getErrorInfoFieldBuilder() { if (errorInfoBuilder_ == null) { errorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.akaxin.proto.core.CoreProto.ErrorInfo, com.akaxin.proto.core.CoreProto.ErrorInfo.Builder, com.akaxin.proto.core.CoreProto.ErrorInfoOrBuilder>( getErrorInfo(), getParentForChildren(), isClean()); errorInfo_ = null; } return errorInfoBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:core.ProxyPluginPackage) } // @@protoc_insertion_point(class_scope:core.ProxyPluginPackage) private static final com.akaxin.proto.core.PluginProto.ProxyPluginPackage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.akaxin.proto.core.PluginProto.ProxyPluginPackage(); } public static com.akaxin.proto.core.PluginProto.ProxyPluginPackage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ProxyPluginPackage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProxyPluginPackage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.akaxin.proto.core.PluginProto.ProxyPluginPackage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PluginOrBuilder extends // @@protoc_insertion_point(interface_extends:core.Plugin) com.google.protobuf.MessageOrBuilder { /** *
     * 对于一个特定的Site,plugin.id 是唯一的。
     * 
* * string id = 1; */ java.lang.String getId(); /** *
     * 对于一个特定的Site,plugin.id 是唯一的。
     * 
* * string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** *
     * 扩展名字,会显示在界面上
     * 
* * string name = 2; */ java.lang.String getName(); /** *
     * 扩展名字,会显示在界面上
     * 
* * string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * 落地页地址
     * 以http或https开头,客户端直接以url_page作为网址渲染webview
     * 否则,为api.proxy.page 请求的page参数值,默认为空
     * 如:
     * value= https://www.google.com 直接以此网址加载webview。
     * value= main,代表通过api.proxy.page接口请求main页面。
     * value= 空,代表通过api.proxy.page接口请求空页面(pluginServer自己把空返回默认主页)
     * 
* * string url_page = 3; */ java.lang.String getUrlPage(); /** *
     * 落地页地址
     * 以http或https开头,客户端直接以url_page作为网址渲染webview
     * 否则,为api.proxy.page 请求的page参数值,默认为空
     * 如:
     * value= https://www.google.com 直接以此网址加载webview。
     * value= main,代表通过api.proxy.page接口请求main页面。
     * value= 空,代表通过api.proxy.page接口请求空页面(pluginServer自己把空返回默认主页)
     * 
* * string url_page = 3; */ com.google.protobuf.ByteString getUrlPageBytes(); /** *
     * api.plugin.proxy 请求转发请求时的目的URL
     * 此URL只能以http或者https开头,如无则为http
     * ====IMPORTANT====
     * 此api是给server用的,不允许传递此值到客户端。如复用此结构必须在传递给客户端之前将此值置空。
     * 
* * string api_url = 4; */ java.lang.String getApiUrl(); /** *
     * api.plugin.proxy 请求转发请求时的目的URL
     * 此URL只能以http或者https开头,如无则为http
     * ====IMPORTANT====
     * 此api是给server用的,不允许传递此值到客户端。如复用此结构必须在传递给客户端之前将此值置空。
     * 
* * string api_url = 4; */ com.google.protobuf.ByteString getApiUrlBytes(); /** *
     * 扩展图标文件,会显示在界面上
     * 如果以http开头,则代表着这是一个http协议的文件。
     * 否则,通过site-download功能下载此图片。
     * 
* * string icon = 5; */ java.lang.String getIcon(); /** *
     * 扩展图标文件,会显示在界面上
     * 如果以http开头,则代表着这是一个http协议的文件。
     * 否则,通过site-download功能下载此图片。
     * 
* * string icon = 5; */ com.google.protobuf.ByteString getIconBytes(); /** *
     * pluginServer 在 请求 siteServer的innerAPI时,使用此值加密数据,以证明身份。
     * 添加扩展时由SiteServer自动生成并记录,为64个[A-Za-z0-9]组成的随机字符串。
     * site 使用auth_key 加密发送给plugin的整个proto
     * 同时 site使用auth_key解析 plugin传递过来的具体proto值
     * 
* * string auth_key = 6; */ java.lang.String getAuthKey(); /** *
     * pluginServer 在 请求 siteServer的innerAPI时,使用此值加密数据,以证明身份。
     * 添加扩展时由SiteServer自动生成并记录,为64个[A-Za-z0-9]组成的随机字符串。
     * site 使用auth_key 加密发送给plugin的整个proto
     * 同时 site使用auth_key解析 plugin传递过来的具体proto值
     * 
* * string auth_key = 6; */ com.google.protobuf.ByteString getAuthKeyBytes(); /** *
     * site server的innerAPI允许的pluginServer地址。
     * 默认为127.0.0.1,如为空则代表不限制,此外:支持网络掩码的配置方式。
     * 如果有多个ip,以英文逗号[,]隔开。
     * 
* * string allowed_ip = 7; */ java.lang.String getAllowedIp(); /** *
     * site server的innerAPI允许的pluginServer地址。
     * 默认为127.0.0.1,如为空则代表不限制,此外:支持网络掩码的配置方式。
     * 如果有多个ip,以英文逗号[,]隔开。
     * 
* * string allowed_ip = 7; */ com.google.protobuf.ByteString getAllowedIpBytes(); /** *
     * 扩展的位置【应该为一个枚举】
     * 值:首页、消息帧
     * 本次不允许首页并且消息帧这个类型。
     * 
* * .core.PluginPosition position = 8; */ int getPositionValue(); /** *
     * 扩展的位置【应该为一个枚举】
     * 值:首页、消息帧
     * 本次不允许首页并且消息帧这个类型。
     * 
* * .core.PluginPosition position = 8; */ com.akaxin.proto.core.PluginProto.PluginPosition getPosition(); /** *
     * 显示顺序
     * 当一个位置,有多个扩展时,此处描述顺序,数字越小,排列越靠前(从上往下,从左往右排列)
     * 
* * int32 order = 9; */ int getOrder(); /** *
     * 展现方式【应该为一个枚举】
     * 默认、浮屏、分屏
     * 目前写死【默认】
     * 
* * .core.PluginDisplayMode display_mode = 10; */ int getDisplayModeValue(); /** *
     * 展现方式【应该为一个枚举】
     * 默认、浮屏、分屏
     * 目前写死【默认】
     * 
* * .core.PluginDisplayMode display_mode = 10; */ com.akaxin.proto.core.PluginProto.PluginDisplayMode getDisplayMode(); /** *
     * 可用状态
     * - 禁用
     * - 管理员可用
     * - 全员可用
     * 
* * .core.PermissionStatus permission_status = 11; */ int getPermissionStatusValue(); /** *
     * 可用状态
     * - 禁用
     * - 管理员可用
     * - 全员可用
     * 
* * .core.PermissionStatus permission_status = 11; */ com.akaxin.proto.core.PluginProto.PermissionStatus getPermissionStatus(); /** *
     * 使用auth_key加密的用户session
     * 
* * string encrypted_session_id_base64 = 12; */ java.lang.String getEncryptedSessionIdBase64(); /** *
     * 使用auth_key加密的用户session
     * 
* * string encrypted_session_id_base64 = 12; */ com.google.protobuf.ByteString getEncryptedSessionIdBase64Bytes(); } /** * Protobuf type {@code core.Plugin} */ public static final class Plugin extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:core.Plugin) PluginOrBuilder { private static final long serialVersionUID = 0L; // Use Plugin.newBuilder() to construct. private Plugin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Plugin() { id_ = ""; name_ = ""; urlPage_ = ""; apiUrl_ = ""; icon_ = ""; authKey_ = ""; allowedIp_ = ""; position_ = 0; order_ = 0; displayMode_ = 0; permissionStatus_ = 0; encryptedSessionIdBase64_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Plugin( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); urlPage_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); apiUrl_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); icon_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); authKey_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); allowedIp_ = s; break; } case 64: { int rawValue = input.readEnum(); position_ = rawValue; break; } case 72: { order_ = input.readInt32(); break; } case 80: { int rawValue = input.readEnum(); displayMode_ = rawValue; break; } case 88: { int rawValue = input.readEnum(); permissionStatus_ = rawValue; break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); encryptedSessionIdBase64_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.core.PluginProto.internal_static_core_Plugin_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.core.PluginProto.internal_static_core_Plugin_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.core.PluginProto.Plugin.class, com.akaxin.proto.core.PluginProto.Plugin.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * 对于一个特定的Site,plugin.id 是唯一的。
     * 
* * string id = 1; */ 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; } } /** *
     * 对于一个特定的Site,plugin.id 是唯一的。
     * 
* * string id = 1; */ 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_; /** *
     * 扩展名字,会显示在界面上
     * 
* * string name = 2; */ 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; } } /** *
     * 扩展名字,会显示在界面上
     * 
* * string name = 2; */ 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 URL_PAGE_FIELD_NUMBER = 3; private volatile java.lang.Object urlPage_; /** *
     * 落地页地址
     * 以http或https开头,客户端直接以url_page作为网址渲染webview
     * 否则,为api.proxy.page 请求的page参数值,默认为空
     * 如:
     * value= https://www.google.com 直接以此网址加载webview。
     * value= main,代表通过api.proxy.page接口请求main页面。
     * value= 空,代表通过api.proxy.page接口请求空页面(pluginServer自己把空返回默认主页)
     * 
* * string url_page = 3; */ public java.lang.String getUrlPage() { java.lang.Object ref = urlPage_; 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(); urlPage_ = s; return s; } } /** *
     * 落地页地址
     * 以http或https开头,客户端直接以url_page作为网址渲染webview
     * 否则,为api.proxy.page 请求的page参数值,默认为空
     * 如:
     * value= https://www.google.com 直接以此网址加载webview。
     * value= main,代表通过api.proxy.page接口请求main页面。
     * value= 空,代表通过api.proxy.page接口请求空页面(pluginServer自己把空返回默认主页)
     * 
* * string url_page = 3; */ public com.google.protobuf.ByteString getUrlPageBytes() { java.lang.Object ref = urlPage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); urlPage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int API_URL_FIELD_NUMBER = 4; private volatile java.lang.Object apiUrl_; /** *
     * api.plugin.proxy 请求转发请求时的目的URL
     * 此URL只能以http或者https开头,如无则为http
     * ====IMPORTANT====
     * 此api是给server用的,不允许传递此值到客户端。如复用此结构必须在传递给客户端之前将此值置空。
     * 
* * string api_url = 4; */ public java.lang.String getApiUrl() { java.lang.Object ref = apiUrl_; 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(); apiUrl_ = s; return s; } } /** *
     * api.plugin.proxy 请求转发请求时的目的URL
     * 此URL只能以http或者https开头,如无则为http
     * ====IMPORTANT====
     * 此api是给server用的,不允许传递此值到客户端。如复用此结构必须在传递给客户端之前将此值置空。
     * 
* * string api_url = 4; */ public com.google.protobuf.ByteString getApiUrlBytes() { java.lang.Object ref = apiUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); apiUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ICON_FIELD_NUMBER = 5; private volatile java.lang.Object icon_; /** *
     * 扩展图标文件,会显示在界面上
     * 如果以http开头,则代表着这是一个http协议的文件。
     * 否则,通过site-download功能下载此图片。
     * 
* * string icon = 5; */ public java.lang.String getIcon() { java.lang.Object ref = icon_; 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(); icon_ = s; return s; } } /** *
     * 扩展图标文件,会显示在界面上
     * 如果以http开头,则代表着这是一个http协议的文件。
     * 否则,通过site-download功能下载此图片。
     * 
* * string icon = 5; */ public com.google.protobuf.ByteString getIconBytes() { java.lang.Object ref = icon_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); icon_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTH_KEY_FIELD_NUMBER = 6; private volatile java.lang.Object authKey_; /** *
     * pluginServer 在 请求 siteServer的innerAPI时,使用此值加密数据,以证明身份。
     * 添加扩展时由SiteServer自动生成并记录,为64个[A-Za-z0-9]组成的随机字符串。
     * site 使用auth_key 加密发送给plugin的整个proto
     * 同时 site使用auth_key解析 plugin传递过来的具体proto值
     * 
* * string auth_key = 6; */ public java.lang.String getAuthKey() { java.lang.Object ref = authKey_; 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(); authKey_ = s; return s; } } /** *
     * pluginServer 在 请求 siteServer的innerAPI时,使用此值加密数据,以证明身份。
     * 添加扩展时由SiteServer自动生成并记录,为64个[A-Za-z0-9]组成的随机字符串。
     * site 使用auth_key 加密发送给plugin的整个proto
     * 同时 site使用auth_key解析 plugin传递过来的具体proto值
     * 
* * string auth_key = 6; */ public com.google.protobuf.ByteString getAuthKeyBytes() { java.lang.Object ref = authKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALLOWED_IP_FIELD_NUMBER = 7; private volatile java.lang.Object allowedIp_; /** *
     * site server的innerAPI允许的pluginServer地址。
     * 默认为127.0.0.1,如为空则代表不限制,此外:支持网络掩码的配置方式。
     * 如果有多个ip,以英文逗号[,]隔开。
     * 
* * string allowed_ip = 7; */ public java.lang.String getAllowedIp() { java.lang.Object ref = allowedIp_; 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(); allowedIp_ = s; return s; } } /** *
     * site server的innerAPI允许的pluginServer地址。
     * 默认为127.0.0.1,如为空则代表不限制,此外:支持网络掩码的配置方式。
     * 如果有多个ip,以英文逗号[,]隔开。
     * 
* * string allowed_ip = 7; */ public com.google.protobuf.ByteString getAllowedIpBytes() { java.lang.Object ref = allowedIp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); allowedIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POSITION_FIELD_NUMBER = 8; private int position_; /** *
     * 扩展的位置【应该为一个枚举】
     * 值:首页、消息帧
     * 本次不允许首页并且消息帧这个类型。
     * 
* * .core.PluginPosition position = 8; */ public int getPositionValue() { return position_; } /** *
     * 扩展的位置【应该为一个枚举】
     * 值:首页、消息帧
     * 本次不允许首页并且消息帧这个类型。
     * 
* * .core.PluginPosition position = 8; */ public com.akaxin.proto.core.PluginProto.PluginPosition getPosition() { com.akaxin.proto.core.PluginProto.PluginPosition result = com.akaxin.proto.core.PluginProto.PluginPosition.valueOf(position_); return result == null ? com.akaxin.proto.core.PluginProto.PluginPosition.UNRECOGNIZED : result; } public static final int ORDER_FIELD_NUMBER = 9; private int order_; /** *
     * 显示顺序
     * 当一个位置,有多个扩展时,此处描述顺序,数字越小,排列越靠前(从上往下,从左往右排列)
     * 
* * int32 order = 9; */ public int getOrder() { return order_; } public static final int DISPLAY_MODE_FIELD_NUMBER = 10; private int displayMode_; /** *
     * 展现方式【应该为一个枚举】
     * 默认、浮屏、分屏
     * 目前写死【默认】
     * 
* * .core.PluginDisplayMode display_mode = 10; */ public int getDisplayModeValue() { return displayMode_; } /** *
     * 展现方式【应该为一个枚举】
     * 默认、浮屏、分屏
     * 目前写死【默认】
     * 
* * .core.PluginDisplayMode display_mode = 10; */ public com.akaxin.proto.core.PluginProto.PluginDisplayMode getDisplayMode() { com.akaxin.proto.core.PluginProto.PluginDisplayMode result = com.akaxin.proto.core.PluginProto.PluginDisplayMode.valueOf(displayMode_); return result == null ? com.akaxin.proto.core.PluginProto.PluginDisplayMode.UNRECOGNIZED : result; } public static final int PERMISSION_STATUS_FIELD_NUMBER = 11; private int permissionStatus_; /** *
     * 可用状态
     * - 禁用
     * - 管理员可用
     * - 全员可用
     * 
* * .core.PermissionStatus permission_status = 11; */ public int getPermissionStatusValue() { return permissionStatus_; } /** *
     * 可用状态
     * - 禁用
     * - 管理员可用
     * - 全员可用
     * 
* * .core.PermissionStatus permission_status = 11; */ public com.akaxin.proto.core.PluginProto.PermissionStatus getPermissionStatus() { com.akaxin.proto.core.PluginProto.PermissionStatus result = com.akaxin.proto.core.PluginProto.PermissionStatus.valueOf(permissionStatus_); return result == null ? com.akaxin.proto.core.PluginProto.PermissionStatus.UNRECOGNIZED : result; } public static final int ENCRYPTED_SESSION_ID_BASE64_FIELD_NUMBER = 12; private volatile java.lang.Object encryptedSessionIdBase64_; /** *
     * 使用auth_key加密的用户session
     * 
* * string encrypted_session_id_base64 = 12; */ public java.lang.String getEncryptedSessionIdBase64() { java.lang.Object ref = encryptedSessionIdBase64_; 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(); encryptedSessionIdBase64_ = s; return s; } } /** *
     * 使用auth_key加密的用户session
     * 
* * string encrypted_session_id_base64 = 12; */ public com.google.protobuf.ByteString getEncryptedSessionIdBase64Bytes() { java.lang.Object ref = encryptedSessionIdBase64_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); encryptedSessionIdBase64_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!getUrlPageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, urlPage_); } if (!getApiUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, apiUrl_); } if (!getIconBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, icon_); } if (!getAuthKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, authKey_); } if (!getAllowedIpBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, allowedIp_); } if (position_ != com.akaxin.proto.core.PluginProto.PluginPosition.HOME_PAGE.getNumber()) { output.writeEnum(8, position_); } if (order_ != 0) { output.writeInt32(9, order_); } if (displayMode_ != com.akaxin.proto.core.PluginProto.PluginDisplayMode.NEW_PAGE.getNumber()) { output.writeEnum(10, displayMode_); } if (permissionStatus_ != com.akaxin.proto.core.PluginProto.PermissionStatus.DISABLED.getNumber()) { output.writeEnum(11, permissionStatus_); } if (!getEncryptedSessionIdBase64Bytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, encryptedSessionIdBase64_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!getUrlPageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, urlPage_); } if (!getApiUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, apiUrl_); } if (!getIconBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, icon_); } if (!getAuthKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, authKey_); } if (!getAllowedIpBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, allowedIp_); } if (position_ != com.akaxin.proto.core.PluginProto.PluginPosition.HOME_PAGE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, position_); } if (order_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, order_); } if (displayMode_ != com.akaxin.proto.core.PluginProto.PluginDisplayMode.NEW_PAGE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, displayMode_); } if (permissionStatus_ != com.akaxin.proto.core.PluginProto.PermissionStatus.DISABLED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, permissionStatus_); } if (!getEncryptedSessionIdBase64Bytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, encryptedSessionIdBase64_); } size += unknownFields.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.akaxin.proto.core.PluginProto.Plugin)) { return super.equals(obj); } com.akaxin.proto.core.PluginProto.Plugin other = (com.akaxin.proto.core.PluginProto.Plugin) obj; boolean result = true; result = result && getId() .equals(other.getId()); result = result && getName() .equals(other.getName()); result = result && getUrlPage() .equals(other.getUrlPage()); result = result && getApiUrl() .equals(other.getApiUrl()); result = result && getIcon() .equals(other.getIcon()); result = result && getAuthKey() .equals(other.getAuthKey()); result = result && getAllowedIp() .equals(other.getAllowedIp()); result = result && position_ == other.position_; result = result && (getOrder() == other.getOrder()); result = result && displayMode_ == other.displayMode_; result = result && permissionStatus_ == other.permissionStatus_; result = result && getEncryptedSessionIdBase64() .equals(other.getEncryptedSessionIdBase64()); result = result && unknownFields.equals(other.unknownFields); return result; } @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) + URL_PAGE_FIELD_NUMBER; hash = (53 * hash) + getUrlPage().hashCode(); hash = (37 * hash) + API_URL_FIELD_NUMBER; hash = (53 * hash) + getApiUrl().hashCode(); hash = (37 * hash) + ICON_FIELD_NUMBER; hash = (53 * hash) + getIcon().hashCode(); hash = (37 * hash) + AUTH_KEY_FIELD_NUMBER; hash = (53 * hash) + getAuthKey().hashCode(); hash = (37 * hash) + ALLOWED_IP_FIELD_NUMBER; hash = (53 * hash) + getAllowedIp().hashCode(); hash = (37 * hash) + POSITION_FIELD_NUMBER; hash = (53 * hash) + position_; hash = (37 * hash) + ORDER_FIELD_NUMBER; hash = (53 * hash) + getOrder(); hash = (37 * hash) + DISPLAY_MODE_FIELD_NUMBER; hash = (53 * hash) + displayMode_; hash = (37 * hash) + PERMISSION_STATUS_FIELD_NUMBER; hash = (53 * hash) + permissionStatus_; hash = (37 * hash) + ENCRYPTED_SESSION_ID_BASE64_FIELD_NUMBER; hash = (53 * hash) + getEncryptedSessionIdBase64().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.akaxin.proto.core.PluginProto.Plugin parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.core.PluginProto.Plugin parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.akaxin.proto.core.PluginProto.Plugin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.core.PluginProto.Plugin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.akaxin.proto.core.PluginProto.Plugin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.core.PluginProto.Plugin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.akaxin.proto.core.PluginProto.Plugin parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.akaxin.proto.core.PluginProto.Plugin 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.akaxin.proto.core.PluginProto.Plugin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.akaxin.proto.core.PluginProto.Plugin 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.akaxin.proto.core.PluginProto.Plugin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.akaxin.proto.core.PluginProto.Plugin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.akaxin.proto.core.PluginProto.Plugin prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 core.Plugin} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:core.Plugin) com.akaxin.proto.core.PluginProto.PluginOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.core.PluginProto.internal_static_core_Plugin_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.core.PluginProto.internal_static_core_Plugin_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.core.PluginProto.Plugin.class, com.akaxin.proto.core.PluginProto.Plugin.Builder.class); } // Construct using com.akaxin.proto.core.PluginProto.Plugin.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); id_ = ""; name_ = ""; urlPage_ = ""; apiUrl_ = ""; icon_ = ""; authKey_ = ""; allowedIp_ = ""; position_ = 0; order_ = 0; displayMode_ = 0; permissionStatus_ = 0; encryptedSessionIdBase64_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.akaxin.proto.core.PluginProto.internal_static_core_Plugin_descriptor; } public com.akaxin.proto.core.PluginProto.Plugin getDefaultInstanceForType() { return com.akaxin.proto.core.PluginProto.Plugin.getDefaultInstance(); } public com.akaxin.proto.core.PluginProto.Plugin build() { com.akaxin.proto.core.PluginProto.Plugin result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.akaxin.proto.core.PluginProto.Plugin buildPartial() { com.akaxin.proto.core.PluginProto.Plugin result = new com.akaxin.proto.core.PluginProto.Plugin(this); result.id_ = id_; result.name_ = name_; result.urlPage_ = urlPage_; result.apiUrl_ = apiUrl_; result.icon_ = icon_; result.authKey_ = authKey_; result.allowedIp_ = allowedIp_; result.position_ = position_; result.order_ = order_; result.displayMode_ = displayMode_; result.permissionStatus_ = permissionStatus_; result.encryptedSessionIdBase64_ = encryptedSessionIdBase64_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.akaxin.proto.core.PluginProto.Plugin) { return mergeFrom((com.akaxin.proto.core.PluginProto.Plugin)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.akaxin.proto.core.PluginProto.Plugin other) { if (other == com.akaxin.proto.core.PluginProto.Plugin.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getUrlPage().isEmpty()) { urlPage_ = other.urlPage_; onChanged(); } if (!other.getApiUrl().isEmpty()) { apiUrl_ = other.apiUrl_; onChanged(); } if (!other.getIcon().isEmpty()) { icon_ = other.icon_; onChanged(); } if (!other.getAuthKey().isEmpty()) { authKey_ = other.authKey_; onChanged(); } if (!other.getAllowedIp().isEmpty()) { allowedIp_ = other.allowedIp_; onChanged(); } if (other.position_ != 0) { setPositionValue(other.getPositionValue()); } if (other.getOrder() != 0) { setOrder(other.getOrder()); } if (other.displayMode_ != 0) { setDisplayModeValue(other.getDisplayModeValue()); } if (other.permissionStatus_ != 0) { setPermissionStatusValue(other.getPermissionStatusValue()); } if (!other.getEncryptedSessionIdBase64().isEmpty()) { encryptedSessionIdBase64_ = other.encryptedSessionIdBase64_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.akaxin.proto.core.PluginProto.Plugin parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.akaxin.proto.core.PluginProto.Plugin) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * 对于一个特定的Site,plugin.id 是唯一的。
       * 
* * string id = 1; */ 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; } } /** *
       * 对于一个特定的Site,plugin.id 是唯一的。
       * 
* * string id = 1; */ 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; } } /** *
       * 对于一个特定的Site,plugin.id 是唯一的。
       * 
* * string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * 对于一个特定的Site,plugin.id 是唯一的。
       * 
* * string id = 1; */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * 对于一个特定的Site,plugin.id 是唯一的。
       * 
* * string id = 1; */ 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_ = ""; /** *
       * 扩展名字,会显示在界面上
       * 
* * string name = 2; */ 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; } } /** *
       * 扩展名字,会显示在界面上
       * 
* * string name = 2; */ 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; } } /** *
       * 扩展名字,会显示在界面上
       * 
* * string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * 扩展名字,会显示在界面上
       * 
* * string name = 2; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * 扩展名字,会显示在界面上
       * 
* * string name = 2; */ 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 urlPage_ = ""; /** *
       * 落地页地址
       * 以http或https开头,客户端直接以url_page作为网址渲染webview
       * 否则,为api.proxy.page 请求的page参数值,默认为空
       * 如:
       * value= https://www.google.com 直接以此网址加载webview。
       * value= main,代表通过api.proxy.page接口请求main页面。
       * value= 空,代表通过api.proxy.page接口请求空页面(pluginServer自己把空返回默认主页)
       * 
* * string url_page = 3; */ public java.lang.String getUrlPage() { java.lang.Object ref = urlPage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); urlPage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 落地页地址
       * 以http或https开头,客户端直接以url_page作为网址渲染webview
       * 否则,为api.proxy.page 请求的page参数值,默认为空
       * 如:
       * value= https://www.google.com 直接以此网址加载webview。
       * value= main,代表通过api.proxy.page接口请求main页面。
       * value= 空,代表通过api.proxy.page接口请求空页面(pluginServer自己把空返回默认主页)
       * 
* * string url_page = 3; */ public com.google.protobuf.ByteString getUrlPageBytes() { java.lang.Object ref = urlPage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); urlPage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 落地页地址
       * 以http或https开头,客户端直接以url_page作为网址渲染webview
       * 否则,为api.proxy.page 请求的page参数值,默认为空
       * 如:
       * value= https://www.google.com 直接以此网址加载webview。
       * value= main,代表通过api.proxy.page接口请求main页面。
       * value= 空,代表通过api.proxy.page接口请求空页面(pluginServer自己把空返回默认主页)
       * 
* * string url_page = 3; */ public Builder setUrlPage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } urlPage_ = value; onChanged(); return this; } /** *
       * 落地页地址
       * 以http或https开头,客户端直接以url_page作为网址渲染webview
       * 否则,为api.proxy.page 请求的page参数值,默认为空
       * 如:
       * value= https://www.google.com 直接以此网址加载webview。
       * value= main,代表通过api.proxy.page接口请求main页面。
       * value= 空,代表通过api.proxy.page接口请求空页面(pluginServer自己把空返回默认主页)
       * 
* * string url_page = 3; */ public Builder clearUrlPage() { urlPage_ = getDefaultInstance().getUrlPage(); onChanged(); return this; } /** *
       * 落地页地址
       * 以http或https开头,客户端直接以url_page作为网址渲染webview
       * 否则,为api.proxy.page 请求的page参数值,默认为空
       * 如:
       * value= https://www.google.com 直接以此网址加载webview。
       * value= main,代表通过api.proxy.page接口请求main页面。
       * value= 空,代表通过api.proxy.page接口请求空页面(pluginServer自己把空返回默认主页)
       * 
* * string url_page = 3; */ public Builder setUrlPageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); urlPage_ = value; onChanged(); return this; } private java.lang.Object apiUrl_ = ""; /** *
       * api.plugin.proxy 请求转发请求时的目的URL
       * 此URL只能以http或者https开头,如无则为http
       * ====IMPORTANT====
       * 此api是给server用的,不允许传递此值到客户端。如复用此结构必须在传递给客户端之前将此值置空。
       * 
* * string api_url = 4; */ public java.lang.String getApiUrl() { java.lang.Object ref = apiUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * api.plugin.proxy 请求转发请求时的目的URL
       * 此URL只能以http或者https开头,如无则为http
       * ====IMPORTANT====
       * 此api是给server用的,不允许传递此值到客户端。如复用此结构必须在传递给客户端之前将此值置空。
       * 
* * string api_url = 4; */ public com.google.protobuf.ByteString getApiUrlBytes() { java.lang.Object ref = apiUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); apiUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * api.plugin.proxy 请求转发请求时的目的URL
       * 此URL只能以http或者https开头,如无则为http
       * ====IMPORTANT====
       * 此api是给server用的,不允许传递此值到客户端。如复用此结构必须在传递给客户端之前将此值置空。
       * 
* * string api_url = 4; */ public Builder setApiUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } apiUrl_ = value; onChanged(); return this; } /** *
       * api.plugin.proxy 请求转发请求时的目的URL
       * 此URL只能以http或者https开头,如无则为http
       * ====IMPORTANT====
       * 此api是给server用的,不允许传递此值到客户端。如复用此结构必须在传递给客户端之前将此值置空。
       * 
* * string api_url = 4; */ public Builder clearApiUrl() { apiUrl_ = getDefaultInstance().getApiUrl(); onChanged(); return this; } /** *
       * api.plugin.proxy 请求转发请求时的目的URL
       * 此URL只能以http或者https开头,如无则为http
       * ====IMPORTANT====
       * 此api是给server用的,不允许传递此值到客户端。如复用此结构必须在传递给客户端之前将此值置空。
       * 
* * string api_url = 4; */ public Builder setApiUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiUrl_ = value; onChanged(); return this; } private java.lang.Object icon_ = ""; /** *
       * 扩展图标文件,会显示在界面上
       * 如果以http开头,则代表着这是一个http协议的文件。
       * 否则,通过site-download功能下载此图片。
       * 
* * string icon = 5; */ public java.lang.String getIcon() { java.lang.Object ref = icon_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); icon_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 扩展图标文件,会显示在界面上
       * 如果以http开头,则代表着这是一个http协议的文件。
       * 否则,通过site-download功能下载此图片。
       * 
* * string icon = 5; */ public com.google.protobuf.ByteString getIconBytes() { java.lang.Object ref = icon_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); icon_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 扩展图标文件,会显示在界面上
       * 如果以http开头,则代表着这是一个http协议的文件。
       * 否则,通过site-download功能下载此图片。
       * 
* * string icon = 5; */ public Builder setIcon( java.lang.String value) { if (value == null) { throw new NullPointerException(); } icon_ = value; onChanged(); return this; } /** *
       * 扩展图标文件,会显示在界面上
       * 如果以http开头,则代表着这是一个http协议的文件。
       * 否则,通过site-download功能下载此图片。
       * 
* * string icon = 5; */ public Builder clearIcon() { icon_ = getDefaultInstance().getIcon(); onChanged(); return this; } /** *
       * 扩展图标文件,会显示在界面上
       * 如果以http开头,则代表着这是一个http协议的文件。
       * 否则,通过site-download功能下载此图片。
       * 
* * string icon = 5; */ public Builder setIconBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); icon_ = value; onChanged(); return this; } private java.lang.Object authKey_ = ""; /** *
       * pluginServer 在 请求 siteServer的innerAPI时,使用此值加密数据,以证明身份。
       * 添加扩展时由SiteServer自动生成并记录,为64个[A-Za-z0-9]组成的随机字符串。
       * site 使用auth_key 加密发送给plugin的整个proto
       * 同时 site使用auth_key解析 plugin传递过来的具体proto值
       * 
* * string auth_key = 6; */ public java.lang.String getAuthKey() { java.lang.Object ref = authKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * pluginServer 在 请求 siteServer的innerAPI时,使用此值加密数据,以证明身份。
       * 添加扩展时由SiteServer自动生成并记录,为64个[A-Za-z0-9]组成的随机字符串。
       * site 使用auth_key 加密发送给plugin的整个proto
       * 同时 site使用auth_key解析 plugin传递过来的具体proto值
       * 
* * string auth_key = 6; */ public com.google.protobuf.ByteString getAuthKeyBytes() { java.lang.Object ref = authKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * pluginServer 在 请求 siteServer的innerAPI时,使用此值加密数据,以证明身份。
       * 添加扩展时由SiteServer自动生成并记录,为64个[A-Za-z0-9]组成的随机字符串。
       * site 使用auth_key 加密发送给plugin的整个proto
       * 同时 site使用auth_key解析 plugin传递过来的具体proto值
       * 
* * string auth_key = 6; */ public Builder setAuthKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } authKey_ = value; onChanged(); return this; } /** *
       * pluginServer 在 请求 siteServer的innerAPI时,使用此值加密数据,以证明身份。
       * 添加扩展时由SiteServer自动生成并记录,为64个[A-Za-z0-9]组成的随机字符串。
       * site 使用auth_key 加密发送给plugin的整个proto
       * 同时 site使用auth_key解析 plugin传递过来的具体proto值
       * 
* * string auth_key = 6; */ public Builder clearAuthKey() { authKey_ = getDefaultInstance().getAuthKey(); onChanged(); return this; } /** *
       * pluginServer 在 请求 siteServer的innerAPI时,使用此值加密数据,以证明身份。
       * 添加扩展时由SiteServer自动生成并记录,为64个[A-Za-z0-9]组成的随机字符串。
       * site 使用auth_key 加密发送给plugin的整个proto
       * 同时 site使用auth_key解析 plugin传递过来的具体proto值
       * 
* * string auth_key = 6; */ public Builder setAuthKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authKey_ = value; onChanged(); return this; } private java.lang.Object allowedIp_ = ""; /** *
       * site server的innerAPI允许的pluginServer地址。
       * 默认为127.0.0.1,如为空则代表不限制,此外:支持网络掩码的配置方式。
       * 如果有多个ip,以英文逗号[,]隔开。
       * 
* * string allowed_ip = 7; */ public java.lang.String getAllowedIp() { java.lang.Object ref = allowedIp_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedIp_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * site server的innerAPI允许的pluginServer地址。
       * 默认为127.0.0.1,如为空则代表不限制,此外:支持网络掩码的配置方式。
       * 如果有多个ip,以英文逗号[,]隔开。
       * 
* * string allowed_ip = 7; */ public com.google.protobuf.ByteString getAllowedIpBytes() { java.lang.Object ref = allowedIp_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); allowedIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * site server的innerAPI允许的pluginServer地址。
       * 默认为127.0.0.1,如为空则代表不限制,此外:支持网络掩码的配置方式。
       * 如果有多个ip,以英文逗号[,]隔开。
       * 
* * string allowed_ip = 7; */ public Builder setAllowedIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } allowedIp_ = value; onChanged(); return this; } /** *
       * site server的innerAPI允许的pluginServer地址。
       * 默认为127.0.0.1,如为空则代表不限制,此外:支持网络掩码的配置方式。
       * 如果有多个ip,以英文逗号[,]隔开。
       * 
* * string allowed_ip = 7; */ public Builder clearAllowedIp() { allowedIp_ = getDefaultInstance().getAllowedIp(); onChanged(); return this; } /** *
       * site server的innerAPI允许的pluginServer地址。
       * 默认为127.0.0.1,如为空则代表不限制,此外:支持网络掩码的配置方式。
       * 如果有多个ip,以英文逗号[,]隔开。
       * 
* * string allowed_ip = 7; */ public Builder setAllowedIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); allowedIp_ = value; onChanged(); return this; } private int position_ = 0; /** *
       * 扩展的位置【应该为一个枚举】
       * 值:首页、消息帧
       * 本次不允许首页并且消息帧这个类型。
       * 
* * .core.PluginPosition position = 8; */ public int getPositionValue() { return position_; } /** *
       * 扩展的位置【应该为一个枚举】
       * 值:首页、消息帧
       * 本次不允许首页并且消息帧这个类型。
       * 
* * .core.PluginPosition position = 8; */ public Builder setPositionValue(int value) { position_ = value; onChanged(); return this; } /** *
       * 扩展的位置【应该为一个枚举】
       * 值:首页、消息帧
       * 本次不允许首页并且消息帧这个类型。
       * 
* * .core.PluginPosition position = 8; */ public com.akaxin.proto.core.PluginProto.PluginPosition getPosition() { com.akaxin.proto.core.PluginProto.PluginPosition result = com.akaxin.proto.core.PluginProto.PluginPosition.valueOf(position_); return result == null ? com.akaxin.proto.core.PluginProto.PluginPosition.UNRECOGNIZED : result; } /** *
       * 扩展的位置【应该为一个枚举】
       * 值:首页、消息帧
       * 本次不允许首页并且消息帧这个类型。
       * 
* * .core.PluginPosition position = 8; */ public Builder setPosition(com.akaxin.proto.core.PluginProto.PluginPosition value) { if (value == null) { throw new NullPointerException(); } position_ = value.getNumber(); onChanged(); return this; } /** *
       * 扩展的位置【应该为一个枚举】
       * 值:首页、消息帧
       * 本次不允许首页并且消息帧这个类型。
       * 
* * .core.PluginPosition position = 8; */ public Builder clearPosition() { position_ = 0; onChanged(); return this; } private int order_ ; /** *
       * 显示顺序
       * 当一个位置,有多个扩展时,此处描述顺序,数字越小,排列越靠前(从上往下,从左往右排列)
       * 
* * int32 order = 9; */ public int getOrder() { return order_; } /** *
       * 显示顺序
       * 当一个位置,有多个扩展时,此处描述顺序,数字越小,排列越靠前(从上往下,从左往右排列)
       * 
* * int32 order = 9; */ public Builder setOrder(int value) { order_ = value; onChanged(); return this; } /** *
       * 显示顺序
       * 当一个位置,有多个扩展时,此处描述顺序,数字越小,排列越靠前(从上往下,从左往右排列)
       * 
* * int32 order = 9; */ public Builder clearOrder() { order_ = 0; onChanged(); return this; } private int displayMode_ = 0; /** *
       * 展现方式【应该为一个枚举】
       * 默认、浮屏、分屏
       * 目前写死【默认】
       * 
* * .core.PluginDisplayMode display_mode = 10; */ public int getDisplayModeValue() { return displayMode_; } /** *
       * 展现方式【应该为一个枚举】
       * 默认、浮屏、分屏
       * 目前写死【默认】
       * 
* * .core.PluginDisplayMode display_mode = 10; */ public Builder setDisplayModeValue(int value) { displayMode_ = value; onChanged(); return this; } /** *
       * 展现方式【应该为一个枚举】
       * 默认、浮屏、分屏
       * 目前写死【默认】
       * 
* * .core.PluginDisplayMode display_mode = 10; */ public com.akaxin.proto.core.PluginProto.PluginDisplayMode getDisplayMode() { com.akaxin.proto.core.PluginProto.PluginDisplayMode result = com.akaxin.proto.core.PluginProto.PluginDisplayMode.valueOf(displayMode_); return result == null ? com.akaxin.proto.core.PluginProto.PluginDisplayMode.UNRECOGNIZED : result; } /** *
       * 展现方式【应该为一个枚举】
       * 默认、浮屏、分屏
       * 目前写死【默认】
       * 
* * .core.PluginDisplayMode display_mode = 10; */ public Builder setDisplayMode(com.akaxin.proto.core.PluginProto.PluginDisplayMode value) { if (value == null) { throw new NullPointerException(); } displayMode_ = value.getNumber(); onChanged(); return this; } /** *
       * 展现方式【应该为一个枚举】
       * 默认、浮屏、分屏
       * 目前写死【默认】
       * 
* * .core.PluginDisplayMode display_mode = 10; */ public Builder clearDisplayMode() { displayMode_ = 0; onChanged(); return this; } private int permissionStatus_ = 0; /** *
       * 可用状态
       * - 禁用
       * - 管理员可用
       * - 全员可用
       * 
* * .core.PermissionStatus permission_status = 11; */ public int getPermissionStatusValue() { return permissionStatus_; } /** *
       * 可用状态
       * - 禁用
       * - 管理员可用
       * - 全员可用
       * 
* * .core.PermissionStatus permission_status = 11; */ public Builder setPermissionStatusValue(int value) { permissionStatus_ = value; onChanged(); return this; } /** *
       * 可用状态
       * - 禁用
       * - 管理员可用
       * - 全员可用
       * 
* * .core.PermissionStatus permission_status = 11; */ public com.akaxin.proto.core.PluginProto.PermissionStatus getPermissionStatus() { com.akaxin.proto.core.PluginProto.PermissionStatus result = com.akaxin.proto.core.PluginProto.PermissionStatus.valueOf(permissionStatus_); return result == null ? com.akaxin.proto.core.PluginProto.PermissionStatus.UNRECOGNIZED : result; } /** *
       * 可用状态
       * - 禁用
       * - 管理员可用
       * - 全员可用
       * 
* * .core.PermissionStatus permission_status = 11; */ public Builder setPermissionStatus(com.akaxin.proto.core.PluginProto.PermissionStatus value) { if (value == null) { throw new NullPointerException(); } permissionStatus_ = value.getNumber(); onChanged(); return this; } /** *
       * 可用状态
       * - 禁用
       * - 管理员可用
       * - 全员可用
       * 
* * .core.PermissionStatus permission_status = 11; */ public Builder clearPermissionStatus() { permissionStatus_ = 0; onChanged(); return this; } private java.lang.Object encryptedSessionIdBase64_ = ""; /** *
       * 使用auth_key加密的用户session
       * 
* * string encrypted_session_id_base64 = 12; */ public java.lang.String getEncryptedSessionIdBase64() { java.lang.Object ref = encryptedSessionIdBase64_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptedSessionIdBase64_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 使用auth_key加密的用户session
       * 
* * string encrypted_session_id_base64 = 12; */ public com.google.protobuf.ByteString getEncryptedSessionIdBase64Bytes() { java.lang.Object ref = encryptedSessionIdBase64_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); encryptedSessionIdBase64_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 使用auth_key加密的用户session
       * 
* * string encrypted_session_id_base64 = 12; */ public Builder setEncryptedSessionIdBase64( java.lang.String value) { if (value == null) { throw new NullPointerException(); } encryptedSessionIdBase64_ = value; onChanged(); return this; } /** *
       * 使用auth_key加密的用户session
       * 
* * string encrypted_session_id_base64 = 12; */ public Builder clearEncryptedSessionIdBase64() { encryptedSessionIdBase64_ = getDefaultInstance().getEncryptedSessionIdBase64(); onChanged(); return this; } /** *
       * 使用auth_key加密的用户session
       * 
* * string encrypted_session_id_base64 = 12; */ public Builder setEncryptedSessionIdBase64Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); encryptedSessionIdBase64_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:core.Plugin) } // @@protoc_insertion_point(class_scope:core.Plugin) private static final com.akaxin.proto.core.PluginProto.Plugin DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.akaxin.proto.core.PluginProto.Plugin(); } public static com.akaxin.proto.core.PluginProto.Plugin getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Plugin parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Plugin(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.akaxin.proto.core.PluginProto.Plugin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_core_ProxyPluginPackage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_core_ProxyPluginPackage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_core_ProxyPluginPackage_PluginHeaderEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_core_ProxyPluginPackage_PluginHeaderEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_core_Plugin_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_core_Plugin_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\021core/plugin.proto\022\004core\032\017core/core.pro" + "to\"\277\001\n\022ProxyPluginPackage\022A\n\rplugin_head" + "er\030\001 \003(\0132*.core.ProxyPluginPackage.Plugi" + "nHeaderEntry\022\014\n\004data\030\002 \001(\t\022#\n\nerror_info" + "\030\003 \001(\0132\017.core.ErrorInfo\0323\n\021PluginHeaderE" + "ntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\t:\0028\001\"\267\002\n" + "\006Plugin\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\020\n\010url" + "_page\030\003 \001(\t\022\017\n\007api_url\030\004 \001(\t\022\014\n\004icon\030\005 \001" + "(\t\022\020\n\010auth_key\030\006 \001(\t\022\022\n\nallowed_ip\030\007 \001(\t" + "\022&\n\010position\030\010 \001(\0162\024.core.PluginPosition", "\022\r\n\005order\030\t \001(\005\022-\n\014display_mode\030\n \001(\0162\027." + "core.PluginDisplayMode\0221\n\021permission_sta" + "tus\030\013 \001(\0162\026.core.PermissionStatus\022#\n\033enc" + "rypted_session_id_base64\030\014 \001(\t*\223\001\n\017Plugi" + "nHeaderKey\022\022\n\016CLIENT_VERSION\020\000\022\027\n\023CLIENT" + "_SITE_USER_ID\020\001\022\032\n\026CLIENT_SITE_SESSION_I" + "D\020\002\022\022\n\016PLUGIN_REFERER\020\003\022\024\n\020PLUGIN_TIMEST" + "AMP\020\004\022\r\n\tPLUGIN_ID\020\005*/\n\020PermissionStatus" + "\022\014\n\010DISABLED\020\000\022\r\n\tAVAILABLE\020\001*-\n\016PluginP" + "osition\022\r\n\tHOME_PAGE\020\000\022\014\n\010MSG_PAGE\020\001*H\n\021", "PluginDisplayMode\022\014\n\010NEW_PAGE\020\000\022\023\n\017FLOAT" + "ING_SCREEN\020\001\022\020\n\014SPLIT_SCREEN\020\002B$\n\025com.ak" + "axin.proto.coreB\013PluginProtob\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.akaxin.proto.core.CoreProto.getDescriptor(), }, assigner); internal_static_core_ProxyPluginPackage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_core_ProxyPluginPackage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_core_ProxyPluginPackage_descriptor, new java.lang.String[] { "PluginHeader", "Data", "ErrorInfo", }); internal_static_core_ProxyPluginPackage_PluginHeaderEntry_descriptor = internal_static_core_ProxyPluginPackage_descriptor.getNestedTypes().get(0); internal_static_core_ProxyPluginPackage_PluginHeaderEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_core_ProxyPluginPackage_PluginHeaderEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_core_Plugin_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_core_Plugin_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_core_Plugin_descriptor, new java.lang.String[] { "Id", "Name", "UrlPage", "ApiUrl", "Icon", "AuthKey", "AllowedIp", "Position", "Order", "DisplayMode", "PermissionStatus", "EncryptedSessionIdBase64", }); com.akaxin.proto.core.CoreProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }