sawtooth.sdk.protobuf.ClientStateGetResponse 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;
/**
*
* The response to a State Get Request from the client. Sends back just
* the data stored at the entry, not the address. Also sends back the
* head block id used to facilitate further requests.
* Statuses:
* * OK - everything worked as expected
* * INTERNAL_ERROR - general error, such as protobuf failing to deserialize
* * NOT_READY - the validator does not yet have a genesis block
* * NO_ROOT - the state_root specified was not found
* * NO_RESOURCE - the address specified doesn't exist
* * INVALID_ADDRESS - address isn't a valid, i.e. it's a subtree (truncated)
*
*
* Protobuf type {@code ClientStateGetResponse}
*/
public final class ClientStateGetResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ClientStateGetResponse)
ClientStateGetResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientStateGetResponse.newBuilder() to construct.
private ClientStateGetResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientStateGetResponse() {
status_ = 0;
value_ = com.google.protobuf.ByteString.EMPTY;
stateRoot_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientStateGetResponse(
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 8: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 18: {
value_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
stateRoot_ = s;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return sawtooth.sdk.protobuf.ClientState.internal_static_ClientStateGetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return sawtooth.sdk.protobuf.ClientState.internal_static_ClientStateGetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
sawtooth.sdk.protobuf.ClientStateGetResponse.class, sawtooth.sdk.protobuf.ClientStateGetResponse.Builder.class);
}
/**
* Protobuf enum {@code ClientStateGetResponse.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATUS_UNSET = 0;
*/
STATUS_UNSET(0),
/**
* OK = 1;
*/
OK(1),
/**
* INTERNAL_ERROR = 2;
*/
INTERNAL_ERROR(2),
/**
* NOT_READY = 3;
*/
NOT_READY(3),
/**
* NO_ROOT = 4;
*/
NO_ROOT(4),
/**
* NO_RESOURCE = 5;
*/
NO_RESOURCE(5),
/**
* INVALID_ADDRESS = 6;
*/
INVALID_ADDRESS(6),
/**
* INVALID_ROOT = 7;
*/
INVALID_ROOT(7),
UNRECOGNIZED(-1),
;
/**
* STATUS_UNSET = 0;
*/
public static final int STATUS_UNSET_VALUE = 0;
/**
* OK = 1;
*/
public static final int OK_VALUE = 1;
/**
* INTERNAL_ERROR = 2;
*/
public static final int INTERNAL_ERROR_VALUE = 2;
/**
* NOT_READY = 3;
*/
public static final int NOT_READY_VALUE = 3;
/**
* NO_ROOT = 4;
*/
public static final int NO_ROOT_VALUE = 4;
/**
* NO_RESOURCE = 5;
*/
public static final int NO_RESOURCE_VALUE = 5;
/**
* INVALID_ADDRESS = 6;
*/
public static final int INVALID_ADDRESS_VALUE = 6;
/**
* INVALID_ROOT = 7;
*/
public static final int INVALID_ROOT_VALUE = 7;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
public static Status forNumber(int value) {
switch (value) {
case 0: return STATUS_UNSET;
case 1: return OK;
case 2: return INTERNAL_ERROR;
case 3: return NOT_READY;
case 4: return NO_ROOT;
case 5: return NO_RESOURCE;
case 6: return INVALID_ADDRESS;
case 7: return INVALID_ROOT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return sawtooth.sdk.protobuf.ClientStateGetResponse.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ClientStateGetResponse.Status)
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* .ClientStateGetResponse.Status status = 1;
*/
public int getStatusValue() {
return status_;
}
/**
* .ClientStateGetResponse.Status status = 1;
*/
public sawtooth.sdk.protobuf.ClientStateGetResponse.Status getStatus() {
@SuppressWarnings("deprecation")
sawtooth.sdk.protobuf.ClientStateGetResponse.Status result = sawtooth.sdk.protobuf.ClientStateGetResponse.Status.valueOf(status_);
return result == null ? sawtooth.sdk.protobuf.ClientStateGetResponse.Status.UNRECOGNIZED : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int STATE_ROOT_FIELD_NUMBER = 3;
private volatile java.lang.Object stateRoot_;
/**
* string state_root = 3;
*/
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 = 3;
*/
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;
}
}
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 (status_ != sawtooth.sdk.protobuf.ClientStateGetResponse.Status.STATUS_UNSET.getNumber()) {
output.writeEnum(1, status_);
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
if (!getStateRootBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateRoot_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != sawtooth.sdk.protobuf.ClientStateGetResponse.Status.STATUS_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
if (!getStateRootBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stateRoot_);
}
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.ClientStateGetResponse)) {
return super.equals(obj);
}
sawtooth.sdk.protobuf.ClientStateGetResponse other = (sawtooth.sdk.protobuf.ClientStateGetResponse) obj;
boolean result = true;
result = result && status_ == other.status_;
result = result && getValue()
.equals(other.getValue());
result = result && getStateRoot()
.equals(other.getStateRoot());
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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + STATE_ROOT_FIELD_NUMBER;
hash = (53 * hash) + getStateRoot().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static sawtooth.sdk.protobuf.ClientStateGetResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static sawtooth.sdk.protobuf.ClientStateGetResponse 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.ClientStateGetResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static sawtooth.sdk.protobuf.ClientStateGetResponse 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.ClientStateGetResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static sawtooth.sdk.protobuf.ClientStateGetResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static sawtooth.sdk.protobuf.ClientStateGetResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static sawtooth.sdk.protobuf.ClientStateGetResponse 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.ClientStateGetResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static sawtooth.sdk.protobuf.ClientStateGetResponse 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.ClientStateGetResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static sawtooth.sdk.protobuf.ClientStateGetResponse 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.ClientStateGetResponse 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;
}
/**
*
* The response to a State Get Request from the client. Sends back just
* the data stored at the entry, not the address. Also sends back the
* head block id used to facilitate further requests.
* Statuses:
* * OK - everything worked as expected
* * INTERNAL_ERROR - general error, such as protobuf failing to deserialize
* * NOT_READY - the validator does not yet have a genesis block
* * NO_ROOT - the state_root specified was not found
* * NO_RESOURCE - the address specified doesn't exist
* * INVALID_ADDRESS - address isn't a valid, i.e. it's a subtree (truncated)
*
*
* Protobuf type {@code ClientStateGetResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ClientStateGetResponse)
sawtooth.sdk.protobuf.ClientStateGetResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return sawtooth.sdk.protobuf.ClientState.internal_static_ClientStateGetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return sawtooth.sdk.protobuf.ClientState.internal_static_ClientStateGetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
sawtooth.sdk.protobuf.ClientStateGetResponse.class, sawtooth.sdk.protobuf.ClientStateGetResponse.Builder.class);
}
// Construct using sawtooth.sdk.protobuf.ClientStateGetResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
status_ = 0;
value_ = com.google.protobuf.ByteString.EMPTY;
stateRoot_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return sawtooth.sdk.protobuf.ClientState.internal_static_ClientStateGetResponse_descriptor;
}
@java.lang.Override
public sawtooth.sdk.protobuf.ClientStateGetResponse getDefaultInstanceForType() {
return sawtooth.sdk.protobuf.ClientStateGetResponse.getDefaultInstance();
}
@java.lang.Override
public sawtooth.sdk.protobuf.ClientStateGetResponse build() {
sawtooth.sdk.protobuf.ClientStateGetResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public sawtooth.sdk.protobuf.ClientStateGetResponse buildPartial() {
sawtooth.sdk.protobuf.ClientStateGetResponse result = new sawtooth.sdk.protobuf.ClientStateGetResponse(this);
result.status_ = status_;
result.value_ = value_;
result.stateRoot_ = stateRoot_;
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.ClientStateGetResponse) {
return mergeFrom((sawtooth.sdk.protobuf.ClientStateGetResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(sawtooth.sdk.protobuf.ClientStateGetResponse other) {
if (other == sawtooth.sdk.protobuf.ClientStateGetResponse.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (!other.getStateRoot().isEmpty()) {
stateRoot_ = other.stateRoot_;
onChanged();
}
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.ClientStateGetResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (sawtooth.sdk.protobuf.ClientStateGetResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int status_ = 0;
/**
* .ClientStateGetResponse.Status status = 1;
*/
public int getStatusValue() {
return status_;
}
/**
* .ClientStateGetResponse.Status status = 1;
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* .ClientStateGetResponse.Status status = 1;
*/
public sawtooth.sdk.protobuf.ClientStateGetResponse.Status getStatus() {
@SuppressWarnings("deprecation")
sawtooth.sdk.protobuf.ClientStateGetResponse.Status result = sawtooth.sdk.protobuf.ClientStateGetResponse.Status.valueOf(status_);
return result == null ? sawtooth.sdk.protobuf.ClientStateGetResponse.Status.UNRECOGNIZED : result;
}
/**
* .ClientStateGetResponse.Status status = 1;
*/
public Builder setStatus(sawtooth.sdk.protobuf.ClientStateGetResponse.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .ClientStateGetResponse.Status status = 1;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 2;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 2;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private java.lang.Object stateRoot_ = "";
/**
* string state_root = 3;
*/
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 = 3;
*/
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 = 3;
*/
public Builder setStateRoot(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stateRoot_ = value;
onChanged();
return this;
}
/**
* string state_root = 3;
*/
public Builder clearStateRoot() {
stateRoot_ = getDefaultInstance().getStateRoot();
onChanged();
return this;
}
/**
* string state_root = 3;
*/
public Builder setStateRootBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stateRoot_ = value;
onChanged();
return this;
}
@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:ClientStateGetResponse)
}
// @@protoc_insertion_point(class_scope:ClientStateGetResponse)
private static final sawtooth.sdk.protobuf.ClientStateGetResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new sawtooth.sdk.protobuf.ClientStateGetResponse();
}
public static sawtooth.sdk.protobuf.ClientStateGetResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientStateGetResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientStateGetResponse(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.ClientStateGetResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}