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

org.hyperledger.fabric.protos.peer.ProposalResponse Maven / Gradle / Ivy

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

package org.hyperledger.fabric.protos.peer;

/**
 * 
 * A ProposalResponse is returned from an endorser to the proposal submitter.
 * The idea is that this message contains the endorser's response to the
 * request of a client to perform an action over a chaincode (or more
 * generically on the ledger); the response might be success/error (conveyed in
 * the Response field) together with a description of the action and a
 * signature over it by that endorser.  If a sufficient number of distinct
 * endorsers agree on the same action and produce signature to that effect, a
 * transaction can be generated and sent for ordering.
 * 
* * Protobuf type {@code protos.ProposalResponse} */ public final class ProposalResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protos.ProposalResponse) ProposalResponseOrBuilder { 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= */ "", ProposalResponse.class.getName()); } // Use ProposalResponse.newBuilder() to construct. private ProposalResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ProposalResponse() { payload_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ProposalResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ProposalResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ProposalResponse.class, org.hyperledger.fabric.protos.peer.ProposalResponse.Builder.class); } private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; private int version_ = 0; /** *
   * Version indicates message protocol version
   * 
* * int32 version = 1 [json_name = "version"]; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } public static final int TIMESTAMP_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp timestamp_; /** *
   * Timestamp is the time that the message
   * was created as  defined by the sender
   * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Timestamp is the time that the message
   * was created as  defined by the sender
   * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; * @return The timestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** *
   * Timestamp is the time that the message
   * was created as  defined by the sender
   * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } public static final int RESPONSE_FIELD_NUMBER = 4; private org.hyperledger.fabric.protos.peer.Response response_; /** *
   * A response message indicating whether the
   * endorsement of the action was successful
   * 
* * .protos.Response response = 4 [json_name = "response"]; * @return Whether the response field is set. */ @java.lang.Override public boolean hasResponse() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * A response message indicating whether the
   * endorsement of the action was successful
   * 
* * .protos.Response response = 4 [json_name = "response"]; * @return The response. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Response getResponse() { return response_ == null ? org.hyperledger.fabric.protos.peer.Response.getDefaultInstance() : response_; } /** *
   * A response message indicating whether the
   * endorsement of the action was successful
   * 
* * .protos.Response response = 4 [json_name = "response"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.ResponseOrBuilder getResponseOrBuilder() { return response_ == null ? org.hyperledger.fabric.protos.peer.Response.getDefaultInstance() : response_; } public static final int PAYLOAD_FIELD_NUMBER = 5; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
   * The payload of response. It is the bytes of ProposalResponsePayload
   * 
* * bytes payload = 5 [json_name = "payload"]; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int ENDORSEMENT_FIELD_NUMBER = 6; private org.hyperledger.fabric.protos.peer.Endorsement endorsement_; /** *
   * The endorsement of the proposal, basically
   * the endorser's signature over the payload
   * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; * @return Whether the endorsement field is set. */ @java.lang.Override public boolean hasEndorsement() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The endorsement of the proposal, basically
   * the endorser's signature over the payload
   * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; * @return The endorsement. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Endorsement getEndorsement() { return endorsement_ == null ? org.hyperledger.fabric.protos.peer.Endorsement.getDefaultInstance() : endorsement_; } /** *
   * The endorsement of the proposal, basically
   * the endorser's signature over the payload
   * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.EndorsementOrBuilder getEndorsementOrBuilder() { return endorsement_ == null ? org.hyperledger.fabric.protos.peer.Endorsement.getDefaultInstance() : endorsement_; } public static final int INTEREST_FIELD_NUMBER = 7; private org.hyperledger.fabric.protos.peer.ChaincodeInterest interest_; /** *
   * The chaincode interest derived from simulating the proposal.
   * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; * @return Whether the interest field is set. */ @java.lang.Override public boolean hasInterest() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The chaincode interest derived from simulating the proposal.
   * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; * @return The interest. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeInterest getInterest() { return interest_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeInterest.getDefaultInstance() : interest_; } /** *
   * The chaincode interest derived from simulating the proposal.
   * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeInterestOrBuilder getInterestOrBuilder() { return interest_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeInterest.getDefaultInstance() : interest_; } 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 (version_ != 0) { output.writeInt32(1, version_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTimestamp()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getResponse()); } if (!payload_.isEmpty()) { output.writeBytes(5, payload_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getEndorsement()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getInterest()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, version_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimestamp()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResponse()); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, payload_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getEndorsement()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getInterest()); } 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.peer.ProposalResponse)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ProposalResponse other = (org.hyperledger.fabric.protos.peer.ProposalResponse) obj; if (getVersion() != other.getVersion()) return false; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (hasResponse() != other.hasResponse()) return false; if (hasResponse()) { if (!getResponse() .equals(other.getResponse())) return false; } if (!getPayload() .equals(other.getPayload())) return false; if (hasEndorsement() != other.hasEndorsement()) return false; if (hasEndorsement()) { if (!getEndorsement() .equals(other.getEndorsement())) return false; } if (hasInterest() != other.hasInterest()) return false; if (hasInterest()) { if (!getInterest() .equals(other.getInterest())) 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) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } if (hasResponse()) { hash = (37 * hash) + RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getResponse().hashCode(); } hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); if (hasEndorsement()) { hash = (37 * hash) + ENDORSEMENT_FIELD_NUMBER; hash = (53 * hash) + getEndorsement().hashCode(); } if (hasInterest()) { hash = (37 * hash) + INTEREST_FIELD_NUMBER; hash = (53 * hash) + getInterest().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.ProposalResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ProposalResponse 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.peer.ProposalResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ProposalResponse 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.peer.ProposalResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ProposalResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ProposalResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ProposalResponse 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.peer.ProposalResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ProposalResponse 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.peer.ProposalResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ProposalResponse 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.peer.ProposalResponse 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; } /** *
   * A ProposalResponse is returned from an endorser to the proposal submitter.
   * The idea is that this message contains the endorser's response to the
   * request of a client to perform an action over a chaincode (or more
   * generically on the ledger); the response might be success/error (conveyed in
   * the Response field) together with a description of the action and a
   * signature over it by that endorser.  If a sufficient number of distinct
   * endorsers agree on the same action and produce signature to that effect, a
   * transaction can be generated and sent for ordering.
   * 
* * Protobuf type {@code protos.ProposalResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protos.ProposalResponse) org.hyperledger.fabric.protos.peer.ProposalResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ProposalResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ProposalResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ProposalResponse.class, org.hyperledger.fabric.protos.peer.ProposalResponse.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.ProposalResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getTimestampFieldBuilder(); getResponseFieldBuilder(); getEndorsementFieldBuilder(); getInterestFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; version_ = 0; timestamp_ = null; if (timestampBuilder_ != null) { timestampBuilder_.dispose(); timestampBuilder_ = null; } response_ = null; if (responseBuilder_ != null) { responseBuilder_.dispose(); responseBuilder_ = null; } payload_ = com.google.protobuf.ByteString.EMPTY; endorsement_ = null; if (endorsementBuilder_ != null) { endorsementBuilder_.dispose(); endorsementBuilder_ = null; } interest_ = null; if (interestBuilder_ != null) { interestBuilder_.dispose(); interestBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ProposalResponse_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ProposalResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.ProposalResponse.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.ProposalResponse build() { org.hyperledger.fabric.protos.peer.ProposalResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ProposalResponse buildPartial() { org.hyperledger.fabric.protos.peer.ProposalResponse result = new org.hyperledger.fabric.protos.peer.ProposalResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.ProposalResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.version_ = version_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.payload_ = payload_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.endorsement_ = endorsementBuilder_ == null ? endorsement_ : endorsementBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.interest_ = interestBuilder_ == null ? interest_ : interestBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.ProposalResponse) { return mergeFrom((org.hyperledger.fabric.protos.peer.ProposalResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ProposalResponse other) { if (other == org.hyperledger.fabric.protos.peer.ProposalResponse.getDefaultInstance()) return this; if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.hasResponse()) { mergeResponse(other.getResponse()); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (other.hasEndorsement()) { mergeEndorsement(other.getEndorsement()); } if (other.hasInterest()) { mergeInterest(other.getInterest()); } 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 8: { version_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getTimestampFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage( getResponseFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 34 case 42: { payload_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 42 case 50: { input.readMessage( getEndorsementFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage( getInterestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 58 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 int version_ ; /** *
     * Version indicates message protocol version
     * 
* * int32 version = 1 [json_name = "version"]; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } /** *
     * Version indicates message protocol version
     * 
* * int32 version = 1 [json_name = "version"]; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { version_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Version indicates message protocol version
     * 
* * int32 version = 1 [json_name = "version"]; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000001); version_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; } else { timestampBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); } else { timestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && timestamp_ != null && timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getTimestampBuilder().mergeFrom(value); } else { timestamp_ = value; } } else { timestampBuilder_.mergeFrom(value); } if (timestamp_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000002); timestamp_ = null; if (timestampBuilder_ != null) { timestampBuilder_.dispose(); timestampBuilder_ = null; } onChanged(); return this; } /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * .google.protobuf.Timestamp timestamp = 2 [json_name = "timestamp"]; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private org.hyperledger.fabric.protos.peer.Response response_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.Response, org.hyperledger.fabric.protos.peer.Response.Builder, org.hyperledger.fabric.protos.peer.ResponseOrBuilder> responseBuilder_; /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * .protos.Response response = 4 [json_name = "response"]; * @return Whether the response field is set. */ public boolean hasResponse() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * .protos.Response response = 4 [json_name = "response"]; * @return The response. */ public org.hyperledger.fabric.protos.peer.Response getResponse() { if (responseBuilder_ == null) { return response_ == null ? org.hyperledger.fabric.protos.peer.Response.getDefaultInstance() : response_; } else { return responseBuilder_.getMessage(); } } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * .protos.Response response = 4 [json_name = "response"]; */ public Builder setResponse(org.hyperledger.fabric.protos.peer.Response value) { if (responseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; } else { responseBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * .protos.Response response = 4 [json_name = "response"]; */ public Builder setResponse( org.hyperledger.fabric.protos.peer.Response.Builder builderForValue) { if (responseBuilder_ == null) { response_ = builderForValue.build(); } else { responseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * .protos.Response response = 4 [json_name = "response"]; */ public Builder mergeResponse(org.hyperledger.fabric.protos.peer.Response value) { if (responseBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && response_ != null && response_ != org.hyperledger.fabric.protos.peer.Response.getDefaultInstance()) { getResponseBuilder().mergeFrom(value); } else { response_ = value; } } else { responseBuilder_.mergeFrom(value); } if (response_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * .protos.Response response = 4 [json_name = "response"]; */ public Builder clearResponse() { bitField0_ = (bitField0_ & ~0x00000004); response_ = null; if (responseBuilder_ != null) { responseBuilder_.dispose(); responseBuilder_ = null; } onChanged(); return this; } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * .protos.Response response = 4 [json_name = "response"]; */ public org.hyperledger.fabric.protos.peer.Response.Builder getResponseBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResponseFieldBuilder().getBuilder(); } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * .protos.Response response = 4 [json_name = "response"]; */ public org.hyperledger.fabric.protos.peer.ResponseOrBuilder getResponseOrBuilder() { if (responseBuilder_ != null) { return responseBuilder_.getMessageOrBuilder(); } else { return response_ == null ? org.hyperledger.fabric.protos.peer.Response.getDefaultInstance() : response_; } } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * .protos.Response response = 4 [json_name = "response"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.Response, org.hyperledger.fabric.protos.peer.Response.Builder, org.hyperledger.fabric.protos.peer.ResponseOrBuilder> getResponseFieldBuilder() { if (responseBuilder_ == null) { responseBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.Response, org.hyperledger.fabric.protos.peer.Response.Builder, org.hyperledger.fabric.protos.peer.ResponseOrBuilder>( getResponse(), getParentForChildren(), isClean()); response_ = null; } return responseBuilder_; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
     * The payload of response. It is the bytes of ProposalResponsePayload
     * 
* * bytes payload = 5 [json_name = "payload"]; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
     * The payload of response. It is the bytes of ProposalResponsePayload
     * 
* * bytes payload = 5 [json_name = "payload"]; * @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_ |= 0x00000008; onChanged(); return this; } /** *
     * The payload of response. It is the bytes of ProposalResponsePayload
     * 
* * bytes payload = 5 [json_name = "payload"]; * @return This builder for chaining. */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000008); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Endorsement endorsement_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.Endorsement, org.hyperledger.fabric.protos.peer.Endorsement.Builder, org.hyperledger.fabric.protos.peer.EndorsementOrBuilder> endorsementBuilder_; /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; * @return Whether the endorsement field is set. */ public boolean hasEndorsement() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; * @return The endorsement. */ public org.hyperledger.fabric.protos.peer.Endorsement getEndorsement() { if (endorsementBuilder_ == null) { return endorsement_ == null ? org.hyperledger.fabric.protos.peer.Endorsement.getDefaultInstance() : endorsement_; } else { return endorsementBuilder_.getMessage(); } } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; */ public Builder setEndorsement(org.hyperledger.fabric.protos.peer.Endorsement value) { if (endorsementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endorsement_ = value; } else { endorsementBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; */ public Builder setEndorsement( org.hyperledger.fabric.protos.peer.Endorsement.Builder builderForValue) { if (endorsementBuilder_ == null) { endorsement_ = builderForValue.build(); } else { endorsementBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; */ public Builder mergeEndorsement(org.hyperledger.fabric.protos.peer.Endorsement value) { if (endorsementBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && endorsement_ != null && endorsement_ != org.hyperledger.fabric.protos.peer.Endorsement.getDefaultInstance()) { getEndorsementBuilder().mergeFrom(value); } else { endorsement_ = value; } } else { endorsementBuilder_.mergeFrom(value); } if (endorsement_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; */ public Builder clearEndorsement() { bitField0_ = (bitField0_ & ~0x00000010); endorsement_ = null; if (endorsementBuilder_ != null) { endorsementBuilder_.dispose(); endorsementBuilder_ = null; } onChanged(); return this; } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; */ public org.hyperledger.fabric.protos.peer.Endorsement.Builder getEndorsementBuilder() { bitField0_ |= 0x00000010; onChanged(); return getEndorsementFieldBuilder().getBuilder(); } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; */ public org.hyperledger.fabric.protos.peer.EndorsementOrBuilder getEndorsementOrBuilder() { if (endorsementBuilder_ != null) { return endorsementBuilder_.getMessageOrBuilder(); } else { return endorsement_ == null ? org.hyperledger.fabric.protos.peer.Endorsement.getDefaultInstance() : endorsement_; } } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * .protos.Endorsement endorsement = 6 [json_name = "endorsement"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.Endorsement, org.hyperledger.fabric.protos.peer.Endorsement.Builder, org.hyperledger.fabric.protos.peer.EndorsementOrBuilder> getEndorsementFieldBuilder() { if (endorsementBuilder_ == null) { endorsementBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.Endorsement, org.hyperledger.fabric.protos.peer.Endorsement.Builder, org.hyperledger.fabric.protos.peer.EndorsementOrBuilder>( getEndorsement(), getParentForChildren(), isClean()); endorsement_ = null; } return endorsementBuilder_; } private org.hyperledger.fabric.protos.peer.ChaincodeInterest interest_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.ChaincodeInterest, org.hyperledger.fabric.protos.peer.ChaincodeInterest.Builder, org.hyperledger.fabric.protos.peer.ChaincodeInterestOrBuilder> interestBuilder_; /** *
     * The chaincode interest derived from simulating the proposal.
     * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; * @return Whether the interest field is set. */ public boolean hasInterest() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * The chaincode interest derived from simulating the proposal.
     * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; * @return The interest. */ public org.hyperledger.fabric.protos.peer.ChaincodeInterest getInterest() { if (interestBuilder_ == null) { return interest_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeInterest.getDefaultInstance() : interest_; } else { return interestBuilder_.getMessage(); } } /** *
     * The chaincode interest derived from simulating the proposal.
     * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; */ public Builder setInterest(org.hyperledger.fabric.protos.peer.ChaincodeInterest value) { if (interestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interest_ = value; } else { interestBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * The chaincode interest derived from simulating the proposal.
     * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; */ public Builder setInterest( org.hyperledger.fabric.protos.peer.ChaincodeInterest.Builder builderForValue) { if (interestBuilder_ == null) { interest_ = builderForValue.build(); } else { interestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * The chaincode interest derived from simulating the proposal.
     * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; */ public Builder mergeInterest(org.hyperledger.fabric.protos.peer.ChaincodeInterest value) { if (interestBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && interest_ != null && interest_ != org.hyperledger.fabric.protos.peer.ChaincodeInterest.getDefaultInstance()) { getInterestBuilder().mergeFrom(value); } else { interest_ = value; } } else { interestBuilder_.mergeFrom(value); } if (interest_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * The chaincode interest derived from simulating the proposal.
     * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; */ public Builder clearInterest() { bitField0_ = (bitField0_ & ~0x00000020); interest_ = null; if (interestBuilder_ != null) { interestBuilder_.dispose(); interestBuilder_ = null; } onChanged(); return this; } /** *
     * The chaincode interest derived from simulating the proposal.
     * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; */ public org.hyperledger.fabric.protos.peer.ChaincodeInterest.Builder getInterestBuilder() { bitField0_ |= 0x00000020; onChanged(); return getInterestFieldBuilder().getBuilder(); } /** *
     * The chaincode interest derived from simulating the proposal.
     * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; */ public org.hyperledger.fabric.protos.peer.ChaincodeInterestOrBuilder getInterestOrBuilder() { if (interestBuilder_ != null) { return interestBuilder_.getMessageOrBuilder(); } else { return interest_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeInterest.getDefaultInstance() : interest_; } } /** *
     * The chaincode interest derived from simulating the proposal.
     * 
* * .protos.ChaincodeInterest interest = 7 [json_name = "interest"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.ChaincodeInterest, org.hyperledger.fabric.protos.peer.ChaincodeInterest.Builder, org.hyperledger.fabric.protos.peer.ChaincodeInterestOrBuilder> getInterestFieldBuilder() { if (interestBuilder_ == null) { interestBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.ChaincodeInterest, org.hyperledger.fabric.protos.peer.ChaincodeInterest.Builder, org.hyperledger.fabric.protos.peer.ChaincodeInterestOrBuilder>( getInterest(), getParentForChildren(), isClean()); interest_ = null; } return interestBuilder_; } // @@protoc_insertion_point(builder_scope:protos.ProposalResponse) } // @@protoc_insertion_point(class_scope:protos.ProposalResponse) private static final org.hyperledger.fabric.protos.peer.ProposalResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.ProposalResponse(); } public static org.hyperledger.fabric.protos.peer.ProposalResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProposalResponse 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.peer.ProposalResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy