sawtooth.sdk.protobuf.ClientStateListRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sawtooth-sdk-protos Show documentation
Show all versions of sawtooth-sdk-protos Show documentation
"Java classes generated from Sawtooth proto definition files, to interact with the component, consensus, and other validator interfaces"
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: client_state.proto
package sawtooth.sdk.protobuf;
/**
*
* A request to list every entry in global state. Defaults to the most current
* tree, but can fetch older state by specifying a state root. Results can be
* further filtered by specifying a subtree with a partial address.
*
*
* Protobuf type {@code ClientStateListRequest}
*/
public final class ClientStateListRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ClientStateListRequest)
ClientStateListRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientStateListRequest.newBuilder() to construct.
private ClientStateListRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientStateListRequest() {
stateRoot_ = "";
address_ = "";
sorting_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientStateListRequest(
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();
stateRoot_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 34: {
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 42: {
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_ & 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.ClientState.internal_static_ClientStateListRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return sawtooth.sdk.protobuf.ClientState.internal_static_ClientStateListRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
sawtooth.sdk.protobuf.ClientStateListRequest.class, sawtooth.sdk.protobuf.ClientStateListRequest.Builder.class);
}
private int bitField0_;
public static final int STATE_ROOT_FIELD_NUMBER = 1;
private volatile java.lang.Object stateRoot_;
/**
* string state_root = 1;
*/
public java.lang.String getStateRoot() {
java.lang.Object ref = stateRoot_;
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();
stateRoot_ = s;
return s;
}
}
/**
* string state_root = 1;
*/
public com.google.protobuf.ByteString
getStateRootBytes() {
java.lang.Object ref = stateRoot_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stateRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private volatile java.lang.Object address_;
/**
* string address = 3;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
* string address = 3;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGING_FIELD_NUMBER = 4;
private sawtooth.sdk.protobuf.ClientPagingControls paging_;
/**
* .ClientPagingControls paging = 4;
*/
public boolean hasPaging() {
return paging_ != null;
}
/**
* .ClientPagingControls paging = 4;
*/
public sawtooth.sdk.protobuf.ClientPagingControls getPaging() {
return paging_ == null ? sawtooth.sdk.protobuf.ClientPagingControls.getDefaultInstance() : paging_;
}
/**
* .ClientPagingControls paging = 4;
*/
public sawtooth.sdk.protobuf.ClientPagingControlsOrBuilder getPagingOrBuilder() {
return getPaging();
}
public static final int SORTING_FIELD_NUMBER = 5;
private java.util.List sorting_;
/**
* repeated .ClientSortControls sorting = 5;
*/
public java.util.List getSortingList() {
return sorting_;
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public java.util.List extends sawtooth.sdk.protobuf.ClientSortControlsOrBuilder>
getSortingOrBuilderList() {
return sorting_;
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public int getSortingCount() {
return sorting_.size();
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public sawtooth.sdk.protobuf.ClientSortControls getSorting(int index) {
return sorting_.get(index);
}
/**
* repeated .ClientSortControls sorting = 5;
*/
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 (!getStateRootBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stateRoot_);
}
if (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, address_);
}
if (paging_ != null) {
output.writeMessage(4, getPaging());
}
for (int i = 0; i < sorting_.size(); i++) {
output.writeMessage(5, sorting_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getStateRootBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stateRoot_);
}
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, address_);
}
if (paging_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPaging());
}
for (int i = 0; i < sorting_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, 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.ClientStateListRequest)) {
return super.equals(obj);
}
sawtooth.sdk.protobuf.ClientStateListRequest other = (sawtooth.sdk.protobuf.ClientStateListRequest) obj;
boolean result = true;
result = result && getStateRoot()
.equals(other.getStateRoot());
result = result && getAddress()
.equals(other.getAddress());
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) + STATE_ROOT_FIELD_NUMBER;
hash = (53 * hash) + getStateRoot().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().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.ClientStateListRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static sawtooth.sdk.protobuf.ClientStateListRequest 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.ClientStateListRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static sawtooth.sdk.protobuf.ClientStateListRequest 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.ClientStateListRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static sawtooth.sdk.protobuf.ClientStateListRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static sawtooth.sdk.protobuf.ClientStateListRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static sawtooth.sdk.protobuf.ClientStateListRequest 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.ClientStateListRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static sawtooth.sdk.protobuf.ClientStateListRequest 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.ClientStateListRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static sawtooth.sdk.protobuf.ClientStateListRequest 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.ClientStateListRequest 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 list every entry in global state. Defaults to the most current
* tree, but can fetch older state by specifying a state root. Results can be
* further filtered by specifying a subtree with a partial address.
*
*
* Protobuf type {@code ClientStateListRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ClientStateListRequest)
sawtooth.sdk.protobuf.ClientStateListRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return sawtooth.sdk.protobuf.ClientState.internal_static_ClientStateListRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return sawtooth.sdk.protobuf.ClientState.internal_static_ClientStateListRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
sawtooth.sdk.protobuf.ClientStateListRequest.class, sawtooth.sdk.protobuf.ClientStateListRequest.Builder.class);
}
// Construct using sawtooth.sdk.protobuf.ClientStateListRequest.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();
stateRoot_ = "";
address_ = "";
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.ClientState.internal_static_ClientStateListRequest_descriptor;
}
@java.lang.Override
public sawtooth.sdk.protobuf.ClientStateListRequest getDefaultInstanceForType() {
return sawtooth.sdk.protobuf.ClientStateListRequest.getDefaultInstance();
}
@java.lang.Override
public sawtooth.sdk.protobuf.ClientStateListRequest build() {
sawtooth.sdk.protobuf.ClientStateListRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public sawtooth.sdk.protobuf.ClientStateListRequest buildPartial() {
sawtooth.sdk.protobuf.ClientStateListRequest result = new sawtooth.sdk.protobuf.ClientStateListRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.stateRoot_ = stateRoot_;
result.address_ = address_;
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.ClientStateListRequest) {
return mergeFrom((sawtooth.sdk.protobuf.ClientStateListRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(sawtooth.sdk.protobuf.ClientStateListRequest other) {
if (other == sawtooth.sdk.protobuf.ClientStateListRequest.getDefaultInstance()) return this;
if (!other.getStateRoot().isEmpty()) {
stateRoot_ = other.stateRoot_;
onChanged();
}
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
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.ClientStateListRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (sawtooth.sdk.protobuf.ClientStateListRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object stateRoot_ = "";
/**
* string state_root = 1;
*/
public java.lang.String getStateRoot() {
java.lang.Object ref = stateRoot_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stateRoot_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string state_root = 1;
*/
public com.google.protobuf.ByteString
getStateRootBytes() {
java.lang.Object ref = stateRoot_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stateRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string state_root = 1;
*/
public Builder setStateRoot(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stateRoot_ = value;
onChanged();
return this;
}
/**
* string state_root = 1;
*/
public Builder clearStateRoot() {
stateRoot_ = getDefaultInstance().getStateRoot();
onChanged();
return this;
}
/**
* string state_root = 1;
*/
public Builder setStateRootBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stateRoot_ = value;
onChanged();
return this;
}
private java.lang.Object address_ = "";
/**
* string address = 3;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 3;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 3;
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 3;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 3;
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = 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 = 4;
*/
public boolean hasPaging() {
return pagingBuilder_ != null || paging_ != null;
}
/**
* .ClientPagingControls paging = 4;
*/
public sawtooth.sdk.protobuf.ClientPagingControls getPaging() {
if (pagingBuilder_ == null) {
return paging_ == null ? sawtooth.sdk.protobuf.ClientPagingControls.getDefaultInstance() : paging_;
} else {
return pagingBuilder_.getMessage();
}
}
/**
* .ClientPagingControls paging = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
public Builder clearPaging() {
if (pagingBuilder_ == null) {
paging_ = null;
onChanged();
} else {
paging_ = null;
pagingBuilder_ = null;
}
return this;
}
/**
* .ClientPagingControls paging = 4;
*/
public sawtooth.sdk.protobuf.ClientPagingControls.Builder getPagingBuilder() {
onChanged();
return getPagingFieldBuilder().getBuilder();
}
/**
* .ClientPagingControls paging = 4;
*/
public sawtooth.sdk.protobuf.ClientPagingControlsOrBuilder getPagingOrBuilder() {
if (pagingBuilder_ != null) {
return pagingBuilder_.getMessageOrBuilder();
} else {
return paging_ == null ?
sawtooth.sdk.protobuf.ClientPagingControls.getDefaultInstance() : paging_;
}
}
/**
* .ClientPagingControls paging = 4;
*/
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 = 5;
*/
public java.util.List getSortingList() {
if (sortingBuilder_ == null) {
return java.util.Collections.unmodifiableList(sorting_);
} else {
return sortingBuilder_.getMessageList();
}
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public int getSortingCount() {
if (sortingBuilder_ == null) {
return sorting_.size();
} else {
return sortingBuilder_.getCount();
}
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public sawtooth.sdk.protobuf.ClientSortControls getSorting(int index) {
if (sortingBuilder_ == null) {
return sorting_.get(index);
} else {
return sortingBuilder_.getMessage(index);
}
}
/**
* repeated .ClientSortControls sorting = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
public Builder addAllSorting(
java.lang.Iterable extends sawtooth.sdk.protobuf.ClientSortControls> values) {
if (sortingBuilder_ == null) {
ensureSortingIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sorting_);
onChanged();
} else {
sortingBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public Builder clearSorting() {
if (sortingBuilder_ == null) {
sorting_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
sortingBuilder_.clear();
}
return this;
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public Builder removeSorting(int index) {
if (sortingBuilder_ == null) {
ensureSortingIsMutable();
sorting_.remove(index);
onChanged();
} else {
sortingBuilder_.remove(index);
}
return this;
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public sawtooth.sdk.protobuf.ClientSortControls.Builder getSortingBuilder(
int index) {
return getSortingFieldBuilder().getBuilder(index);
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public sawtooth.sdk.protobuf.ClientSortControlsOrBuilder getSortingOrBuilder(
int index) {
if (sortingBuilder_ == null) {
return sorting_.get(index); } else {
return sortingBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public java.util.List extends sawtooth.sdk.protobuf.ClientSortControlsOrBuilder>
getSortingOrBuilderList() {
if (sortingBuilder_ != null) {
return sortingBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sorting_);
}
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public sawtooth.sdk.protobuf.ClientSortControls.Builder addSortingBuilder() {
return getSortingFieldBuilder().addBuilder(
sawtooth.sdk.protobuf.ClientSortControls.getDefaultInstance());
}
/**
* repeated .ClientSortControls sorting = 5;
*/
public sawtooth.sdk.protobuf.ClientSortControls.Builder addSortingBuilder(
int index) {
return getSortingFieldBuilder().addBuilder(
index, sawtooth.sdk.protobuf.ClientSortControls.getDefaultInstance());
}
/**
* repeated .ClientSortControls sorting = 5;
*/
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:ClientStateListRequest)
}
// @@protoc_insertion_point(class_scope:ClientStateListRequest)
private static final sawtooth.sdk.protobuf.ClientStateListRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new sawtooth.sdk.protobuf.ClientStateListRequest();
}
public static sawtooth.sdk.protobuf.ClientStateListRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientStateListRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientStateListRequest(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.ClientStateListRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}