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

sawtooth.sdk.protobuf.ClientBatchListRequest Maven / Gradle / Ivy

Go to download

"Java classes generated from Sawtooth proto definition files, to interact with the component, consensus, and other validator interfaces"

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

package sawtooth.sdk.protobuf;

/**
 * 
 * A request to return a list of batches from the validator. May include the id
 * of a particular block to be the `head` of the chain being requested. In that
 * case the list will include the batches from that block, and all batches
 * previous to that block on the chain. Filter with specific `batch_ids`.
 * 
* * Protobuf type {@code ClientBatchListRequest} */ public final class ClientBatchListRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ClientBatchListRequest) ClientBatchListRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ClientBatchListRequest.newBuilder() to construct. private ClientBatchListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientBatchListRequest() { headId_ = ""; batchIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; sorting_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClientBatchListRequest( 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; case 10: { java.lang.String s = input.readStringRequireUtf8(); headId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { batchIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } batchIds_.add(s); break; } case 26: { sawtooth.sdk.protobuf.ClientPagingControls.Builder subBuilder = null; if (paging_ != null) { subBuilder = paging_.toBuilder(); } paging_ = input.readMessage(sawtooth.sdk.protobuf.ClientPagingControls.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(paging_); paging_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { sorting_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } sorting_.add( input.readMessage(sawtooth.sdk.protobuf.ClientSortControls.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } 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_ & 0x00000002) == 0x00000002)) { batchIds_ = batchIds_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { sorting_ = java.util.Collections.unmodifiableList(sorting_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return sawtooth.sdk.protobuf.ClientBatch.internal_static_ClientBatchListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return sawtooth.sdk.protobuf.ClientBatch.internal_static_ClientBatchListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( sawtooth.sdk.protobuf.ClientBatchListRequest.class, sawtooth.sdk.protobuf.ClientBatchListRequest.Builder.class); } private int bitField0_; public static final int HEAD_ID_FIELD_NUMBER = 1; private volatile java.lang.Object headId_; /** * string head_id = 1; */ public java.lang.String getHeadId() { java.lang.Object ref = headId_; 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(); headId_ = s; return s; } } /** * string head_id = 1; */ public com.google.protobuf.ByteString getHeadIdBytes() { java.lang.Object ref = headId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BATCH_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList batchIds_; /** * repeated string batch_ids = 2; */ public com.google.protobuf.ProtocolStringList getBatchIdsList() { return batchIds_; } /** * repeated string batch_ids = 2; */ public int getBatchIdsCount() { return batchIds_.size(); } /** * repeated string batch_ids = 2; */ public java.lang.String getBatchIds(int index) { return batchIds_.get(index); } /** * repeated string batch_ids = 2; */ public com.google.protobuf.ByteString getBatchIdsBytes(int index) { return batchIds_.getByteString(index); } public static final int PAGING_FIELD_NUMBER = 3; private sawtooth.sdk.protobuf.ClientPagingControls paging_; /** * .ClientPagingControls paging = 3; */ public boolean hasPaging() { return paging_ != null; } /** * .ClientPagingControls paging = 3; */ public sawtooth.sdk.protobuf.ClientPagingControls getPaging() { return paging_ == null ? sawtooth.sdk.protobuf.ClientPagingControls.getDefaultInstance() : paging_; } /** * .ClientPagingControls paging = 3; */ public sawtooth.sdk.protobuf.ClientPagingControlsOrBuilder getPagingOrBuilder() { return getPaging(); } public static final int SORTING_FIELD_NUMBER = 4; private java.util.List sorting_; /** * repeated .ClientSortControls sorting = 4; */ public java.util.List getSortingList() { return sorting_; } /** * repeated .ClientSortControls sorting = 4; */ public java.util.List getSortingOrBuilderList() { return sorting_; } /** * repeated .ClientSortControls sorting = 4; */ public int getSortingCount() { return sorting_.size(); } /** * repeated .ClientSortControls sorting = 4; */ public sawtooth.sdk.protobuf.ClientSortControls getSorting(int index) { return sorting_.get(index); } /** * repeated .ClientSortControls sorting = 4; */ public sawtooth.sdk.protobuf.ClientSortControlsOrBuilder getSortingOrBuilder( int index) { return sorting_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getHeadIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, headId_); } for (int i = 0; i < batchIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, batchIds_.getRaw(i)); } if (paging_ != null) { output.writeMessage(3, getPaging()); } for (int i = 0; i < sorting_.size(); i++) { output.writeMessage(4, sorting_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getHeadIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, headId_); } { int dataSize = 0; for (int i = 0; i < batchIds_.size(); i++) { dataSize += computeStringSizeNoTag(batchIds_.getRaw(i)); } size += dataSize; size += 1 * getBatchIdsList().size(); } if (paging_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPaging()); } for (int i = 0; i < sorting_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, sorting_.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 sawtooth.sdk.protobuf.ClientBatchListRequest)) { return super.equals(obj); } sawtooth.sdk.protobuf.ClientBatchListRequest other = (sawtooth.sdk.protobuf.ClientBatchListRequest) obj; boolean result = true; result = result && getHeadId() .equals(other.getHeadId()); result = result && getBatchIdsList() .equals(other.getBatchIdsList()); result = result && (hasPaging() == other.hasPaging()); if (hasPaging()) { result = result && getPaging() .equals(other.getPaging()); } result = result && getSortingList() .equals(other.getSortingList()); 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) + HEAD_ID_FIELD_NUMBER; hash = (53 * hash) + getHeadId().hashCode(); if (getBatchIdsCount() > 0) { hash = (37 * hash) + BATCH_IDS_FIELD_NUMBER; hash = (53 * hash) + getBatchIdsList().hashCode(); } if (hasPaging()) { hash = (37 * hash) + PAGING_FIELD_NUMBER; hash = (53 * hash) + getPaging().hashCode(); } if (getSortingCount() > 0) { hash = (37 * hash) + SORTING_FIELD_NUMBER; hash = (53 * hash) + getSortingList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static sawtooth.sdk.protobuf.ClientBatchListRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static sawtooth.sdk.protobuf.ClientBatchListRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static sawtooth.sdk.protobuf.ClientBatchListRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static sawtooth.sdk.protobuf.ClientBatchListRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static sawtooth.sdk.protobuf.ClientBatchListRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static sawtooth.sdk.protobuf.ClientBatchListRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static sawtooth.sdk.protobuf.ClientBatchListRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static sawtooth.sdk.protobuf.ClientBatchListRequest 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 sawtooth.sdk.protobuf.ClientBatchListRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static sawtooth.sdk.protobuf.ClientBatchListRequest 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 sawtooth.sdk.protobuf.ClientBatchListRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static sawtooth.sdk.protobuf.ClientBatchListRequest 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(sawtooth.sdk.protobuf.ClientBatchListRequest 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; } /** *
   * A request to return a list of batches from the validator. May include the id
   * of a particular block to be the `head` of the chain being requested. In that
   * case the list will include the batches from that block, and all batches
   * previous to that block on the chain. Filter with specific `batch_ids`.
   * 
* * Protobuf type {@code ClientBatchListRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ClientBatchListRequest) sawtooth.sdk.protobuf.ClientBatchListRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return sawtooth.sdk.protobuf.ClientBatch.internal_static_ClientBatchListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return sawtooth.sdk.protobuf.ClientBatch.internal_static_ClientBatchListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( sawtooth.sdk.protobuf.ClientBatchListRequest.class, sawtooth.sdk.protobuf.ClientBatchListRequest.Builder.class); } // Construct using sawtooth.sdk.protobuf.ClientBatchListRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSortingFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); headId_ = ""; batchIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (pagingBuilder_ == null) { paging_ = null; } else { paging_ = null; pagingBuilder_ = null; } if (sortingBuilder_ == null) { sorting_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { sortingBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return sawtooth.sdk.protobuf.ClientBatch.internal_static_ClientBatchListRequest_descriptor; } @java.lang.Override public sawtooth.sdk.protobuf.ClientBatchListRequest getDefaultInstanceForType() { return sawtooth.sdk.protobuf.ClientBatchListRequest.getDefaultInstance(); } @java.lang.Override public sawtooth.sdk.protobuf.ClientBatchListRequest build() { sawtooth.sdk.protobuf.ClientBatchListRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public sawtooth.sdk.protobuf.ClientBatchListRequest buildPartial() { sawtooth.sdk.protobuf.ClientBatchListRequest result = new sawtooth.sdk.protobuf.ClientBatchListRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.headId_ = headId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { batchIds_ = batchIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.batchIds_ = batchIds_; if (pagingBuilder_ == null) { result.paging_ = paging_; } else { result.paging_ = pagingBuilder_.build(); } if (sortingBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { sorting_ = java.util.Collections.unmodifiableList(sorting_); bitField0_ = (bitField0_ & ~0x00000008); } result.sorting_ = sorting_; } else { result.sorting_ = sortingBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof sawtooth.sdk.protobuf.ClientBatchListRequest) { return mergeFrom((sawtooth.sdk.protobuf.ClientBatchListRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(sawtooth.sdk.protobuf.ClientBatchListRequest other) { if (other == sawtooth.sdk.protobuf.ClientBatchListRequest.getDefaultInstance()) return this; if (!other.getHeadId().isEmpty()) { headId_ = other.headId_; onChanged(); } if (!other.batchIds_.isEmpty()) { if (batchIds_.isEmpty()) { batchIds_ = other.batchIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBatchIdsIsMutable(); batchIds_.addAll(other.batchIds_); } onChanged(); } if (other.hasPaging()) { mergePaging(other.getPaging()); } if (sortingBuilder_ == null) { if (!other.sorting_.isEmpty()) { if (sorting_.isEmpty()) { sorting_ = other.sorting_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSortingIsMutable(); sorting_.addAll(other.sorting_); } onChanged(); } } else { if (!other.sorting_.isEmpty()) { if (sortingBuilder_.isEmpty()) { sortingBuilder_.dispose(); sortingBuilder_ = null; sorting_ = other.sorting_; bitField0_ = (bitField0_ & ~0x00000008); sortingBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSortingFieldBuilder() : null; } else { sortingBuilder_.addAllMessages(other.sorting_); } } } this.mergeUnknownFields(other.unknownFields); 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 { sawtooth.sdk.protobuf.ClientBatchListRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (sawtooth.sdk.protobuf.ClientBatchListRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object headId_ = ""; /** * string head_id = 1; */ public java.lang.String getHeadId() { java.lang.Object ref = headId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string head_id = 1; */ public com.google.protobuf.ByteString getHeadIdBytes() { java.lang.Object ref = headId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string head_id = 1; */ public Builder setHeadId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headId_ = value; onChanged(); return this; } /** * string head_id = 1; */ public Builder clearHeadId() { headId_ = getDefaultInstance().getHeadId(); onChanged(); return this; } /** * string head_id = 1; */ public Builder setHeadIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList batchIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBatchIdsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { batchIds_ = new com.google.protobuf.LazyStringArrayList(batchIds_); bitField0_ |= 0x00000002; } } /** * repeated string batch_ids = 2; */ public com.google.protobuf.ProtocolStringList getBatchIdsList() { return batchIds_.getUnmodifiableView(); } /** * repeated string batch_ids = 2; */ public int getBatchIdsCount() { return batchIds_.size(); } /** * repeated string batch_ids = 2; */ public java.lang.String getBatchIds(int index) { return batchIds_.get(index); } /** * repeated string batch_ids = 2; */ public com.google.protobuf.ByteString getBatchIdsBytes(int index) { return batchIds_.getByteString(index); } /** * repeated string batch_ids = 2; */ public Builder setBatchIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBatchIdsIsMutable(); batchIds_.set(index, value); onChanged(); return this; } /** * repeated string batch_ids = 2; */ public Builder addBatchIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBatchIdsIsMutable(); batchIds_.add(value); onChanged(); return this; } /** * repeated string batch_ids = 2; */ public Builder addAllBatchIds( java.lang.Iterable values) { ensureBatchIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, batchIds_); onChanged(); return this; } /** * repeated string batch_ids = 2; */ public Builder clearBatchIds() { batchIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string batch_ids = 2; */ public Builder addBatchIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBatchIdsIsMutable(); batchIds_.add(value); onChanged(); return this; } private sawtooth.sdk.protobuf.ClientPagingControls paging_ = null; private com.google.protobuf.SingleFieldBuilderV3< sawtooth.sdk.protobuf.ClientPagingControls, sawtooth.sdk.protobuf.ClientPagingControls.Builder, sawtooth.sdk.protobuf.ClientPagingControlsOrBuilder> pagingBuilder_; /** * .ClientPagingControls paging = 3; */ public boolean hasPaging() { return pagingBuilder_ != null || paging_ != null; } /** * .ClientPagingControls paging = 3; */ public sawtooth.sdk.protobuf.ClientPagingControls getPaging() { if (pagingBuilder_ == null) { return paging_ == null ? sawtooth.sdk.protobuf.ClientPagingControls.getDefaultInstance() : paging_; } else { return pagingBuilder_.getMessage(); } } /** * .ClientPagingControls paging = 3; */ public Builder setPaging(sawtooth.sdk.protobuf.ClientPagingControls value) { if (pagingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } paging_ = value; onChanged(); } else { pagingBuilder_.setMessage(value); } return this; } /** * .ClientPagingControls paging = 3; */ public Builder setPaging( sawtooth.sdk.protobuf.ClientPagingControls.Builder builderForValue) { if (pagingBuilder_ == null) { paging_ = builderForValue.build(); onChanged(); } else { pagingBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ClientPagingControls paging = 3; */ public Builder mergePaging(sawtooth.sdk.protobuf.ClientPagingControls value) { if (pagingBuilder_ == null) { if (paging_ != null) { paging_ = sawtooth.sdk.protobuf.ClientPagingControls.newBuilder(paging_).mergeFrom(value).buildPartial(); } else { paging_ = value; } onChanged(); } else { pagingBuilder_.mergeFrom(value); } return this; } /** * .ClientPagingControls paging = 3; */ public Builder clearPaging() { if (pagingBuilder_ == null) { paging_ = null; onChanged(); } else { paging_ = null; pagingBuilder_ = null; } return this; } /** * .ClientPagingControls paging = 3; */ public sawtooth.sdk.protobuf.ClientPagingControls.Builder getPagingBuilder() { onChanged(); return getPagingFieldBuilder().getBuilder(); } /** * .ClientPagingControls paging = 3; */ public sawtooth.sdk.protobuf.ClientPagingControlsOrBuilder getPagingOrBuilder() { if (pagingBuilder_ != null) { return pagingBuilder_.getMessageOrBuilder(); } else { return paging_ == null ? sawtooth.sdk.protobuf.ClientPagingControls.getDefaultInstance() : paging_; } } /** * .ClientPagingControls paging = 3; */ private com.google.protobuf.SingleFieldBuilderV3< sawtooth.sdk.protobuf.ClientPagingControls, sawtooth.sdk.protobuf.ClientPagingControls.Builder, sawtooth.sdk.protobuf.ClientPagingControlsOrBuilder> getPagingFieldBuilder() { if (pagingBuilder_ == null) { pagingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< sawtooth.sdk.protobuf.ClientPagingControls, sawtooth.sdk.protobuf.ClientPagingControls.Builder, sawtooth.sdk.protobuf.ClientPagingControlsOrBuilder>( getPaging(), getParentForChildren(), isClean()); paging_ = null; } return pagingBuilder_; } private java.util.List sorting_ = java.util.Collections.emptyList(); private void ensureSortingIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { sorting_ = new java.util.ArrayList(sorting_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< sawtooth.sdk.protobuf.ClientSortControls, sawtooth.sdk.protobuf.ClientSortControls.Builder, sawtooth.sdk.protobuf.ClientSortControlsOrBuilder> sortingBuilder_; /** * repeated .ClientSortControls sorting = 4; */ public java.util.List getSortingList() { if (sortingBuilder_ == null) { return java.util.Collections.unmodifiableList(sorting_); } else { return sortingBuilder_.getMessageList(); } } /** * repeated .ClientSortControls sorting = 4; */ public int getSortingCount() { if (sortingBuilder_ == null) { return sorting_.size(); } else { return sortingBuilder_.getCount(); } } /** * repeated .ClientSortControls sorting = 4; */ public sawtooth.sdk.protobuf.ClientSortControls getSorting(int index) { if (sortingBuilder_ == null) { return sorting_.get(index); } else { return sortingBuilder_.getMessage(index); } } /** * repeated .ClientSortControls sorting = 4; */ public Builder setSorting( int index, sawtooth.sdk.protobuf.ClientSortControls value) { if (sortingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSortingIsMutable(); sorting_.set(index, value); onChanged(); } else { sortingBuilder_.setMessage(index, value); } return this; } /** * repeated .ClientSortControls sorting = 4; */ public Builder setSorting( int index, sawtooth.sdk.protobuf.ClientSortControls.Builder builderForValue) { if (sortingBuilder_ == null) { ensureSortingIsMutable(); sorting_.set(index, builderForValue.build()); onChanged(); } else { sortingBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ClientSortControls sorting = 4; */ public Builder addSorting(sawtooth.sdk.protobuf.ClientSortControls value) { if (sortingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSortingIsMutable(); sorting_.add(value); onChanged(); } else { sortingBuilder_.addMessage(value); } return this; } /** * repeated .ClientSortControls sorting = 4; */ public Builder addSorting( int index, sawtooth.sdk.protobuf.ClientSortControls value) { if (sortingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSortingIsMutable(); sorting_.add(index, value); onChanged(); } else { sortingBuilder_.addMessage(index, value); } return this; } /** * repeated .ClientSortControls sorting = 4; */ public Builder addSorting( sawtooth.sdk.protobuf.ClientSortControls.Builder builderForValue) { if (sortingBuilder_ == null) { ensureSortingIsMutable(); sorting_.add(builderForValue.build()); onChanged(); } else { sortingBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ClientSortControls sorting = 4; */ public Builder addSorting( int index, sawtooth.sdk.protobuf.ClientSortControls.Builder builderForValue) { if (sortingBuilder_ == null) { ensureSortingIsMutable(); sorting_.add(index, builderForValue.build()); onChanged(); } else { sortingBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ClientSortControls sorting = 4; */ public Builder addAllSorting( java.lang.Iterable values) { if (sortingBuilder_ == null) { ensureSortingIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sorting_); onChanged(); } else { sortingBuilder_.addAllMessages(values); } return this; } /** * repeated .ClientSortControls sorting = 4; */ public Builder clearSorting() { if (sortingBuilder_ == null) { sorting_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { sortingBuilder_.clear(); } return this; } /** * repeated .ClientSortControls sorting = 4; */ public Builder removeSorting(int index) { if (sortingBuilder_ == null) { ensureSortingIsMutable(); sorting_.remove(index); onChanged(); } else { sortingBuilder_.remove(index); } return this; } /** * repeated .ClientSortControls sorting = 4; */ public sawtooth.sdk.protobuf.ClientSortControls.Builder getSortingBuilder( int index) { return getSortingFieldBuilder().getBuilder(index); } /** * repeated .ClientSortControls sorting = 4; */ public sawtooth.sdk.protobuf.ClientSortControlsOrBuilder getSortingOrBuilder( int index) { if (sortingBuilder_ == null) { return sorting_.get(index); } else { return sortingBuilder_.getMessageOrBuilder(index); } } /** * repeated .ClientSortControls sorting = 4; */ public java.util.List getSortingOrBuilderList() { if (sortingBuilder_ != null) { return sortingBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sorting_); } } /** * repeated .ClientSortControls sorting = 4; */ public sawtooth.sdk.protobuf.ClientSortControls.Builder addSortingBuilder() { return getSortingFieldBuilder().addBuilder( sawtooth.sdk.protobuf.ClientSortControls.getDefaultInstance()); } /** * repeated .ClientSortControls sorting = 4; */ public sawtooth.sdk.protobuf.ClientSortControls.Builder addSortingBuilder( int index) { return getSortingFieldBuilder().addBuilder( index, sawtooth.sdk.protobuf.ClientSortControls.getDefaultInstance()); } /** * repeated .ClientSortControls sorting = 4; */ public java.util.List getSortingBuilderList() { return getSortingFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< sawtooth.sdk.protobuf.ClientSortControls, sawtooth.sdk.protobuf.ClientSortControls.Builder, sawtooth.sdk.protobuf.ClientSortControlsOrBuilder> getSortingFieldBuilder() { if (sortingBuilder_ == null) { sortingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< sawtooth.sdk.protobuf.ClientSortControls, sawtooth.sdk.protobuf.ClientSortControls.Builder, sawtooth.sdk.protobuf.ClientSortControlsOrBuilder>( sorting_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); sorting_ = null; } return sortingBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ClientBatchListRequest) } // @@protoc_insertion_point(class_scope:ClientBatchListRequest) private static final sawtooth.sdk.protobuf.ClientBatchListRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new sawtooth.sdk.protobuf.ClientBatchListRequest(); } public static sawtooth.sdk.protobuf.ClientBatchListRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientBatchListRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClientBatchListRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public sawtooth.sdk.protobuf.ClientBatchListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy