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

jmash.file.protobuf.JmashFilePage Maven / Gradle / Ivy

There is a newer version: 0.0.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: jmash/file/protobuf/file_message.proto

// Protobuf Java Version: 3.25.1
package jmash.file.protobuf;

/**
 * 
 * 分页
 * 
* * Protobuf type {@code jmash.file.JmashFilePage} */ public final class JmashFilePage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:jmash.file.JmashFilePage) JmashFilePageOrBuilder { private static final long serialVersionUID = 0L; // Use JmashFilePage.newBuilder() to construct. private JmashFilePage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JmashFilePage() { results_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new JmashFilePage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFilePage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFilePage_fieldAccessorTable .ensureFieldAccessorsInitialized( jmash.file.protobuf.JmashFilePage.class, jmash.file.protobuf.JmashFilePage.Builder.class); } private int bitField0_; public static final int RESULTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List results_; /** *
   *当前页内容
   * 
* * repeated .jmash.file.JmashFileModel results = 1; */ @java.lang.Override public java.util.List getResultsList() { return results_; } /** *
   *当前页内容
   * 
* * repeated .jmash.file.JmashFileModel results = 1; */ @java.lang.Override public java.util.List getResultsOrBuilderList() { return results_; } /** *
   *当前页内容
   * 
* * repeated .jmash.file.JmashFileModel results = 1; */ @java.lang.Override public int getResultsCount() { return results_.size(); } /** *
   *当前页内容
   * 
* * repeated .jmash.file.JmashFileModel results = 1; */ @java.lang.Override public jmash.file.protobuf.JmashFileModel getResults(int index) { return results_.get(index); } /** *
   *当前页内容
   * 
* * repeated .jmash.file.JmashFileModel results = 1; */ @java.lang.Override public jmash.file.protobuf.JmashFileModelOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } public static final int CUR_PAGE_FIELD_NUMBER = 2; private int curPage_ = 0; /** *
   *当前页码
   * 
* * int32 cur_page = 2; * @return The curPage. */ @java.lang.Override public int getCurPage() { return curPage_; } public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** *
   *页尺寸
   * 
* * int32 page_size = 3; * @return The pageSize. */ @java.lang.Override public int getPageSize() { return pageSize_; } public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_ = 0; /** *
   *总记录数
   * 
* * int32 total_size = 4; * @return The totalSize. */ @java.lang.Override public int getTotalSize() { return totalSize_; } public static final int SUB_TOTAL_DTO_FIELD_NUMBER = 5; private jmash.file.protobuf.JmashFileModelTotal subTotalDto_; /** *
   *本页小计
   * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; * @return Whether the subTotalDto field is set. */ @java.lang.Override public boolean hasSubTotalDto() { return ((bitField0_ & 0x00000001) != 0); } /** *
   *本页小计
   * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; * @return The subTotalDto. */ @java.lang.Override public jmash.file.protobuf.JmashFileModelTotal getSubTotalDto() { return subTotalDto_ == null ? jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance() : subTotalDto_; } /** *
   *本页小计
   * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; */ @java.lang.Override public jmash.file.protobuf.JmashFileModelTotalOrBuilder getSubTotalDtoOrBuilder() { return subTotalDto_ == null ? jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance() : subTotalDto_; } public static final int TOTAL_DTO_FIELD_NUMBER = 6; private jmash.file.protobuf.JmashFileModelTotal totalDto_; /** *
   *合计
   * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; * @return Whether the totalDto field is set. */ @java.lang.Override public boolean hasTotalDto() { return ((bitField0_ & 0x00000002) != 0); } /** *
   *合计
   * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; * @return The totalDto. */ @java.lang.Override public jmash.file.protobuf.JmashFileModelTotal getTotalDto() { return totalDto_ == null ? jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance() : totalDto_; } /** *
   *合计
   * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; */ @java.lang.Override public jmash.file.protobuf.JmashFileModelTotalOrBuilder getTotalDtoOrBuilder() { return totalDto_ == null ? jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance() : totalDto_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } if (curPage_ != 0) { output.writeInt32(2, curPage_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } if (totalSize_ != 0) { output.writeInt32(4, totalSize_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getSubTotalDto()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getTotalDto()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, results_.get(i)); } if (curPage_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, curPage_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, pageSize_); } if (totalSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, totalSize_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSubTotalDto()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTotalDto()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof jmash.file.protobuf.JmashFilePage)) { return super.equals(obj); } jmash.file.protobuf.JmashFilePage other = (jmash.file.protobuf.JmashFilePage) obj; if (!getResultsList() .equals(other.getResultsList())) return false; if (getCurPage() != other.getCurPage()) return false; if (getPageSize() != other.getPageSize()) return false; if (getTotalSize() != other.getTotalSize()) return false; if (hasSubTotalDto() != other.hasSubTotalDto()) return false; if (hasSubTotalDto()) { if (!getSubTotalDto() .equals(other.getSubTotalDto())) return false; } if (hasTotalDto() != other.hasTotalDto()) return false; if (hasTotalDto()) { if (!getTotalDto() .equals(other.getTotalDto())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } hash = (37 * hash) + CUR_PAGE_FIELD_NUMBER; hash = (53 * hash) + getCurPage(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; hash = (53 * hash) + getTotalSize(); if (hasSubTotalDto()) { hash = (37 * hash) + SUB_TOTAL_DTO_FIELD_NUMBER; hash = (53 * hash) + getSubTotalDto().hashCode(); } if (hasTotalDto()) { hash = (37 * hash) + TOTAL_DTO_FIELD_NUMBER; hash = (53 * hash) + getTotalDto().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static jmash.file.protobuf.JmashFilePage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jmash.file.protobuf.JmashFilePage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jmash.file.protobuf.JmashFilePage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jmash.file.protobuf.JmashFilePage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jmash.file.protobuf.JmashFilePage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jmash.file.protobuf.JmashFilePage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jmash.file.protobuf.JmashFilePage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static jmash.file.protobuf.JmashFilePage 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 jmash.file.protobuf.JmashFilePage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static jmash.file.protobuf.JmashFilePage 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 jmash.file.protobuf.JmashFilePage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static jmash.file.protobuf.JmashFilePage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(jmash.file.protobuf.JmashFilePage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * 分页
   * 
* * Protobuf type {@code jmash.file.JmashFilePage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:jmash.file.JmashFilePage) jmash.file.protobuf.JmashFilePageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFilePage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFilePage_fieldAccessorTable .ensureFieldAccessorsInitialized( jmash.file.protobuf.JmashFilePage.class, jmash.file.protobuf.JmashFilePage.Builder.class); } // Construct using jmash.file.protobuf.JmashFilePage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResultsFieldBuilder(); getSubTotalDtoFieldBuilder(); getTotalDtoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); } else { results_ = null; resultsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); curPage_ = 0; pageSize_ = 0; totalSize_ = 0; subTotalDto_ = null; if (subTotalDtoBuilder_ != null) { subTotalDtoBuilder_.dispose(); subTotalDtoBuilder_ = null; } totalDto_ = null; if (totalDtoBuilder_ != null) { totalDtoBuilder_.dispose(); totalDtoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFilePage_descriptor; } @java.lang.Override public jmash.file.protobuf.JmashFilePage getDefaultInstanceForType() { return jmash.file.protobuf.JmashFilePage.getDefaultInstance(); } @java.lang.Override public jmash.file.protobuf.JmashFilePage build() { jmash.file.protobuf.JmashFilePage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public jmash.file.protobuf.JmashFilePage buildPartial() { jmash.file.protobuf.JmashFilePage result = new jmash.file.protobuf.JmashFilePage(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(jmash.file.protobuf.JmashFilePage result) { if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000001); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } } private void buildPartial0(jmash.file.protobuf.JmashFilePage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.curPage_ = curPage_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.pageSize_ = pageSize_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.totalSize_ = totalSize_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.subTotalDto_ = subTotalDtoBuilder_ == null ? subTotalDto_ : subTotalDtoBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.totalDto_ = totalDtoBuilder_ == null ? totalDto_ : totalDtoBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof jmash.file.protobuf.JmashFilePage) { return mergeFrom((jmash.file.protobuf.JmashFilePage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(jmash.file.protobuf.JmashFilePage other) { if (other == jmash.file.protobuf.JmashFilePage.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultsIsMutable(); results_.addAll(other.results_); } onChanged(); } } else { if (!other.results_.isEmpty()) { if (resultsBuilder_.isEmpty()) { resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } } } if (other.getCurPage() != 0) { setCurPage(other.getCurPage()); } if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } if (other.getTotalSize() != 0) { setTotalSize(other.getTotalSize()); } if (other.hasSubTotalDto()) { mergeSubTotalDto(other.getSubTotalDto()); } if (other.hasTotalDto()) { mergeTotalDto(other.getTotalDto()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { jmash.file.protobuf.JmashFileModel m = input.readMessage( jmash.file.protobuf.JmashFileModel.parser(), extensionRegistry); if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(m); } else { resultsBuilder_.addMessage(m); } break; } // case 10 case 16: { curPage_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { pageSize_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { totalSize_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage( getSubTotalDtoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getTotalDtoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< jmash.file.protobuf.JmashFileModel, jmash.file.protobuf.JmashFileModel.Builder, jmash.file.protobuf.JmashFileModelOrBuilder> resultsBuilder_; /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { return resultsBuilder_.getMessageList(); } } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { return results_.size(); } else { return resultsBuilder_.getCount(); } } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public jmash.file.protobuf.JmashFileModel getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessage(index); } } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public Builder setResults( int index, jmash.file.protobuf.JmashFileModel value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.set(index, value); onChanged(); } else { resultsBuilder_.setMessage(index, value); } return this; } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public Builder setResults( int index, jmash.file.protobuf.JmashFileModel.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public Builder addResults(jmash.file.protobuf.JmashFileModel value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(value); onChanged(); } else { resultsBuilder_.addMessage(value); } return this; } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public Builder addResults( int index, jmash.file.protobuf.JmashFileModel value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(index, value); onChanged(); } else { resultsBuilder_.addMessage(index, value); } return this; } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public Builder addResults( jmash.file.protobuf.JmashFileModel.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public Builder addResults( int index, jmash.file.protobuf.JmashFileModel.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public Builder addAllResults( java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); } return this; } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resultsBuilder_.clear(); } return this; } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.remove(index); onChanged(); } else { resultsBuilder_.remove(index); } return this; } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public jmash.file.protobuf.JmashFileModel.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public jmash.file.protobuf.JmashFileModelOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(results_); } } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public jmash.file.protobuf.JmashFileModel.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( jmash.file.protobuf.JmashFileModel.getDefaultInstance()); } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public jmash.file.protobuf.JmashFileModel.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( index, jmash.file.protobuf.JmashFileModel.getDefaultInstance()); } /** *
     *当前页内容
     * 
* * repeated .jmash.file.JmashFileModel results = 1; */ public java.util.List getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< jmash.file.protobuf.JmashFileModel, jmash.file.protobuf.JmashFileModel.Builder, jmash.file.protobuf.JmashFileModelOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< jmash.file.protobuf.JmashFileModel, jmash.file.protobuf.JmashFileModel.Builder, jmash.file.protobuf.JmashFileModelOrBuilder>( results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } private int curPage_ ; /** *
     *当前页码
     * 
* * int32 cur_page = 2; * @return The curPage. */ @java.lang.Override public int getCurPage() { return curPage_; } /** *
     *当前页码
     * 
* * int32 cur_page = 2; * @param value The curPage to set. * @return This builder for chaining. */ public Builder setCurPage(int value) { curPage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *当前页码
     * 
* * int32 cur_page = 2; * @return This builder for chaining. */ public Builder clearCurPage() { bitField0_ = (bitField0_ & ~0x00000002); curPage_ = 0; onChanged(); return this; } private int pageSize_ ; /** *
     *页尺寸
     * 
* * int32 page_size = 3; * @return The pageSize. */ @java.lang.Override public int getPageSize() { return pageSize_; } /** *
     *页尺寸
     * 
* * int32 page_size = 3; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { pageSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *页尺寸
     * 
* * int32 page_size = 3; * @return This builder for chaining. */ public Builder clearPageSize() { bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; } private int totalSize_ ; /** *
     *总记录数
     * 
* * int32 total_size = 4; * @return The totalSize. */ @java.lang.Override public int getTotalSize() { return totalSize_; } /** *
     *总记录数
     * 
* * int32 total_size = 4; * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { totalSize_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *总记录数
     * 
* * int32 total_size = 4; * @return This builder for chaining. */ public Builder clearTotalSize() { bitField0_ = (bitField0_ & ~0x00000008); totalSize_ = 0; onChanged(); return this; } private jmash.file.protobuf.JmashFileModelTotal subTotalDto_; private com.google.protobuf.SingleFieldBuilderV3< jmash.file.protobuf.JmashFileModelTotal, jmash.file.protobuf.JmashFileModelTotal.Builder, jmash.file.protobuf.JmashFileModelTotalOrBuilder> subTotalDtoBuilder_; /** *
     *本页小计
     * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; * @return Whether the subTotalDto field is set. */ public boolean hasSubTotalDto() { return ((bitField0_ & 0x00000010) != 0); } /** *
     *本页小计
     * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; * @return The subTotalDto. */ public jmash.file.protobuf.JmashFileModelTotal getSubTotalDto() { if (subTotalDtoBuilder_ == null) { return subTotalDto_ == null ? jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance() : subTotalDto_; } else { return subTotalDtoBuilder_.getMessage(); } } /** *
     *本页小计
     * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; */ public Builder setSubTotalDto(jmash.file.protobuf.JmashFileModelTotal value) { if (subTotalDtoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subTotalDto_ = value; } else { subTotalDtoBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *本页小计
     * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; */ public Builder setSubTotalDto( jmash.file.protobuf.JmashFileModelTotal.Builder builderForValue) { if (subTotalDtoBuilder_ == null) { subTotalDto_ = builderForValue.build(); } else { subTotalDtoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *本页小计
     * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; */ public Builder mergeSubTotalDto(jmash.file.protobuf.JmashFileModelTotal value) { if (subTotalDtoBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && subTotalDto_ != null && subTotalDto_ != jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance()) { getSubTotalDtoBuilder().mergeFrom(value); } else { subTotalDto_ = value; } } else { subTotalDtoBuilder_.mergeFrom(value); } if (subTotalDto_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     *本页小计
     * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; */ public Builder clearSubTotalDto() { bitField0_ = (bitField0_ & ~0x00000010); subTotalDto_ = null; if (subTotalDtoBuilder_ != null) { subTotalDtoBuilder_.dispose(); subTotalDtoBuilder_ = null; } onChanged(); return this; } /** *
     *本页小计
     * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; */ public jmash.file.protobuf.JmashFileModelTotal.Builder getSubTotalDtoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSubTotalDtoFieldBuilder().getBuilder(); } /** *
     *本页小计
     * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; */ public jmash.file.protobuf.JmashFileModelTotalOrBuilder getSubTotalDtoOrBuilder() { if (subTotalDtoBuilder_ != null) { return subTotalDtoBuilder_.getMessageOrBuilder(); } else { return subTotalDto_ == null ? jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance() : subTotalDto_; } } /** *
     *本页小计
     * 
* * .jmash.file.JmashFileModelTotal sub_total_dto = 5; */ private com.google.protobuf.SingleFieldBuilderV3< jmash.file.protobuf.JmashFileModelTotal, jmash.file.protobuf.JmashFileModelTotal.Builder, jmash.file.protobuf.JmashFileModelTotalOrBuilder> getSubTotalDtoFieldBuilder() { if (subTotalDtoBuilder_ == null) { subTotalDtoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< jmash.file.protobuf.JmashFileModelTotal, jmash.file.protobuf.JmashFileModelTotal.Builder, jmash.file.protobuf.JmashFileModelTotalOrBuilder>( getSubTotalDto(), getParentForChildren(), isClean()); subTotalDto_ = null; } return subTotalDtoBuilder_; } private jmash.file.protobuf.JmashFileModelTotal totalDto_; private com.google.protobuf.SingleFieldBuilderV3< jmash.file.protobuf.JmashFileModelTotal, jmash.file.protobuf.JmashFileModelTotal.Builder, jmash.file.protobuf.JmashFileModelTotalOrBuilder> totalDtoBuilder_; /** *
     *合计
     * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; * @return Whether the totalDto field is set. */ public boolean hasTotalDto() { return ((bitField0_ & 0x00000020) != 0); } /** *
     *合计
     * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; * @return The totalDto. */ public jmash.file.protobuf.JmashFileModelTotal getTotalDto() { if (totalDtoBuilder_ == null) { return totalDto_ == null ? jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance() : totalDto_; } else { return totalDtoBuilder_.getMessage(); } } /** *
     *合计
     * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; */ public Builder setTotalDto(jmash.file.protobuf.JmashFileModelTotal value) { if (totalDtoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalDto_ = value; } else { totalDtoBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *合计
     * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; */ public Builder setTotalDto( jmash.file.protobuf.JmashFileModelTotal.Builder builderForValue) { if (totalDtoBuilder_ == null) { totalDto_ = builderForValue.build(); } else { totalDtoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *合计
     * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; */ public Builder mergeTotalDto(jmash.file.protobuf.JmashFileModelTotal value) { if (totalDtoBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && totalDto_ != null && totalDto_ != jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance()) { getTotalDtoBuilder().mergeFrom(value); } else { totalDto_ = value; } } else { totalDtoBuilder_.mergeFrom(value); } if (totalDto_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     *合计
     * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; */ public Builder clearTotalDto() { bitField0_ = (bitField0_ & ~0x00000020); totalDto_ = null; if (totalDtoBuilder_ != null) { totalDtoBuilder_.dispose(); totalDtoBuilder_ = null; } onChanged(); return this; } /** *
     *合计
     * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; */ public jmash.file.protobuf.JmashFileModelTotal.Builder getTotalDtoBuilder() { bitField0_ |= 0x00000020; onChanged(); return getTotalDtoFieldBuilder().getBuilder(); } /** *
     *合计
     * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; */ public jmash.file.protobuf.JmashFileModelTotalOrBuilder getTotalDtoOrBuilder() { if (totalDtoBuilder_ != null) { return totalDtoBuilder_.getMessageOrBuilder(); } else { return totalDto_ == null ? jmash.file.protobuf.JmashFileModelTotal.getDefaultInstance() : totalDto_; } } /** *
     *合计
     * 
* * .jmash.file.JmashFileModelTotal total_dto = 6; */ private com.google.protobuf.SingleFieldBuilderV3< jmash.file.protobuf.JmashFileModelTotal, jmash.file.protobuf.JmashFileModelTotal.Builder, jmash.file.protobuf.JmashFileModelTotalOrBuilder> getTotalDtoFieldBuilder() { if (totalDtoBuilder_ == null) { totalDtoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< jmash.file.protobuf.JmashFileModelTotal, jmash.file.protobuf.JmashFileModelTotal.Builder, jmash.file.protobuf.JmashFileModelTotalOrBuilder>( getTotalDto(), getParentForChildren(), isClean()); totalDto_ = null; } return totalDtoBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:jmash.file.JmashFilePage) } // @@protoc_insertion_point(class_scope:jmash.file.JmashFilePage) private static final jmash.file.protobuf.JmashFilePage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new jmash.file.protobuf.JmashFilePage(); } public static jmash.file.protobuf.JmashFilePage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JmashFilePage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public jmash.file.protobuf.JmashFilePage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy