org.hyperledger.fabric.protos.orderer.ClusterOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-sdk-java Show documentation
Show all versions of fabric-sdk-java Show documentation
Java SDK for Hyperledger fabric project
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: orderer/cluster.proto
package org.hyperledger.fabric.protos.orderer;
public final class ClusterOuterClass {
private ClusterOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface StepRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.StepRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
* @return Whether the consensusRequest field is set.
*/
boolean hasConsensusRequest();
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
* @return The consensusRequest.
*/
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest getConsensusRequest();
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
*/
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequestOrBuilder getConsensusRequestOrBuilder();
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
* @return Whether the submitRequest field is set.
*/
boolean hasSubmitRequest();
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
* @return The submitRequest.
*/
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest getSubmitRequest();
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
*/
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequestOrBuilder getSubmitRequestOrBuilder();
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest.PayloadCase getPayloadCase();
}
/**
*
* StepRequest wraps a message that is sent to a cluster member.
*
*
* Protobuf type {@code orderer.StepRequest}
*/
public static final class StepRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.StepRequest)
StepRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StepRequest.newBuilder() to construct.
private StepRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StepRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StepRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest.Builder.class);
}
private int payloadCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object payload_;
public enum PayloadCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CONSENSUS_REQUEST(1),
SUBMIT_REQUEST(2),
PAYLOAD_NOT_SET(0);
private final int value;
private PayloadCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PayloadCase valueOf(int value) {
return forNumber(value);
}
public static PayloadCase forNumber(int value) {
switch (value) {
case 1: return CONSENSUS_REQUEST;
case 2: return SUBMIT_REQUEST;
case 0: return PAYLOAD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PayloadCase
getPayloadCase() {
return PayloadCase.forNumber(
payloadCase_);
}
public static final int CONSENSUS_REQUEST_FIELD_NUMBER = 1;
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
* @return Whether the consensusRequest field is set.
*/
@java.lang.Override
public boolean hasConsensusRequest() {
return payloadCase_ == 1;
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
* @return The consensusRequest.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest getConsensusRequest() {
if (payloadCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.getDefaultInstance();
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequestOrBuilder getConsensusRequestOrBuilder() {
if (payloadCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.getDefaultInstance();
}
public static final int SUBMIT_REQUEST_FIELD_NUMBER = 2;
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
* @return Whether the submitRequest field is set.
*/
@java.lang.Override
public boolean hasSubmitRequest() {
return payloadCase_ == 2;
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
* @return The submitRequest.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest getSubmitRequest() {
if (payloadCase_ == 2) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.getDefaultInstance();
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequestOrBuilder getSubmitRequestOrBuilder() {
if (payloadCase_ == 2) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.getDefaultInstance();
}
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 (payloadCase_ == 1) {
output.writeMessage(1, (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) payload_);
}
if (payloadCase_ == 2) {
output.writeMessage(2, (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) payload_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (payloadCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) payload_);
}
if (payloadCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) payload_);
}
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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest other = (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest) obj;
if (!getPayloadCase().equals(other.getPayloadCase())) return false;
switch (payloadCase_) {
case 1:
if (!getConsensusRequest()
.equals(other.getConsensusRequest())) return false;
break;
case 2:
if (!getSubmitRequest()
.equals(other.getSubmitRequest())) return false;
break;
case 0:
default:
}
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();
switch (payloadCase_) {
case 1:
hash = (37 * hash) + CONSENSUS_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getConsensusRequest().hashCode();
break;
case 2:
hash = (37 * hash) + SUBMIT_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getSubmitRequest().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest 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(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest 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;
}
/**
*
* StepRequest wraps a message that is sent to a cluster member.
*
*
* Protobuf type {@code orderer.StepRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.StepRequest)
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (consensusRequestBuilder_ != null) {
consensusRequestBuilder_.clear();
}
if (submitRequestBuilder_ != null) {
submitRequestBuilder_.clear();
}
payloadCase_ = 0;
payload_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepRequest_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest build() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest buildPartial() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest result = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest result) {
result.payloadCase_ = payloadCase_;
result.payload_ = this.payload_;
if (payloadCase_ == 1 &&
consensusRequestBuilder_ != null) {
result.payload_ = consensusRequestBuilder_.build();
}
if (payloadCase_ == 2 &&
submitRequestBuilder_ != null) {
result.payload_ = submitRequestBuilder_.build();
}
}
@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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest other) {
if (other == org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest.getDefaultInstance()) return this;
switch (other.getPayloadCase()) {
case CONSENSUS_REQUEST: {
mergeConsensusRequest(other.getConsensusRequest());
break;
}
case SUBMIT_REQUEST: {
mergeSubmitRequest(other.getSubmitRequest());
break;
}
case PAYLOAD_NOT_SET: {
break;
}
}
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: {
input.readMessage(
getConsensusRequestFieldBuilder().getBuilder(),
extensionRegistry);
payloadCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getSubmitRequestFieldBuilder().getBuilder(),
extensionRegistry);
payloadCase_ = 2;
break;
} // case 18
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 payloadCase_ = 0;
private java.lang.Object payload_;
public PayloadCase
getPayloadCase() {
return PayloadCase.forNumber(
payloadCase_);
}
public Builder clearPayload() {
payloadCase_ = 0;
payload_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.Builder, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequestOrBuilder> consensusRequestBuilder_;
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
* @return Whether the consensusRequest field is set.
*/
@java.lang.Override
public boolean hasConsensusRequest() {
return payloadCase_ == 1;
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
* @return The consensusRequest.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest getConsensusRequest() {
if (consensusRequestBuilder_ == null) {
if (payloadCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.getDefaultInstance();
} else {
if (payloadCase_ == 1) {
return consensusRequestBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.getDefaultInstance();
}
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
*/
public Builder setConsensusRequest(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest value) {
if (consensusRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
consensusRequestBuilder_.setMessage(value);
}
payloadCase_ = 1;
return this;
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
*/
public Builder setConsensusRequest(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.Builder builderForValue) {
if (consensusRequestBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
consensusRequestBuilder_.setMessage(builderForValue.build());
}
payloadCase_ = 1;
return this;
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
*/
public Builder mergeConsensusRequest(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest value) {
if (consensusRequestBuilder_ == null) {
if (payloadCase_ == 1 &&
payload_ != org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.getDefaultInstance()) {
payload_ = org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.newBuilder((org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) payload_)
.mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
if (payloadCase_ == 1) {
consensusRequestBuilder_.mergeFrom(value);
} else {
consensusRequestBuilder_.setMessage(value);
}
}
payloadCase_ = 1;
return this;
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
*/
public Builder clearConsensusRequest() {
if (consensusRequestBuilder_ == null) {
if (payloadCase_ == 1) {
payloadCase_ = 0;
payload_ = null;
onChanged();
}
} else {
if (payloadCase_ == 1) {
payloadCase_ = 0;
payload_ = null;
}
consensusRequestBuilder_.clear();
}
return this;
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
*/
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.Builder getConsensusRequestBuilder() {
return getConsensusRequestFieldBuilder().getBuilder();
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequestOrBuilder getConsensusRequestOrBuilder() {
if ((payloadCase_ == 1) && (consensusRequestBuilder_ != null)) {
return consensusRequestBuilder_.getMessageOrBuilder();
} else {
if (payloadCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.getDefaultInstance();
}
}
/**
*
* consensus_request is a consensus specific message.
*
*
* .orderer.ConsensusRequest consensus_request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.Builder, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequestOrBuilder>
getConsensusRequestFieldBuilder() {
if (consensusRequestBuilder_ == null) {
if (!(payloadCase_ == 1)) {
payload_ = org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.getDefaultInstance();
}
consensusRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.Builder, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequestOrBuilder>(
(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) payload_,
getParentForChildren(),
isClean());
payload_ = null;
}
payloadCase_ = 1;
onChanged();
return consensusRequestBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.Builder, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequestOrBuilder> submitRequestBuilder_;
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
* @return Whether the submitRequest field is set.
*/
@java.lang.Override
public boolean hasSubmitRequest() {
return payloadCase_ == 2;
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
* @return The submitRequest.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest getSubmitRequest() {
if (submitRequestBuilder_ == null) {
if (payloadCase_ == 2) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.getDefaultInstance();
} else {
if (payloadCase_ == 2) {
return submitRequestBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.getDefaultInstance();
}
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
*/
public Builder setSubmitRequest(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest value) {
if (submitRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
submitRequestBuilder_.setMessage(value);
}
payloadCase_ = 2;
return this;
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
*/
public Builder setSubmitRequest(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.Builder builderForValue) {
if (submitRequestBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
submitRequestBuilder_.setMessage(builderForValue.build());
}
payloadCase_ = 2;
return this;
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
*/
public Builder mergeSubmitRequest(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest value) {
if (submitRequestBuilder_ == null) {
if (payloadCase_ == 2 &&
payload_ != org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.getDefaultInstance()) {
payload_ = org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.newBuilder((org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) payload_)
.mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
if (payloadCase_ == 2) {
submitRequestBuilder_.mergeFrom(value);
} else {
submitRequestBuilder_.setMessage(value);
}
}
payloadCase_ = 2;
return this;
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
*/
public Builder clearSubmitRequest() {
if (submitRequestBuilder_ == null) {
if (payloadCase_ == 2) {
payloadCase_ = 0;
payload_ = null;
onChanged();
}
} else {
if (payloadCase_ == 2) {
payloadCase_ = 0;
payload_ = null;
}
submitRequestBuilder_.clear();
}
return this;
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
*/
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.Builder getSubmitRequestBuilder() {
return getSubmitRequestFieldBuilder().getBuilder();
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequestOrBuilder getSubmitRequestOrBuilder() {
if ((payloadCase_ == 2) && (submitRequestBuilder_ != null)) {
return submitRequestBuilder_.getMessageOrBuilder();
} else {
if (payloadCase_ == 2) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.getDefaultInstance();
}
}
/**
*
* submit_request is a relay of a transaction.
*
*
* .orderer.SubmitRequest submit_request = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.Builder, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequestOrBuilder>
getSubmitRequestFieldBuilder() {
if (submitRequestBuilder_ == null) {
if (!(payloadCase_ == 2)) {
payload_ = org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.getDefaultInstance();
}
submitRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.Builder, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequestOrBuilder>(
(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) payload_,
getParentForChildren(),
isClean());
payload_ = null;
}
payloadCase_ = 2;
onChanged();
return submitRequestBuilder_;
}
@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:orderer.StepRequest)
}
// @@protoc_insertion_point(class_scope:orderer.StepRequest)
private static final org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest();
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StepRequest 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StepResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.StepResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .orderer.SubmitResponse submit_res = 1;
* @return Whether the submitRes field is set.
*/
boolean hasSubmitRes();
/**
* .orderer.SubmitResponse submit_res = 1;
* @return The submitRes.
*/
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse getSubmitRes();
/**
* .orderer.SubmitResponse submit_res = 1;
*/
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponseOrBuilder getSubmitResOrBuilder();
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse.PayloadCase getPayloadCase();
}
/**
*
* StepResponse is a message received from a cluster member.
*
*
* Protobuf type {@code orderer.StepResponse}
*/
public static final class StepResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.StepResponse)
StepResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use StepResponse.newBuilder() to construct.
private StepResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StepResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StepResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse.Builder.class);
}
private int payloadCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object payload_;
public enum PayloadCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SUBMIT_RES(1),
PAYLOAD_NOT_SET(0);
private final int value;
private PayloadCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PayloadCase valueOf(int value) {
return forNumber(value);
}
public static PayloadCase forNumber(int value) {
switch (value) {
case 1: return SUBMIT_RES;
case 0: return PAYLOAD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PayloadCase
getPayloadCase() {
return PayloadCase.forNumber(
payloadCase_);
}
public static final int SUBMIT_RES_FIELD_NUMBER = 1;
/**
* .orderer.SubmitResponse submit_res = 1;
* @return Whether the submitRes field is set.
*/
@java.lang.Override
public boolean hasSubmitRes() {
return payloadCase_ == 1;
}
/**
* .orderer.SubmitResponse submit_res = 1;
* @return The submitRes.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse getSubmitRes() {
if (payloadCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.getDefaultInstance();
}
/**
* .orderer.SubmitResponse submit_res = 1;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponseOrBuilder getSubmitResOrBuilder() {
if (payloadCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.getDefaultInstance();
}
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 (payloadCase_ == 1) {
output.writeMessage(1, (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) payload_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (payloadCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) payload_);
}
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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse other = (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse) obj;
if (!getPayloadCase().equals(other.getPayloadCase())) return false;
switch (payloadCase_) {
case 1:
if (!getSubmitRes()
.equals(other.getSubmitRes())) return false;
break;
case 0:
default:
}
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();
switch (payloadCase_) {
case 1:
hash = (37 * hash) + SUBMIT_RES_FIELD_NUMBER;
hash = (53 * hash) + getSubmitRes().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse 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(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse 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;
}
/**
*
* StepResponse is a message received from a cluster member.
*
*
* Protobuf type {@code orderer.StepResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.StepResponse)
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (submitResBuilder_ != null) {
submitResBuilder_.clear();
}
payloadCase_ = 0;
payload_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_StepResponse_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse build() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse buildPartial() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse result = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse result) {
result.payloadCase_ = payloadCase_;
result.payload_ = this.payload_;
if (payloadCase_ == 1 &&
submitResBuilder_ != null) {
result.payload_ = submitResBuilder_.build();
}
}
@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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse other) {
if (other == org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse.getDefaultInstance()) return this;
switch (other.getPayloadCase()) {
case SUBMIT_RES: {
mergeSubmitRes(other.getSubmitRes());
break;
}
case PAYLOAD_NOT_SET: {
break;
}
}
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: {
input.readMessage(
getSubmitResFieldBuilder().getBuilder(),
extensionRegistry);
payloadCase_ = 1;
break;
} // case 10
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 payloadCase_ = 0;
private java.lang.Object payload_;
public PayloadCase
getPayloadCase() {
return PayloadCase.forNumber(
payloadCase_);
}
public Builder clearPayload() {
payloadCase_ = 0;
payload_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.Builder, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponseOrBuilder> submitResBuilder_;
/**
* .orderer.SubmitResponse submit_res = 1;
* @return Whether the submitRes field is set.
*/
@java.lang.Override
public boolean hasSubmitRes() {
return payloadCase_ == 1;
}
/**
* .orderer.SubmitResponse submit_res = 1;
* @return The submitRes.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse getSubmitRes() {
if (submitResBuilder_ == null) {
if (payloadCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.getDefaultInstance();
} else {
if (payloadCase_ == 1) {
return submitResBuilder_.getMessage();
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.getDefaultInstance();
}
}
/**
* .orderer.SubmitResponse submit_res = 1;
*/
public Builder setSubmitRes(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse value) {
if (submitResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
submitResBuilder_.setMessage(value);
}
payloadCase_ = 1;
return this;
}
/**
* .orderer.SubmitResponse submit_res = 1;
*/
public Builder setSubmitRes(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.Builder builderForValue) {
if (submitResBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
submitResBuilder_.setMessage(builderForValue.build());
}
payloadCase_ = 1;
return this;
}
/**
* .orderer.SubmitResponse submit_res = 1;
*/
public Builder mergeSubmitRes(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse value) {
if (submitResBuilder_ == null) {
if (payloadCase_ == 1 &&
payload_ != org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.getDefaultInstance()) {
payload_ = org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.newBuilder((org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) payload_)
.mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
if (payloadCase_ == 1) {
submitResBuilder_.mergeFrom(value);
} else {
submitResBuilder_.setMessage(value);
}
}
payloadCase_ = 1;
return this;
}
/**
* .orderer.SubmitResponse submit_res = 1;
*/
public Builder clearSubmitRes() {
if (submitResBuilder_ == null) {
if (payloadCase_ == 1) {
payloadCase_ = 0;
payload_ = null;
onChanged();
}
} else {
if (payloadCase_ == 1) {
payloadCase_ = 0;
payload_ = null;
}
submitResBuilder_.clear();
}
return this;
}
/**
* .orderer.SubmitResponse submit_res = 1;
*/
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.Builder getSubmitResBuilder() {
return getSubmitResFieldBuilder().getBuilder();
}
/**
* .orderer.SubmitResponse submit_res = 1;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponseOrBuilder getSubmitResOrBuilder() {
if ((payloadCase_ == 1) && (submitResBuilder_ != null)) {
return submitResBuilder_.getMessageOrBuilder();
} else {
if (payloadCase_ == 1) {
return (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) payload_;
}
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.getDefaultInstance();
}
}
/**
* .orderer.SubmitResponse submit_res = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.Builder, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponseOrBuilder>
getSubmitResFieldBuilder() {
if (submitResBuilder_ == null) {
if (!(payloadCase_ == 1)) {
payload_ = org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.getDefaultInstance();
}
submitResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.Builder, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponseOrBuilder>(
(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) payload_,
getParentForChildren(),
isClean());
payload_ = null;
}
payloadCase_ = 1;
onChanged();
return submitResBuilder_;
}
@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:orderer.StepResponse)
}
// @@protoc_insertion_point(class_scope:orderer.StepResponse)
private static final org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse();
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StepResponse 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.StepResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConsensusRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.ConsensusRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string channel = 1;
* @return The channel.
*/
java.lang.String getChannel();
/**
* string channel = 1;
* @return The bytes for channel.
*/
com.google.protobuf.ByteString
getChannelBytes();
/**
* bytes payload = 2;
* @return The payload.
*/
com.google.protobuf.ByteString getPayload();
/**
* bytes metadata = 3;
* @return The metadata.
*/
com.google.protobuf.ByteString getMetadata();
}
/**
*
* ConsensusRequest is a consensus specific message sent to a cluster member.
*
*
* Protobuf type {@code orderer.ConsensusRequest}
*/
public static final class ConsensusRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.ConsensusRequest)
ConsensusRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConsensusRequest.newBuilder() to construct.
private ConsensusRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsensusRequest() {
channel_ = "";
payload_ = com.google.protobuf.ByteString.EMPTY;
metadata_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConsensusRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_ConsensusRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_ConsensusRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.Builder.class);
}
public static final int CHANNEL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object channel_ = "";
/**
* string channel = 1;
* @return The channel.
*/
@java.lang.Override
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
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();
channel_ = s;
return s;
}
}
/**
* string channel = 1;
* @return The bytes for channel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAYLOAD_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes payload = 2;
* @return The payload.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
public static final int METADATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes metadata = 3;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadata() {
return metadata_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channel_);
}
if (!payload_.isEmpty()) {
output.writeBytes(2, payload_);
}
if (!metadata_.isEmpty()) {
output.writeBytes(3, metadata_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channel_);
}
if (!payload_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, payload_);
}
if (!metadata_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, metadata_);
}
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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest other = (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) obj;
if (!getChannel()
.equals(other.getChannel())) return false;
if (!getPayload()
.equals(other.getPayload())) return false;
if (!getMetadata()
.equals(other.getMetadata())) 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();
hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getChannel().hashCode();
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest 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(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest 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;
}
/**
*
* ConsensusRequest is a consensus specific message sent to a cluster member.
*
*
* Protobuf type {@code orderer.ConsensusRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.ConsensusRequest)
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_ConsensusRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_ConsensusRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
channel_ = "";
payload_ = com.google.protobuf.ByteString.EMPTY;
metadata_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_ConsensusRequest_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest build() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest buildPartial() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest result = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.channel_ = channel_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.payload_ = payload_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.metadata_ = metadata_;
}
}
@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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest other) {
if (other == org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest.getDefaultInstance()) return this;
if (!other.getChannel().isEmpty()) {
channel_ = other.channel_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) {
setPayload(other.getPayload());
}
if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) {
setMetadata(other.getMetadata());
}
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: {
channel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
payload_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
metadata_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
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.lang.Object channel_ = "";
/**
* string channel = 1;
* @return The channel.
*/
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string channel = 1;
* @return The bytes for channel.
*/
public com.google.protobuf.ByteString
getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string channel = 1;
* @param value The channel to set.
* @return This builder for chaining.
*/
public Builder setChannel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
channel_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string channel = 1;
* @return This builder for chaining.
*/
public Builder clearChannel() {
channel_ = getDefaultInstance().getChannel();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string channel = 1;
* @param value The bytes for channel to set.
* @return This builder for chaining.
*/
public Builder setChannelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
channel_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes payload = 2;
* @return The payload.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
/**
* bytes payload = 2;
* @param value The payload to set.
* @return This builder for chaining.
*/
public Builder setPayload(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
payload_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes payload = 2;
* @return This builder for chaining.
*/
public Builder clearPayload() {
bitField0_ = (bitField0_ & ~0x00000002);
payload_ = getDefaultInstance().getPayload();
onChanged();
return this;
}
private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes metadata = 3;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadata() {
return metadata_;
}
/**
* bytes metadata = 3;
* @param value The metadata to set.
* @return This builder for chaining.
*/
public Builder setMetadata(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
metadata_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bytes metadata = 3;
* @return This builder for chaining.
*/
public Builder clearMetadata() {
bitField0_ = (bitField0_ & ~0x00000004);
metadata_ = getDefaultInstance().getMetadata();
onChanged();
return this;
}
@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:orderer.ConsensusRequest)
}
// @@protoc_insertion_point(class_scope:orderer.ConsensusRequest)
private static final org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest();
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConsensusRequest 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.ConsensusRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubmitRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.SubmitRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string channel = 1;
* @return The channel.
*/
java.lang.String getChannel();
/**
* string channel = 1;
* @return The bytes for channel.
*/
com.google.protobuf.ByteString
getChannelBytes();
/**
*
* last_validation_seq denotes the last
* configuration sequence at which the
* sender validated this message.
*
*
* uint64 last_validation_seq = 2;
* @return The lastValidationSeq.
*/
long getLastValidationSeq();
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
* @return Whether the payload field is set.
*/
boolean hasPayload();
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
* @return The payload.
*/
org.hyperledger.fabric.protos.common.Common.Envelope getPayload();
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
*/
org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder getPayloadOrBuilder();
}
/**
*
* SubmitRequest wraps a transaction to be sent for ordering.
*
*
* Protobuf type {@code orderer.SubmitRequest}
*/
public static final class SubmitRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.SubmitRequest)
SubmitRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubmitRequest.newBuilder() to construct.
private SubmitRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubmitRequest() {
channel_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubmitRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.Builder.class);
}
private int bitField0_;
public static final int CHANNEL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object channel_ = "";
/**
* string channel = 1;
* @return The channel.
*/
@java.lang.Override
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
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();
channel_ = s;
return s;
}
}
/**
* string channel = 1;
* @return The bytes for channel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_VALIDATION_SEQ_FIELD_NUMBER = 2;
private long lastValidationSeq_ = 0L;
/**
*
* last_validation_seq denotes the last
* configuration sequence at which the
* sender validated this message.
*
*
* uint64 last_validation_seq = 2;
* @return The lastValidationSeq.
*/
@java.lang.Override
public long getLastValidationSeq() {
return lastValidationSeq_;
}
public static final int PAYLOAD_FIELD_NUMBER = 3;
private org.hyperledger.fabric.protos.common.Common.Envelope payload_;
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
* @return Whether the payload field is set.
*/
@java.lang.Override
public boolean hasPayload() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
* @return The payload.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.Envelope getPayload() {
return payload_ == null ? org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : payload_;
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder getPayloadOrBuilder() {
return payload_ == null ? org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : payload_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channel_);
}
if (lastValidationSeq_ != 0L) {
output.writeUInt64(2, lastValidationSeq_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getPayload());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channel_);
}
if (lastValidationSeq_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, lastValidationSeq_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPayload());
}
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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest other = (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) obj;
if (!getChannel()
.equals(other.getChannel())) return false;
if (getLastValidationSeq()
!= other.getLastValidationSeq()) return false;
if (hasPayload() != other.hasPayload()) return false;
if (hasPayload()) {
if (!getPayload()
.equals(other.getPayload())) 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();
hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getChannel().hashCode();
hash = (37 * hash) + LAST_VALIDATION_SEQ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastValidationSeq());
if (hasPayload()) {
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest 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(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest 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;
}
/**
*
* SubmitRequest wraps a transaction to be sent for ordering.
*
*
* Protobuf type {@code orderer.SubmitRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.SubmitRequest)
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPayloadFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
channel_ = "";
lastValidationSeq_ = 0L;
payload_ = null;
if (payloadBuilder_ != null) {
payloadBuilder_.dispose();
payloadBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitRequest_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest build() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest buildPartial() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest result = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.channel_ = channel_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lastValidationSeq_ = lastValidationSeq_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.payload_ = payloadBuilder_ == null
? payload_
: payloadBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest other) {
if (other == org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest.getDefaultInstance()) return this;
if (!other.getChannel().isEmpty()) {
channel_ = other.channel_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getLastValidationSeq() != 0L) {
setLastValidationSeq(other.getLastValidationSeq());
}
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
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: {
channel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
lastValidationSeq_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getPayloadFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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.lang.Object channel_ = "";
/**
* string channel = 1;
* @return The channel.
*/
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string channel = 1;
* @return The bytes for channel.
*/
public com.google.protobuf.ByteString
getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string channel = 1;
* @param value The channel to set.
* @return This builder for chaining.
*/
public Builder setChannel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
channel_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string channel = 1;
* @return This builder for chaining.
*/
public Builder clearChannel() {
channel_ = getDefaultInstance().getChannel();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string channel = 1;
* @param value The bytes for channel to set.
* @return This builder for chaining.
*/
public Builder setChannelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
channel_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long lastValidationSeq_ ;
/**
*
* last_validation_seq denotes the last
* configuration sequence at which the
* sender validated this message.
*
*
* uint64 last_validation_seq = 2;
* @return The lastValidationSeq.
*/
@java.lang.Override
public long getLastValidationSeq() {
return lastValidationSeq_;
}
/**
*
* last_validation_seq denotes the last
* configuration sequence at which the
* sender validated this message.
*
*
* uint64 last_validation_seq = 2;
* @param value The lastValidationSeq to set.
* @return This builder for chaining.
*/
public Builder setLastValidationSeq(long value) {
lastValidationSeq_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* last_validation_seq denotes the last
* configuration sequence at which the
* sender validated this message.
*
*
* uint64 last_validation_seq = 2;
* @return This builder for chaining.
*/
public Builder clearLastValidationSeq() {
bitField0_ = (bitField0_ & ~0x00000002);
lastValidationSeq_ = 0L;
onChanged();
return this;
}
private org.hyperledger.fabric.protos.common.Common.Envelope payload_;
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Envelope, org.hyperledger.fabric.protos.common.Common.Envelope.Builder, org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder> payloadBuilder_;
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
* @return Whether the payload field is set.
*/
public boolean hasPayload() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
* @return The payload.
*/
public org.hyperledger.fabric.protos.common.Common.Envelope getPayload() {
if (payloadBuilder_ == null) {
return payload_ == null ? org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : payload_;
} else {
return payloadBuilder_.getMessage();
}
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
*/
public Builder setPayload(org.hyperledger.fabric.protos.common.Common.Envelope value) {
if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
} else {
payloadBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
*/
public Builder setPayload(
org.hyperledger.fabric.protos.common.Common.Envelope.Builder builderForValue) {
if (payloadBuilder_ == null) {
payload_ = builderForValue.build();
} else {
payloadBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
*/
public Builder mergePayload(org.hyperledger.fabric.protos.common.Common.Envelope value) {
if (payloadBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
payload_ != null &&
payload_ != org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance()) {
getPayloadBuilder().mergeFrom(value);
} else {
payload_ = value;
}
} else {
payloadBuilder_.mergeFrom(value);
}
if (payload_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
*/
public Builder clearPayload() {
bitField0_ = (bitField0_ & ~0x00000004);
payload_ = null;
if (payloadBuilder_ != null) {
payloadBuilder_.dispose();
payloadBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
*/
public org.hyperledger.fabric.protos.common.Common.Envelope.Builder getPayloadBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPayloadFieldBuilder().getBuilder();
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
*/
public org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder getPayloadOrBuilder() {
if (payloadBuilder_ != null) {
return payloadBuilder_.getMessageOrBuilder();
} else {
return payload_ == null ?
org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : payload_;
}
}
/**
*
* content is the fabric transaction
* that is forwarded to the cluster member.
*
*
* .common.Envelope payload = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Envelope, org.hyperledger.fabric.protos.common.Common.Envelope.Builder, org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.hyperledger.fabric.protos.common.Common.Envelope, org.hyperledger.fabric.protos.common.Common.Envelope.Builder, org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder>(
getPayload(),
getParentForChildren(),
isClean());
payload_ = null;
}
return payloadBuilder_;
}
@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:orderer.SubmitRequest)
}
// @@protoc_insertion_point(class_scope:orderer.SubmitRequest)
private static final org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest();
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubmitRequest 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubmitResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.SubmitResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string channel = 1;
* @return The channel.
*/
java.lang.String getChannel();
/**
* string channel = 1;
* @return The bytes for channel.
*/
com.google.protobuf.ByteString
getChannelBytes();
/**
*
* Status code, which may be used to programatically respond to success/failure.
*
*
* .common.Status status = 2;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* Status code, which may be used to programatically respond to success/failure.
*
*
* .common.Status status = 2;
* @return The status.
*/
org.hyperledger.fabric.protos.common.Common.Status getStatus();
/**
*
* Info string which may contain additional information about the returned status.
*
*
* string info = 3;
* @return The info.
*/
java.lang.String getInfo();
/**
*
* Info string which may contain additional information about the returned status.
*
*
* string info = 3;
* @return The bytes for info.
*/
com.google.protobuf.ByteString
getInfoBytes();
}
/**
*
* SubmitResponse returns a success
* or failure status to the sender.
*
*
* Protobuf type {@code orderer.SubmitResponse}
*/
public static final class SubmitResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orderer.SubmitResponse)
SubmitResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubmitResponse.newBuilder() to construct.
private SubmitResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubmitResponse() {
channel_ = "";
status_ = 0;
info_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubmitResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.Builder.class);
}
public static final int CHANNEL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object channel_ = "";
/**
* string channel = 1;
* @return The channel.
*/
@java.lang.Override
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
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();
channel_ = s;
return s;
}
}
/**
* string channel = 1;
* @return The bytes for channel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_ = 0;
/**
*
* Status code, which may be used to programatically respond to success/failure.
*
*
* .common.Status status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status code, which may be used to programatically respond to success/failure.
*
*
* .common.Status status = 2;
* @return The status.
*/
@java.lang.Override public org.hyperledger.fabric.protos.common.Common.Status getStatus() {
org.hyperledger.fabric.protos.common.Common.Status result = org.hyperledger.fabric.protos.common.Common.Status.forNumber(status_);
return result == null ? org.hyperledger.fabric.protos.common.Common.Status.UNRECOGNIZED : result;
}
public static final int INFO_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object info_ = "";
/**
*
* Info string which may contain additional information about the returned status.
*
*
* string info = 3;
* @return The info.
*/
@java.lang.Override
public java.lang.String getInfo() {
java.lang.Object ref = info_;
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();
info_ = s;
return s;
}
}
/**
*
* Info string which may contain additional information about the returned status.
*
*
* string info = 3;
* @return The bytes for info.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channel_);
}
if (status_ != org.hyperledger.fabric.protos.common.Common.Status.UNKNOWN.getNumber()) {
output.writeEnum(2, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, info_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channel_);
}
if (status_ != org.hyperledger.fabric.protos.common.Common.Status.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(info_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, info_);
}
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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse other = (org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) obj;
if (!getChannel()
.equals(other.getChannel())) return false;
if (status_ != other.status_) return false;
if (!getInfo()
.equals(other.getInfo())) 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();
hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getChannel().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + INFO_FIELD_NUMBER;
hash = (53 * hash) + getInfo().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse 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(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse 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;
}
/**
*
* SubmitResponse returns a success
* or failure status to the sender.
*
*
* Protobuf type {@code orderer.SubmitResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orderer.SubmitResponse)
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.class, org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
channel_ = "";
status_ = 0;
info_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.internal_static_orderer_SubmitResponse_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse build() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse buildPartial() {
org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse result = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.channel_ = channel_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.info_ = info_;
}
}
@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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse other) {
if (other == org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse.getDefaultInstance()) return this;
if (!other.getChannel().isEmpty()) {
channel_ = other.channel_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.getInfo().isEmpty()) {
info_ = other.info_;
bitField0_ |= 0x00000004;
onChanged();
}
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: {
channel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
status_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
info_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
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.lang.Object channel_ = "";
/**
* string channel = 1;
* @return The channel.
*/
public java.lang.String getChannel() {
java.lang.Object ref = channel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string channel = 1;
* @return The bytes for channel.
*/
public com.google.protobuf.ByteString
getChannelBytes() {
java.lang.Object ref = channel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string channel = 1;
* @param value The channel to set.
* @return This builder for chaining.
*/
public Builder setChannel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
channel_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string channel = 1;
* @return This builder for chaining.
*/
public Builder clearChannel() {
channel_ = getDefaultInstance().getChannel();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string channel = 1;
* @param value The bytes for channel to set.
* @return This builder for chaining.
*/
public Builder setChannelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
channel_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Status code, which may be used to programatically respond to success/failure.
*
*
* .common.Status status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status code, which may be used to programatically respond to success/failure.
*
*
* .common.Status status = 2;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Status code, which may be used to programatically respond to success/failure.
*
*
* .common.Status status = 2;
* @return The status.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.Common.Status getStatus() {
org.hyperledger.fabric.protos.common.Common.Status result = org.hyperledger.fabric.protos.common.Common.Status.forNumber(status_);
return result == null ? org.hyperledger.fabric.protos.common.Common.Status.UNRECOGNIZED : result;
}
/**
*
* Status code, which may be used to programatically respond to success/failure.
*
*
* .common.Status status = 2;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.hyperledger.fabric.protos.common.Common.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Status code, which may be used to programatically respond to success/failure.
*
*
* .common.Status status = 2;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
onChanged();
return this;
}
private java.lang.Object info_ = "";
/**
*
* Info string which may contain additional information about the returned status.
*
*
* string info = 3;
* @return The info.
*/
public java.lang.String getInfo() {
java.lang.Object ref = info_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
info_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Info string which may contain additional information about the returned status.
*
*
* string info = 3;
* @return The bytes for info.
*/
public com.google.protobuf.ByteString
getInfoBytes() {
java.lang.Object ref = info_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
info_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Info string which may contain additional information about the returned status.
*
*
* string info = 3;
* @param value The info to set.
* @return This builder for chaining.
*/
public Builder setInfo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
info_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Info string which may contain additional information about the returned status.
*
*
* string info = 3;
* @return This builder for chaining.
*/
public Builder clearInfo() {
info_ = getDefaultInstance().getInfo();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Info string which may contain additional information about the returned status.
*
*
* string info = 3;
* @param value The bytes for info to set.
* @return This builder for chaining.
*/
public Builder setInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
info_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@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:orderer.SubmitResponse)
}
// @@protoc_insertion_point(class_scope:orderer.SubmitResponse)
private static final org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse();
}
public static org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubmitResponse 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 org.hyperledger.fabric.protos.orderer.ClusterOuterClass.SubmitResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_StepRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_StepRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_StepResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_StepResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_ConsensusRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_ConsensusRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_SubmitRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_SubmitRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_orderer_SubmitResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_orderer_SubmitResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025orderer/cluster.proto\022\007orderer\032\023common" +
"/common.proto\"\202\001\n\013StepRequest\0226\n\021consens" +
"us_request\030\001 \001(\0132\031.orderer.ConsensusRequ" +
"estH\000\0220\n\016submit_request\030\002 \001(\0132\026.orderer." +
"SubmitRequestH\000B\t\n\007payload\"H\n\014StepRespon" +
"se\022-\n\nsubmit_res\030\001 \001(\0132\027.orderer.SubmitR" +
"esponseH\000B\t\n\007payload\"F\n\020ConsensusRequest" +
"\022\017\n\007channel\030\001 \001(\t\022\017\n\007payload\030\002 \001(\014\022\020\n\010me" +
"tadata\030\003 \001(\014\"`\n\rSubmitRequest\022\017\n\007channel" +
"\030\001 \001(\t\022\033\n\023last_validation_seq\030\002 \001(\004\022!\n\007p" +
"ayload\030\003 \001(\0132\020.common.Envelope\"O\n\016Submit" +
"Response\022\017\n\007channel\030\001 \001(\t\022\036\n\006status\030\002 \001(" +
"\0162\016.common.Status\022\014\n\004info\030\003 \001(\t2B\n\007Clust" +
"er\0227\n\004Step\022\024.orderer.StepRequest\032\025.order" +
"er.StepResponse(\0010\001BX\n%org.hyperledger.f" +
"abric.protos.ordererZ/github.com/hyperle" +
"dger/fabric-protos-go/ordererb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.hyperledger.fabric.protos.common.Common.getDescriptor(),
});
internal_static_orderer_StepRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_orderer_StepRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_StepRequest_descriptor,
new java.lang.String[] { "ConsensusRequest", "SubmitRequest", "Payload", });
internal_static_orderer_StepResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_orderer_StepResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_StepResponse_descriptor,
new java.lang.String[] { "SubmitRes", "Payload", });
internal_static_orderer_ConsensusRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_orderer_ConsensusRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_ConsensusRequest_descriptor,
new java.lang.String[] { "Channel", "Payload", "Metadata", });
internal_static_orderer_SubmitRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_orderer_SubmitRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_SubmitRequest_descriptor,
new java.lang.String[] { "Channel", "LastValidationSeq", "Payload", });
internal_static_orderer_SubmitResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_orderer_SubmitResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_orderer_SubmitResponse_descriptor,
new java.lang.String[] { "Channel", "Status", "Info", });
org.hyperledger.fabric.protos.common.Common.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy