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

org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: orderer/clusterserver.proto
// Protobuf Java Version: 4.28.2

package org.hyperledger.fabric.protos.orderer;

/**
 * 
 * ClusterNodeServiceStepRequest wraps a message that is sent to a cluster member.
 * 
* * Protobuf type {@code orderer.ClusterNodeServiceStepRequest} */ public final class ClusterNodeServiceStepRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:orderer.ClusterNodeServiceStepRequest) ClusterNodeServiceStepRequestOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", ClusterNodeServiceStepRequest.class.getName()); } // Use ClusterNodeServiceStepRequest.newBuilder() to construct. private ClusterNodeServiceStepRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ClusterNodeServiceStepRequest() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_ClusterNodeServiceStepRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_ClusterNodeServiceStepRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest.class, org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest.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 { NODE_CONREQUEST(1), NODE_TRANREQUEST(2), NODE_AUTHREQUEST(3), 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 NODE_CONREQUEST; case 2: return NODE_TRANREQUEST; case 3: return NODE_AUTHREQUEST; 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 NODE_CONREQUEST_FIELD_NUMBER = 1; /** *
   * node_conrequest is a consensus specific message between the cluster memebers.
   * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; * @return Whether the nodeConrequest field is set. */ @java.lang.Override public boolean hasNodeConrequest() { return payloadCase_ == 1; } /** *
   * node_conrequest is a consensus specific message between the cluster memebers.
   * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; * @return The nodeConrequest. */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeConsensusRequest getNodeConrequest() { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.orderer.NodeConsensusRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.getDefaultInstance(); } /** *
   * node_conrequest is a consensus specific message between the cluster memebers.
   * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeConsensusRequestOrBuilder getNodeConrequestOrBuilder() { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.orderer.NodeConsensusRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.getDefaultInstance(); } public static final int NODE_TRANREQUEST_FIELD_NUMBER = 2; /** *
   * node_tranrequest is a relay of a transaction.
   * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; * @return Whether the nodeTranrequest field is set. */ @java.lang.Override public boolean hasNodeTranrequest() { return payloadCase_ == 2; } /** *
   * node_tranrequest is a relay of a transaction.
   * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; * @return The nodeTranrequest. */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest getNodeTranrequest() { if (payloadCase_ == 2) { return (org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.getDefaultInstance(); } /** *
   * node_tranrequest is a relay of a transaction.
   * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequestOrBuilder getNodeTranrequestOrBuilder() { if (payloadCase_ == 2) { return (org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.getDefaultInstance(); } public static final int NODE_AUTHREQUEST_FIELD_NUMBER = 3; /** *
   * Auth authentiates the member that initiated the stream
   * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; * @return Whether the nodeAuthrequest field is set. */ @java.lang.Override public boolean hasNodeAuthrequest() { return payloadCase_ == 3; } /** *
   * Auth authentiates the member that initiated the stream
   * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; * @return The nodeAuthrequest. */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeAuthRequest getNodeAuthrequest() { if (payloadCase_ == 3) { return (org.hyperledger.fabric.protos.orderer.NodeAuthRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeAuthRequest.getDefaultInstance(); } /** *
   * Auth authentiates the member that initiated the stream
   * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeAuthRequestOrBuilder getNodeAuthrequestOrBuilder() { if (payloadCase_ == 3) { return (org.hyperledger.fabric.protos.orderer.NodeAuthRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeAuthRequest.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.NodeConsensusRequest) payload_); } if (payloadCase_ == 2) { output.writeMessage(2, (org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest) payload_); } if (payloadCase_ == 3) { output.writeMessage(3, (org.hyperledger.fabric.protos.orderer.NodeAuthRequest) 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.NodeConsensusRequest) payload_); } if (payloadCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest) payload_); } if (payloadCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.hyperledger.fabric.protos.orderer.NodeAuthRequest) 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.ClusterNodeServiceStepRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest other = (org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 1: if (!getNodeConrequest() .equals(other.getNodeConrequest())) return false; break; case 2: if (!getNodeTranrequest() .equals(other.getNodeTranrequest())) return false; break; case 3: if (!getNodeAuthrequest() .equals(other.getNodeAuthrequest())) 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) + NODE_CONREQUEST_FIELD_NUMBER; hash = (53 * hash) + getNodeConrequest().hashCode(); break; case 2: hash = (37 * hash) + NODE_TRANREQUEST_FIELD_NUMBER; hash = (53 * hash) + getNodeTranrequest().hashCode(); break; case 3: hash = (37 * hash) + NODE_AUTHREQUEST_FIELD_NUMBER; hash = (53 * hash) + getNodeAuthrequest().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest 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.ClusterNodeServiceStepRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest 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.ClusterNodeServiceStepRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest 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.ClusterNodeServiceStepRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .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.ClusterNodeServiceStepRequest 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * ClusterNodeServiceStepRequest wraps a message that is sent to a cluster member.
   * 
* * Protobuf type {@code orderer.ClusterNodeServiceStepRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:orderer.ClusterNodeServiceStepRequest) org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_ClusterNodeServiceStepRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_ClusterNodeServiceStepRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest.class, org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (nodeConrequestBuilder_ != null) { nodeConrequestBuilder_.clear(); } if (nodeTranrequestBuilder_ != null) { nodeTranrequestBuilder_.clear(); } if (nodeAuthrequestBuilder_ != null) { nodeAuthrequestBuilder_.clear(); } payloadCase_ = 0; payload_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.ClusterserverProto.internal_static_orderer_ClusterNodeServiceStepRequest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest build() { org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest buildPartial() { org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest result = new org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest result) { result.payloadCase_ = payloadCase_; result.payload_ = this.payload_; if (payloadCase_ == 1 && nodeConrequestBuilder_ != null) { result.payload_ = nodeConrequestBuilder_.build(); } if (payloadCase_ == 2 && nodeTranrequestBuilder_ != null) { result.payload_ = nodeTranrequestBuilder_.build(); } if (payloadCase_ == 3 && nodeAuthrequestBuilder_ != null) { result.payload_ = nodeAuthrequestBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest) { return mergeFrom((org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest other) { if (other == org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest.getDefaultInstance()) return this; switch (other.getPayloadCase()) { case NODE_CONREQUEST: { mergeNodeConrequest(other.getNodeConrequest()); break; } case NODE_TRANREQUEST: { mergeNodeTranrequest(other.getNodeTranrequest()); break; } case NODE_AUTHREQUEST: { mergeNodeAuthrequest(other.getNodeAuthrequest()); 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( getNodeConrequestFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 1; break; } // case 10 case 18: { input.readMessage( getNodeTranrequestFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 2; break; } // case 18 case 26: { input.readMessage( getNodeAuthrequestFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 3; 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 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.SingleFieldBuilder< org.hyperledger.fabric.protos.orderer.NodeConsensusRequest, org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.Builder, org.hyperledger.fabric.protos.orderer.NodeConsensusRequestOrBuilder> nodeConrequestBuilder_; /** *
     * node_conrequest is a consensus specific message between the cluster memebers.
     * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; * @return Whether the nodeConrequest field is set. */ @java.lang.Override public boolean hasNodeConrequest() { return payloadCase_ == 1; } /** *
     * node_conrequest is a consensus specific message between the cluster memebers.
     * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; * @return The nodeConrequest. */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeConsensusRequest getNodeConrequest() { if (nodeConrequestBuilder_ == null) { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.orderer.NodeConsensusRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.getDefaultInstance(); } else { if (payloadCase_ == 1) { return nodeConrequestBuilder_.getMessage(); } return org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.getDefaultInstance(); } } /** *
     * node_conrequest is a consensus specific message between the cluster memebers.
     * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; */ public Builder setNodeConrequest(org.hyperledger.fabric.protos.orderer.NodeConsensusRequest value) { if (nodeConrequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { nodeConrequestBuilder_.setMessage(value); } payloadCase_ = 1; return this; } /** *
     * node_conrequest is a consensus specific message between the cluster memebers.
     * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; */ public Builder setNodeConrequest( org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.Builder builderForValue) { if (nodeConrequestBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { nodeConrequestBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 1; return this; } /** *
     * node_conrequest is a consensus specific message between the cluster memebers.
     * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; */ public Builder mergeNodeConrequest(org.hyperledger.fabric.protos.orderer.NodeConsensusRequest value) { if (nodeConrequestBuilder_ == null) { if (payloadCase_ == 1 && payload_ != org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.getDefaultInstance()) { payload_ = org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.newBuilder((org.hyperledger.fabric.protos.orderer.NodeConsensusRequest) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 1) { nodeConrequestBuilder_.mergeFrom(value); } else { nodeConrequestBuilder_.setMessage(value); } } payloadCase_ = 1; return this; } /** *
     * node_conrequest is a consensus specific message between the cluster memebers.
     * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; */ public Builder clearNodeConrequest() { if (nodeConrequestBuilder_ == null) { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; } nodeConrequestBuilder_.clear(); } return this; } /** *
     * node_conrequest is a consensus specific message between the cluster memebers.
     * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; */ public org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.Builder getNodeConrequestBuilder() { return getNodeConrequestFieldBuilder().getBuilder(); } /** *
     * node_conrequest is a consensus specific message between the cluster memebers.
     * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeConsensusRequestOrBuilder getNodeConrequestOrBuilder() { if ((payloadCase_ == 1) && (nodeConrequestBuilder_ != null)) { return nodeConrequestBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.orderer.NodeConsensusRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.getDefaultInstance(); } } /** *
     * node_conrequest is a consensus specific message between the cluster memebers.
     * 
* * .orderer.NodeConsensusRequest node_conrequest = 1 [json_name = "nodeConrequest"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.orderer.NodeConsensusRequest, org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.Builder, org.hyperledger.fabric.protos.orderer.NodeConsensusRequestOrBuilder> getNodeConrequestFieldBuilder() { if (nodeConrequestBuilder_ == null) { if (!(payloadCase_ == 1)) { payload_ = org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.getDefaultInstance(); } nodeConrequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.orderer.NodeConsensusRequest, org.hyperledger.fabric.protos.orderer.NodeConsensusRequest.Builder, org.hyperledger.fabric.protos.orderer.NodeConsensusRequestOrBuilder>( (org.hyperledger.fabric.protos.orderer.NodeConsensusRequest) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 1; onChanged(); return nodeConrequestBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest, org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.Builder, org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequestOrBuilder> nodeTranrequestBuilder_; /** *
     * node_tranrequest is a relay of a transaction.
     * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; * @return Whether the nodeTranrequest field is set. */ @java.lang.Override public boolean hasNodeTranrequest() { return payloadCase_ == 2; } /** *
     * node_tranrequest is a relay of a transaction.
     * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; * @return The nodeTranrequest. */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest getNodeTranrequest() { if (nodeTranrequestBuilder_ == null) { if (payloadCase_ == 2) { return (org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.getDefaultInstance(); } else { if (payloadCase_ == 2) { return nodeTranrequestBuilder_.getMessage(); } return org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.getDefaultInstance(); } } /** *
     * node_tranrequest is a relay of a transaction.
     * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; */ public Builder setNodeTranrequest(org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest value) { if (nodeTranrequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { nodeTranrequestBuilder_.setMessage(value); } payloadCase_ = 2; return this; } /** *
     * node_tranrequest is a relay of a transaction.
     * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; */ public Builder setNodeTranrequest( org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.Builder builderForValue) { if (nodeTranrequestBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { nodeTranrequestBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 2; return this; } /** *
     * node_tranrequest is a relay of a transaction.
     * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; */ public Builder mergeNodeTranrequest(org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest value) { if (nodeTranrequestBuilder_ == null) { if (payloadCase_ == 2 && payload_ != org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.getDefaultInstance()) { payload_ = org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.newBuilder((org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 2) { nodeTranrequestBuilder_.mergeFrom(value); } else { nodeTranrequestBuilder_.setMessage(value); } } payloadCase_ = 2; return this; } /** *
     * node_tranrequest is a relay of a transaction.
     * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; */ public Builder clearNodeTranrequest() { if (nodeTranrequestBuilder_ == null) { if (payloadCase_ == 2) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 2) { payloadCase_ = 0; payload_ = null; } nodeTranrequestBuilder_.clear(); } return this; } /** *
     * node_tranrequest is a relay of a transaction.
     * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; */ public org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.Builder getNodeTranrequestBuilder() { return getNodeTranrequestFieldBuilder().getBuilder(); } /** *
     * node_tranrequest is a relay of a transaction.
     * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequestOrBuilder getNodeTranrequestOrBuilder() { if ((payloadCase_ == 2) && (nodeTranrequestBuilder_ != null)) { return nodeTranrequestBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 2) { return (org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.getDefaultInstance(); } } /** *
     * node_tranrequest is a relay of a transaction.
     * 
* * .orderer.NodeTransactionOrderRequest node_tranrequest = 2 [json_name = "nodeTranrequest"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest, org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.Builder, org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequestOrBuilder> getNodeTranrequestFieldBuilder() { if (nodeTranrequestBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.getDefaultInstance(); } nodeTranrequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest, org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest.Builder, org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequestOrBuilder>( (org.hyperledger.fabric.protos.orderer.NodeTransactionOrderRequest) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; onChanged(); return nodeTranrequestBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.orderer.NodeAuthRequest, org.hyperledger.fabric.protos.orderer.NodeAuthRequest.Builder, org.hyperledger.fabric.protos.orderer.NodeAuthRequestOrBuilder> nodeAuthrequestBuilder_; /** *
     * Auth authentiates the member that initiated the stream
     * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; * @return Whether the nodeAuthrequest field is set. */ @java.lang.Override public boolean hasNodeAuthrequest() { return payloadCase_ == 3; } /** *
     * Auth authentiates the member that initiated the stream
     * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; * @return The nodeAuthrequest. */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeAuthRequest getNodeAuthrequest() { if (nodeAuthrequestBuilder_ == null) { if (payloadCase_ == 3) { return (org.hyperledger.fabric.protos.orderer.NodeAuthRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeAuthRequest.getDefaultInstance(); } else { if (payloadCase_ == 3) { return nodeAuthrequestBuilder_.getMessage(); } return org.hyperledger.fabric.protos.orderer.NodeAuthRequest.getDefaultInstance(); } } /** *
     * Auth authentiates the member that initiated the stream
     * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; */ public Builder setNodeAuthrequest(org.hyperledger.fabric.protos.orderer.NodeAuthRequest value) { if (nodeAuthrequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { nodeAuthrequestBuilder_.setMessage(value); } payloadCase_ = 3; return this; } /** *
     * Auth authentiates the member that initiated the stream
     * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; */ public Builder setNodeAuthrequest( org.hyperledger.fabric.protos.orderer.NodeAuthRequest.Builder builderForValue) { if (nodeAuthrequestBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { nodeAuthrequestBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 3; return this; } /** *
     * Auth authentiates the member that initiated the stream
     * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; */ public Builder mergeNodeAuthrequest(org.hyperledger.fabric.protos.orderer.NodeAuthRequest value) { if (nodeAuthrequestBuilder_ == null) { if (payloadCase_ == 3 && payload_ != org.hyperledger.fabric.protos.orderer.NodeAuthRequest.getDefaultInstance()) { payload_ = org.hyperledger.fabric.protos.orderer.NodeAuthRequest.newBuilder((org.hyperledger.fabric.protos.orderer.NodeAuthRequest) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 3) { nodeAuthrequestBuilder_.mergeFrom(value); } else { nodeAuthrequestBuilder_.setMessage(value); } } payloadCase_ = 3; return this; } /** *
     * Auth authentiates the member that initiated the stream
     * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; */ public Builder clearNodeAuthrequest() { if (nodeAuthrequestBuilder_ == null) { if (payloadCase_ == 3) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 3) { payloadCase_ = 0; payload_ = null; } nodeAuthrequestBuilder_.clear(); } return this; } /** *
     * Auth authentiates the member that initiated the stream
     * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; */ public org.hyperledger.fabric.protos.orderer.NodeAuthRequest.Builder getNodeAuthrequestBuilder() { return getNodeAuthrequestFieldBuilder().getBuilder(); } /** *
     * Auth authentiates the member that initiated the stream
     * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.NodeAuthRequestOrBuilder getNodeAuthrequestOrBuilder() { if ((payloadCase_ == 3) && (nodeAuthrequestBuilder_ != null)) { return nodeAuthrequestBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 3) { return (org.hyperledger.fabric.protos.orderer.NodeAuthRequest) payload_; } return org.hyperledger.fabric.protos.orderer.NodeAuthRequest.getDefaultInstance(); } } /** *
     * Auth authentiates the member that initiated the stream
     * 
* * .orderer.NodeAuthRequest node_authrequest = 3 [json_name = "nodeAuthrequest"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.orderer.NodeAuthRequest, org.hyperledger.fabric.protos.orderer.NodeAuthRequest.Builder, org.hyperledger.fabric.protos.orderer.NodeAuthRequestOrBuilder> getNodeAuthrequestFieldBuilder() { if (nodeAuthrequestBuilder_ == null) { if (!(payloadCase_ == 3)) { payload_ = org.hyperledger.fabric.protos.orderer.NodeAuthRequest.getDefaultInstance(); } nodeAuthrequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.orderer.NodeAuthRequest, org.hyperledger.fabric.protos.orderer.NodeAuthRequest.Builder, org.hyperledger.fabric.protos.orderer.NodeAuthRequestOrBuilder>( (org.hyperledger.fabric.protos.orderer.NodeAuthRequest) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 3; onChanged(); return nodeAuthrequestBuilder_; } // @@protoc_insertion_point(builder_scope:orderer.ClusterNodeServiceStepRequest) } // @@protoc_insertion_point(class_scope:orderer.ClusterNodeServiceStepRequest) private static final org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest(); } public static org.hyperledger.fabric.protos.orderer.ClusterNodeServiceStepRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClusterNodeServiceStepRequest 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.ClusterNodeServiceStepRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy