// Generated by the protocol buffer compiler. DO NOT EDIT! // source: site/api_plugin_list.proto package com.akaxin.proto.site; public final class ApiPluginListProto { private ApiPluginListProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface ApiPluginListRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:site.ApiPluginListRequest) com.google.protobuf.MessageOrBuilder { /** *
     *分页:第几页
     * 
* * int32 page_number = 1; */ int getPageNumber(); /** *
     *分页:每页条数
     * 
* * int32 page_size = 2; */ int getPageSize(); /** *
     *查询扩展的状态
     * 
* * .core.PluginPosition position = 3; */ int getPositionValue(); /** *
     *查询扩展的状态
     * 
* * .core.PluginPosition position = 3; */ com.akaxin.proto.core.PluginProto.PluginPosition getPosition(); } /** * Protobuf type {@code site.ApiPluginListRequest} */ public static final class ApiPluginListRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:site.ApiPluginListRequest) ApiPluginListRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ApiPluginListRequest.newBuilder() to construct. private ApiPluginListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApiPluginListRequest() { pageNumber_ = 0; pageSize_ = 0; position_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApiPluginListRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 8: { pageNumber_ = input.readInt32(); break; } case 16: { pageSize_ = input.readInt32(); break; } case 24: { int rawValue = input.readEnum(); position_ = rawValue; 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.site.ApiPluginListProto.internal_static_site_ApiPluginListRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.site.ApiPluginListProto.internal_static_site_ApiPluginListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest.class, com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest.Builder.class); } public static final int PAGE_NUMBER_FIELD_NUMBER = 1; private int pageNumber_; /** *
     *分页:第几页
     * 
* * int32 page_number = 1; */ public int getPageNumber() { return pageNumber_; } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** *
     *分页:每页条数
     * 
* * int32 page_size = 2; */ public int getPageSize() { return pageSize_; } public static final int POSITION_FIELD_NUMBER = 3; private int position_; /** *
     *查询扩展的状态
     * 
* * .core.PluginPosition position = 3; */ public int getPositionValue() { return position_; } /** *
     *查询扩展的状态
     * 
* * .core.PluginPosition position = 3; */ 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; } 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 (pageNumber_ != 0) { output.writeInt32(1, pageNumber_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } if (position_ != com.akaxin.proto.core.PluginProto.PluginPosition.HOME_PAGE.getNumber()) { output.writeEnum(3, position_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (pageNumber_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, pageNumber_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, pageSize_); } if (position_ != com.akaxin.proto.core.PluginProto.PluginPosition.HOME_PAGE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, position_); } 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.site.ApiPluginListProto.ApiPluginListRequest)) { return super.equals(obj); } com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest other = (com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest) obj; boolean result = true; result = result && (getPageNumber() == other.getPageNumber()); result = result && (getPageSize() == other.getPageSize()); result = result && position_ == other.position_; 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) + PAGE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPageNumber(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); hash = (37 * hash) + POSITION_FIELD_NUMBER; hash = (53 * hash) + position_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest 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.site.ApiPluginListProto.ApiPluginListRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest 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.site.ApiPluginListProto.ApiPluginListRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest 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.site.ApiPluginListProto.ApiPluginListRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest 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.site.ApiPluginListProto.ApiPluginListRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest 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.site.ApiPluginListProto.ApiPluginListRequest 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 site.ApiPluginListRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:site.ApiPluginListRequest) com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.site.ApiPluginListProto.internal_static_site_ApiPluginListRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.site.ApiPluginListProto.internal_static_site_ApiPluginListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest.class, com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest.Builder.class); } // Construct using com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest.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(); pageNumber_ = 0; pageSize_ = 0; position_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.akaxin.proto.site.ApiPluginListProto.internal_static_site_ApiPluginListRequest_descriptor; } public com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest getDefaultInstanceForType() { return com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest.getDefaultInstance(); } public com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest build() { com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest buildPartial() { com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest result = new com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest(this); result.pageNumber_ = pageNumber_; result.pageSize_ = pageSize_; result.position_ = position_; 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.site.ApiPluginListProto.ApiPluginListRequest) { return mergeFrom((com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest other) { if (other == com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest.getDefaultInstance()) return this; if (other.getPageNumber() != 0) { setPageNumber(other.getPageNumber()); } if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } if (other.position_ != 0) { setPositionValue(other.getPositionValue()); } 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.site.ApiPluginListProto.ApiPluginListRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int pageNumber_ ; /** *
       *分页:第几页
       * 
* * int32 page_number = 1; */ public int getPageNumber() { return pageNumber_; } /** *
       *分页:第几页
       * 
* * int32 page_number = 1; */ public Builder setPageNumber(int value) { pageNumber_ = value; onChanged(); return this; } /** *
       *分页:第几页
       * 
* * int32 page_number = 1; */ public Builder clearPageNumber() { pageNumber_ = 0; onChanged(); return this; } private int pageSize_ ; /** *
       *分页:每页条数
       * 
* * int32 page_size = 2; */ public int getPageSize() { return pageSize_; } /** *
       *分页:每页条数
       * 
* * int32 page_size = 2; */ public Builder setPageSize(int value) { pageSize_ = value; onChanged(); return this; } /** *
       *分页:每页条数
       * 
* * int32 page_size = 2; */ public Builder clearPageSize() { pageSize_ = 0; onChanged(); return this; } private int position_ = 0; /** *
       *查询扩展的状态
       * 
* * .core.PluginPosition position = 3; */ public int getPositionValue() { return position_; } /** *
       *查询扩展的状态
       * 
* * .core.PluginPosition position = 3; */ public Builder setPositionValue(int value) { position_ = value; onChanged(); return this; } /** *
       *查询扩展的状态
       * 
* * .core.PluginPosition position = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearPosition() { position_ = 0; 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:site.ApiPluginListRequest) } // @@protoc_insertion_point(class_scope:site.ApiPluginListRequest) private static final com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest(); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ApiPluginListRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApiPluginListRequest(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.site.ApiPluginListProto.ApiPluginListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApiPluginListResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:site.ApiPluginListResponse) com.google.protobuf.MessageOrBuilder { /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ java.util.List getPluginList(); /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ com.akaxin.proto.core.PluginProto.Plugin getPlugin(int index); /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ int getPluginCount(); /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ java.util.List getPluginOrBuilderList(); /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ com.akaxin.proto.core.PluginProto.PluginOrBuilder getPluginOrBuilder( int index); } /** * Protobuf type {@code site.ApiPluginListResponse} */ public static final class ApiPluginListResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:site.ApiPluginListResponse) ApiPluginListResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ApiPluginListResponse.newBuilder() to construct. private ApiPluginListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApiPluginListResponse() { plugin_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApiPluginListResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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)) { plugin_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } plugin_.add( input.readMessage(com.akaxin.proto.core.PluginProto.Plugin.parser(), extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { plugin_ = java.util.Collections.unmodifiableList(plugin_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.site.ApiPluginListProto.internal_static_site_ApiPluginListResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.site.ApiPluginListProto.internal_static_site_ApiPluginListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse.class, com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse.Builder.class); } public static final int PLUGIN_FIELD_NUMBER = 1; private java.util.List plugin_; /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ public java.util.List getPluginList() { return plugin_; } /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ public java.util.List getPluginOrBuilderList() { return plugin_; } /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ public int getPluginCount() { return plugin_.size(); } /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ public com.akaxin.proto.core.PluginProto.Plugin getPlugin(int index) { return plugin_.get(index); } /** *
     *获取插件列表数据
     * 
* * repeated .core.Plugin plugin = 1; */ public com.akaxin.proto.core.PluginProto.PluginOrBuilder getPluginOrBuilder( int index) { return plugin_.get(index); } 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 { for (int i = 0; i < plugin_.size(); i++) { output.writeMessage(1, plugin_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < plugin_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, plugin_.get(i)); } 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.site.ApiPluginListProto.ApiPluginListResponse)) { return super.equals(obj); } com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse other = (com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse) obj; boolean result = true; result = result && getPluginList() .equals(other.getPluginList()); 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 (getPluginCount() > 0) { hash = (37 * hash) + PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getPluginList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse 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.site.ApiPluginListProto.ApiPluginListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse 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.site.ApiPluginListProto.ApiPluginListResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse 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.site.ApiPluginListProto.ApiPluginListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse 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.site.ApiPluginListProto.ApiPluginListResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse 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.site.ApiPluginListProto.ApiPluginListResponse 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 site.ApiPluginListResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:site.ApiPluginListResponse) com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.site.ApiPluginListProto.internal_static_site_ApiPluginListResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.site.ApiPluginListProto.internal_static_site_ApiPluginListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse.class, com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse.Builder.class); } // Construct using com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPluginFieldBuilder(); } } public Builder clear() { super.clear(); if (pluginBuilder_ == null) { plugin_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { pluginBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.akaxin.proto.site.ApiPluginListProto.internal_static_site_ApiPluginListResponse_descriptor; } public com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse getDefaultInstanceForType() { return com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse.getDefaultInstance(); } public com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse build() { com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse buildPartial() { com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse result = new com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse(this); int from_bitField0_ = bitField0_; if (pluginBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { plugin_ = java.util.Collections.unmodifiableList(plugin_); bitField0_ = (bitField0_ & ~0x00000001); } result.plugin_ = plugin_; } else { result.plugin_ = pluginBuilder_.build(); } 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.site.ApiPluginListProto.ApiPluginListResponse) { return mergeFrom((com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse other) { if (other == com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse.getDefaultInstance()) return this; if (pluginBuilder_ == null) { if (!other.plugin_.isEmpty()) { if (plugin_.isEmpty()) { plugin_ = other.plugin_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePluginIsMutable(); plugin_.addAll(other.plugin_); } onChanged(); } } else { if (!other.plugin_.isEmpty()) { if (pluginBuilder_.isEmpty()) { pluginBuilder_.dispose(); pluginBuilder_ = null; plugin_ = other.plugin_; bitField0_ = (bitField0_ & ~0x00000001); pluginBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPluginFieldBuilder() : null; } else { pluginBuilder_.addAllMessages(other.plugin_); } } } 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.site.ApiPluginListProto.ApiPluginListResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List plugin_ = java.util.Collections.emptyList(); private void ensurePluginIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { plugin_ = new java.util.ArrayList(plugin_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.akaxin.proto.core.PluginProto.Plugin, com.akaxin.proto.core.PluginProto.Plugin.Builder, com.akaxin.proto.core.PluginProto.PluginOrBuilder> pluginBuilder_; /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public java.util.List getPluginList() { if (pluginBuilder_ == null) { return java.util.Collections.unmodifiableList(plugin_); } else { return pluginBuilder_.getMessageList(); } } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public int getPluginCount() { if (pluginBuilder_ == null) { return plugin_.size(); } else { return pluginBuilder_.getCount(); } } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public com.akaxin.proto.core.PluginProto.Plugin getPlugin(int index) { if (pluginBuilder_ == null) { return plugin_.get(index); } else { return pluginBuilder_.getMessage(index); } } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public Builder setPlugin( int index, com.akaxin.proto.core.PluginProto.Plugin value) { if (pluginBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePluginIsMutable(); plugin_.set(index, value); onChanged(); } else { pluginBuilder_.setMessage(index, value); } return this; } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public Builder setPlugin( int index, com.akaxin.proto.core.PluginProto.Plugin.Builder builderForValue) { if (pluginBuilder_ == null) { ensurePluginIsMutable(); plugin_.set(index, builderForValue.build()); onChanged(); } else { pluginBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public Builder addPlugin(com.akaxin.proto.core.PluginProto.Plugin value) { if (pluginBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePluginIsMutable(); plugin_.add(value); onChanged(); } else { pluginBuilder_.addMessage(value); } return this; } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public Builder addPlugin( int index, com.akaxin.proto.core.PluginProto.Plugin value) { if (pluginBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePluginIsMutable(); plugin_.add(index, value); onChanged(); } else { pluginBuilder_.addMessage(index, value); } return this; } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public Builder addPlugin( com.akaxin.proto.core.PluginProto.Plugin.Builder builderForValue) { if (pluginBuilder_ == null) { ensurePluginIsMutable(); plugin_.add(builderForValue.build()); onChanged(); } else { pluginBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public Builder addPlugin( int index, com.akaxin.proto.core.PluginProto.Plugin.Builder builderForValue) { if (pluginBuilder_ == null) { ensurePluginIsMutable(); plugin_.add(index, builderForValue.build()); onChanged(); } else { pluginBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public Builder addAllPlugin( java.lang.Iterable values) { if (pluginBuilder_ == null) { ensurePluginIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, plugin_); onChanged(); } else { pluginBuilder_.addAllMessages(values); } return this; } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public Builder clearPlugin() { if (pluginBuilder_ == null) { plugin_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { pluginBuilder_.clear(); } return this; } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public Builder removePlugin(int index) { if (pluginBuilder_ == null) { ensurePluginIsMutable(); plugin_.remove(index); onChanged(); } else { pluginBuilder_.remove(index); } return this; } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public com.akaxin.proto.core.PluginProto.Plugin.Builder getPluginBuilder( int index) { return getPluginFieldBuilder().getBuilder(index); } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public com.akaxin.proto.core.PluginProto.PluginOrBuilder getPluginOrBuilder( int index) { if (pluginBuilder_ == null) { return plugin_.get(index); } else { return pluginBuilder_.getMessageOrBuilder(index); } } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public java.util.List getPluginOrBuilderList() { if (pluginBuilder_ != null) { return pluginBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(plugin_); } } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public com.akaxin.proto.core.PluginProto.Plugin.Builder addPluginBuilder() { return getPluginFieldBuilder().addBuilder( com.akaxin.proto.core.PluginProto.Plugin.getDefaultInstance()); } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public com.akaxin.proto.core.PluginProto.Plugin.Builder addPluginBuilder( int index) { return getPluginFieldBuilder().addBuilder( index, com.akaxin.proto.core.PluginProto.Plugin.getDefaultInstance()); } /** *
       *获取插件列表数据
       * 
* * repeated .core.Plugin plugin = 1; */ public java.util.List getPluginBuilderList() { return getPluginFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.akaxin.proto.core.PluginProto.Plugin, com.akaxin.proto.core.PluginProto.Plugin.Builder, com.akaxin.proto.core.PluginProto.PluginOrBuilder> getPluginFieldBuilder() { if (pluginBuilder_ == null) { pluginBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.akaxin.proto.core.PluginProto.Plugin, com.akaxin.proto.core.PluginProto.Plugin.Builder, com.akaxin.proto.core.PluginProto.PluginOrBuilder>( plugin_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); plugin_ = null; } return pluginBuilder_; } 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:site.ApiPluginListResponse) } // @@protoc_insertion_point(class_scope:site.ApiPluginListResponse) private static final com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse(); } public static com.akaxin.proto.site.ApiPluginListProto.ApiPluginListResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ApiPluginListResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApiPluginListResponse(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.site.ApiPluginListProto.ApiPluginListResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_site_ApiPluginListRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_site_ApiPluginListRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_site_ApiPluginListResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_site_ApiPluginListResponse_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\032site/api_plugin_list.proto\022\004site\032\021core" + "/plugin.proto\"f\n\024ApiPluginListRequest\022\023\n" + "\013page_number\030\001 \001(\005\022\021\n\tpage_size\030\002 \001(\005\022&\n" + "\010position\030\003 \001(\0162\024.core.PluginPosition\"5\n" + "\025ApiPluginListResponse\022\034\n\006plugin\030\001 \003(\0132\014" + ".core.Plugin2W\n\024ApiPluginListService\022?\n\004" + "list\022\032.site.ApiPluginListRequest\032\033.site." + "ApiPluginListResponseB+\n\025com.akaxin.prot" + "o.siteB\022ApiPluginListProtob\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.PluginProto.getDescriptor(), }, assigner); internal_static_site_ApiPluginListRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_site_ApiPluginListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_site_ApiPluginListRequest_descriptor, new java.lang.String[] { "PageNumber", "PageSize", "Position", }); internal_static_site_ApiPluginListResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_site_ApiPluginListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_site_ApiPluginListResponse_descriptor, new java.lang.String[] { "Plugin", }); com.akaxin.proto.core.PluginProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }