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

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

Go to download

Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.

There is a newer version: 2.2.26
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: peer/proposal_response.proto

package org.hyperledger.fabric.protos.peer;

public final class FabricProposalResponse {
  private FabricProposalResponse() {}
  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 ProposalResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protos.ProposalResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Version indicates message protocol version
     * 
* * optional int32 version = 1; */ int getVersion(); /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ boolean hasTimestamp(); /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ com.google.protobuf.Timestamp getTimestamp(); /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * optional .protos.Response response = 4; */ boolean hasResponse(); /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * optional .protos.Response response = 4; */ org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response getResponse(); /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * optional .protos.Response response = 4; */ org.hyperledger.fabric.protos.peer.FabricProposalResponse.ResponseOrBuilder getResponseOrBuilder(); /** *
     * The payload of response. It is the bytes of ProposalResponsePayload
     * 
* * optional bytes payload = 5; */ com.google.protobuf.ByteString getPayload(); /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * optional .protos.Endorsement endorsement = 6; */ boolean hasEndorsement(); /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * optional .protos.Endorsement endorsement = 6; */ org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement getEndorsement(); /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * optional .protos.Endorsement endorsement = 6; */ org.hyperledger.fabric.protos.peer.FabricProposalResponse.EndorsementOrBuilder getEndorsementOrBuilder(); } /** *
   * 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 ProposalResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.ProposalResponse) ProposalResponseOrBuilder { // Use ProposalResponse.newBuilder() to construct. private ProposalResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProposalResponse() { version_ = 0; payload_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ProposalResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { version_ = input.readInt32(); break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 34: { org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder subBuilder = null; if (response_ != null) { subBuilder = response_.toBuilder(); } response_ = input.readMessage(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(response_); response_ = subBuilder.buildPartial(); } break; } case 42: { payload_ = input.readBytes(); break; } case 50: { org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder subBuilder = null; if (endorsement_ != null) { subBuilder = endorsement_.toBuilder(); } endorsement_ = input.readMessage(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(endorsement_); endorsement_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.class, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private int version_; /** *
     * Version indicates message protocol version
     * 
* * optional int32 version = 1; */ 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
     * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ public boolean hasTimestamp() { return timestamp_ != null; } /** *
     * Timestamp is the time that the message
     * was created as  defined by the sender
     * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ 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
     * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int RESPONSE_FIELD_NUMBER = 4; private org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response response_; /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * optional .protos.Response response = 4; */ public boolean hasResponse() { return response_ != null; } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * optional .protos.Response response = 4; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response getResponse() { return response_ == null ? org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.getDefaultInstance() : response_; } /** *
     * A response message indicating whether the
     * endorsement of the action was successful
     * 
* * optional .protos.Response response = 4; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ResponseOrBuilder getResponseOrBuilder() { return getResponse(); } public static final int PAYLOAD_FIELD_NUMBER = 5; private com.google.protobuf.ByteString payload_; /** *
     * The payload of response. It is the bytes of ProposalResponsePayload
     * 
* * optional bytes payload = 5; */ public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int ENDORSEMENT_FIELD_NUMBER = 6; private org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement endorsement_; /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * optional .protos.Endorsement endorsement = 6; */ public boolean hasEndorsement() { return endorsement_ != null; } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * optional .protos.Endorsement endorsement = 6; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement getEndorsement() { return endorsement_ == null ? org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.getDefaultInstance() : endorsement_; } /** *
     * The endorsement of the proposal, basically
     * the endorser's signature over the payload
     * 
* * optional .protos.Endorsement endorsement = 6; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.EndorsementOrBuilder getEndorsementOrBuilder() { return getEndorsement(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != 0) { output.writeInt32(1, version_); } if (timestamp_ != null) { output.writeMessage(2, getTimestamp()); } if (response_ != null) { output.writeMessage(4, getResponse()); } if (!payload_.isEmpty()) { output.writeBytes(5, payload_); } if (endorsement_ != null) { output.writeMessage(6, getEndorsement()); } } 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 (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimestamp()); } if (response_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResponse()); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, payload_); } if (endorsement_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getEndorsement()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse) obj; boolean result = true; result = result && (getVersion() == other.getVersion()); result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && (hasResponse() == other.hasResponse()); if (hasResponse()) { result = result && getResponse() .equals(other.getResponse()); } result = result && getPayload() .equals(other.getPayload()); result = result && (hasEndorsement() == other.hasEndorsement()); if (hasEndorsement()) { result = result && getEndorsement() .equals(other.getEndorsement()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.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.FabricProposalResponse.ProposalResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.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.FabricProposalResponse.ProposalResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse 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.peer.FabricProposalResponse.ProposalResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse 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.peer.FabricProposalResponse.ProposalResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A 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.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.ProposalResponse) org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.class, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); version_ = 0; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } if (responseBuilder_ == null) { response_ = null; } else { response_ = null; responseBuilder_ = null; } payload_ = com.google.protobuf.ByteString.EMPTY; if (endorsementBuilder_ == null) { endorsement_ = null; } else { endorsement_ = null; endorsementBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponse_descriptor; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse build() { org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse buildPartial() { org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse result = new org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse(this); result.version_ = version_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } if (responseBuilder_ == null) { result.response_ = response_; } else { result.response_ = responseBuilder_.build(); } result.payload_ = payload_; if (endorsementBuilder_ == null) { result.endorsement_ = endorsement_; } else { result.endorsement_ = endorsementBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse) { return mergeFrom((org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.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()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int version_ ; /** *
       * Version indicates message protocol version
       * 
* * optional int32 version = 1; */ public int getVersion() { return version_; } /** *
       * Version indicates message protocol version
       * 
* * optional int32 version = 1; */ public Builder setVersion(int value) { version_ = value; onChanged(); return this; } /** *
       * Version indicates message protocol version
       * 
* * optional int32 version = 1; */ public Builder clearVersion() { version_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp timestamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< 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
       * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** *
       * Timestamp is the time that the message
       * was created as  defined by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ 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
       * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** *
       * Timestamp is the time that the message
       * was created as  defined by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp is the time that the message
       * was created as  defined by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp is the time that the message
       * was created as  defined by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** *
       * Timestamp is the time that the message
       * was created as  defined by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
       * Timestamp is the time that the message
       * was created as  defined by the sender
       * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ 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
       * 
* * optional .google.protobuf.Timestamp timestamp = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 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.FabricProposalResponse.Response response_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ResponseOrBuilder> responseBuilder_; /** *
       * A response message indicating whether the
       * endorsement of the action was successful
       * 
* * optional .protos.Response response = 4; */ public boolean hasResponse() { return responseBuilder_ != null || response_ != null; } /** *
       * A response message indicating whether the
       * endorsement of the action was successful
       * 
* * optional .protos.Response response = 4; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response getResponse() { if (responseBuilder_ == null) { return response_ == null ? org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.getDefaultInstance() : response_; } else { return responseBuilder_.getMessage(); } } /** *
       * A response message indicating whether the
       * endorsement of the action was successful
       * 
* * optional .protos.Response response = 4; */ public Builder setResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response value) { if (responseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responseBuilder_.setMessage(value); } return this; } /** *
       * A response message indicating whether the
       * endorsement of the action was successful
       * 
* * optional .protos.Response response = 4; */ public Builder setResponse( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder builderForValue) { if (responseBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * A response message indicating whether the
       * endorsement of the action was successful
       * 
* * optional .protos.Response response = 4; */ public Builder mergeResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response value) { if (responseBuilder_ == null) { if (response_ != null) { response_ = org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { responseBuilder_.mergeFrom(value); } return this; } /** *
       * A response message indicating whether the
       * endorsement of the action was successful
       * 
* * optional .protos.Response response = 4; */ public Builder clearResponse() { if (responseBuilder_ == null) { response_ = null; onChanged(); } else { response_ = null; responseBuilder_ = null; } return this; } /** *
       * A response message indicating whether the
       * endorsement of the action was successful
       * 
* * optional .protos.Response response = 4; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder getResponseBuilder() { onChanged(); return getResponseFieldBuilder().getBuilder(); } /** *
       * A response message indicating whether the
       * endorsement of the action was successful
       * 
* * optional .protos.Response response = 4; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ResponseOrBuilder getResponseOrBuilder() { if (responseBuilder_ != null) { return responseBuilder_.getMessageOrBuilder(); } else { return response_ == null ? org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.getDefaultInstance() : response_; } } /** *
       * A response message indicating whether the
       * endorsement of the action was successful
       * 
* * optional .protos.Response response = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ResponseOrBuilder> getResponseFieldBuilder() { if (responseBuilder_ == null) { responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder, org.hyperledger.fabric.protos.peer.FabricProposalResponse.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
       * 
* * optional bytes payload = 5; */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
       * The payload of response. It is the bytes of ProposalResponsePayload
       * 
* * optional bytes payload = 5; */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** *
       * The payload of response. It is the bytes of ProposalResponsePayload
       * 
* * optional bytes payload = 5; */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement endorsement_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder, org.hyperledger.fabric.protos.peer.FabricProposalResponse.EndorsementOrBuilder> endorsementBuilder_; /** *
       * The endorsement of the proposal, basically
       * the endorser's signature over the payload
       * 
* * optional .protos.Endorsement endorsement = 6; */ public boolean hasEndorsement() { return endorsementBuilder_ != null || endorsement_ != null; } /** *
       * The endorsement of the proposal, basically
       * the endorser's signature over the payload
       * 
* * optional .protos.Endorsement endorsement = 6; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement getEndorsement() { if (endorsementBuilder_ == null) { return endorsement_ == null ? org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.getDefaultInstance() : endorsement_; } else { return endorsementBuilder_.getMessage(); } } /** *
       * The endorsement of the proposal, basically
       * the endorser's signature over the payload
       * 
* * optional .protos.Endorsement endorsement = 6; */ public Builder setEndorsement(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement value) { if (endorsementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endorsement_ = value; onChanged(); } else { endorsementBuilder_.setMessage(value); } return this; } /** *
       * The endorsement of the proposal, basically
       * the endorser's signature over the payload
       * 
* * optional .protos.Endorsement endorsement = 6; */ public Builder setEndorsement( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder builderForValue) { if (endorsementBuilder_ == null) { endorsement_ = builderForValue.build(); onChanged(); } else { endorsementBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The endorsement of the proposal, basically
       * the endorser's signature over the payload
       * 
* * optional .protos.Endorsement endorsement = 6; */ public Builder mergeEndorsement(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement value) { if (endorsementBuilder_ == null) { if (endorsement_ != null) { endorsement_ = org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.newBuilder(endorsement_).mergeFrom(value).buildPartial(); } else { endorsement_ = value; } onChanged(); } else { endorsementBuilder_.mergeFrom(value); } return this; } /** *
       * The endorsement of the proposal, basically
       * the endorser's signature over the payload
       * 
* * optional .protos.Endorsement endorsement = 6; */ public Builder clearEndorsement() { if (endorsementBuilder_ == null) { endorsement_ = null; onChanged(); } else { endorsement_ = null; endorsementBuilder_ = null; } return this; } /** *
       * The endorsement of the proposal, basically
       * the endorser's signature over the payload
       * 
* * optional .protos.Endorsement endorsement = 6; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder getEndorsementBuilder() { onChanged(); return getEndorsementFieldBuilder().getBuilder(); } /** *
       * The endorsement of the proposal, basically
       * the endorser's signature over the payload
       * 
* * optional .protos.Endorsement endorsement = 6; */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.EndorsementOrBuilder getEndorsementOrBuilder() { if (endorsementBuilder_ != null) { return endorsementBuilder_.getMessageOrBuilder(); } else { return endorsement_ == null ? org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.getDefaultInstance() : endorsement_; } } /** *
       * The endorsement of the proposal, basically
       * the endorser's signature over the payload
       * 
* * optional .protos.Endorsement endorsement = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder, org.hyperledger.fabric.protos.peer.FabricProposalResponse.EndorsementOrBuilder> getEndorsementFieldBuilder() { if (endorsementBuilder_ == null) { endorsementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder, org.hyperledger.fabric.protos.peer.FabricProposalResponse.EndorsementOrBuilder>( getEndorsement(), getParentForChildren(), isClean()); endorsement_ = null; } return endorsementBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.ProposalResponse) } // @@protoc_insertion_point(class_scope:protos.ProposalResponse) private static final org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse(); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ProposalResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProposalResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.Response) com.google.protobuf.MessageOrBuilder { /** *
     * A status code that should follow the HTTP status codes.
     * 
* * optional int32 status = 1; */ int getStatus(); /** *
     * A message associated with the response code.
     * 
* * optional string message = 2; */ java.lang.String getMessage(); /** *
     * A message associated with the response code.
     * 
* * optional string message = 2; */ com.google.protobuf.ByteString getMessageBytes(); /** *
     * A payload that can be used to include metadata with this response.
     * 
* * optional bytes payload = 3; */ com.google.protobuf.ByteString getPayload(); } /** *
   * A response with a representation similar to an HTTP response that can
   * be used within another message.
   * 
* * Protobuf type {@code protos.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.Response) ResponseOrBuilder { // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() { status_ = 0; message_ = ""; payload_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Response( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { status_ = input.readInt32(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); message_ = s; break; } case 26: { payload_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.class, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** *
     * A status code that should follow the HTTP status codes.
     * 
* * optional int32 status = 1; */ public int getStatus() { return status_; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** *
     * A message associated with the response code.
     * 
* * optional string message = 2; */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** *
     * A message associated with the response code.
     * 
* * optional string message = 2; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAYLOAD_FIELD_NUMBER = 3; private com.google.protobuf.ByteString payload_; /** *
     * A payload that can be used to include metadata with this response.
     * 
* * optional bytes payload = 3; */ public com.google.protobuf.ByteString getPayload() { return payload_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != 0) { output.writeInt32(1, status_); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } if (!payload_.isEmpty()) { output.writeBytes(3, payload_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, status_); } if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, payload_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response) obj; boolean result = true; result = result && (getStatus() == other.getStatus()); result = result && getMessage() .equals(other.getMessage()); result = result && getPayload() .equals(other.getPayload()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response 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.FabricProposalResponse.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response 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.FabricProposalResponse.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response 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.peer.FabricProposalResponse.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response 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.peer.FabricProposalResponse.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A response with a representation similar to an HTTP response that can
     * be used within another message.
     * 
* * Protobuf type {@code protos.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.Response) org.hyperledger.fabric.protos.peer.FabricProposalResponse.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.class, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); status_ = 0; message_ = ""; payload_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Response_descriptor; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response build() { org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response buildPartial() { org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response result = new org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response(this); result.status_ = status_; result.message_ = message_; result.payload_ = payload_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response) { return mergeFrom((org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.getDefaultInstance()) return this; if (other.getStatus() != 0) { setStatus(other.getStatus()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int status_ ; /** *
       * A status code that should follow the HTTP status codes.
       * 
* * optional int32 status = 1; */ public int getStatus() { return status_; } /** *
       * A status code that should follow the HTTP status codes.
       * 
* * optional int32 status = 1; */ public Builder setStatus(int value) { status_ = value; onChanged(); return this; } /** *
       * A status code that should follow the HTTP status codes.
       * 
* * optional int32 status = 1; */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** *
       * A message associated with the response code.
       * 
* * optional string message = 2; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A message associated with the response code.
       * 
* * optional string message = 2; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A message associated with the response code.
       * 
* * optional string message = 2; */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** *
       * A message associated with the response code.
       * 
* * optional string message = 2; */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** *
       * A message associated with the response code.
       * 
* * optional string message = 2; */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
       * A payload that can be used to include metadata with this response.
       * 
* * optional bytes payload = 3; */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
       * A payload that can be used to include metadata with this response.
       * 
* * optional bytes payload = 3; */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** *
       * A payload that can be used to include metadata with this response.
       * 
* * optional bytes payload = 3; */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.Response) } // @@protoc_insertion_point(class_scope:protos.Response) private static final org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response(); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Response(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProposalResponsePayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.ProposalResponsePayload) com.google.protobuf.MessageOrBuilder { /** *
     * Hash of the proposal that triggered this response. The hash is used to
     * link a response with its proposal, both for bookeeping purposes on an
     * asynchronous system and for security reasons (accountability,
     * non-repudiation). The hash usually covers the entire Proposal message
     * (byte-by-byte). However this implies that the hash can only be verified
     * if the entire proposal message is available when ProposalResponsePayload is
     * included in a transaction or stored in the ledger. For confidentiality
     * reasons, with chaincodes it might be undesirable to store the proposal
     * payload in the ledger.  If the type is CHAINCODE, this is handled by
     * separating the proposal's header and
     * the payload: the header is always hashed in its entirety whereas the
     * payload can either be hashed fully, or only its hash may be hashed, or
     * nothing from the payload can be hashed. The PayloadVisibility field in the
     * Header's extension controls to which extent the proposal payload is
     * "visible" in the sense that was just explained.
     * 
* * optional bytes proposal_hash = 1; */ com.google.protobuf.ByteString getProposalHash(); /** *
     * Extension should be unmarshaled to a type-specific message. The type of
     * the extension in any proposal response depends on the type of the proposal
     * that the client selected when the proposal was initially sent out.  In
     * particular, this information is stored in the type field of a Header.  For
     * chaincode, it's a ChaincodeAction message
     * 
* * optional bytes extension = 2; */ com.google.protobuf.ByteString getExtension(); } /** *
   * ProposalResponsePayload is the payload of a proposal response.  This message
   * is the "bridge" between the client's request and the endorser's action in
   * response to that request. Concretely, for chaincodes, it contains a hashed
   * representation of the proposal (proposalHash) and a representation of the
   * chaincode state changes and events inside the extension field.
   * 
* * Protobuf type {@code protos.ProposalResponsePayload} */ public static final class ProposalResponsePayload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.ProposalResponsePayload) ProposalResponsePayloadOrBuilder { // Use ProposalResponsePayload.newBuilder() to construct. private ProposalResponsePayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProposalResponsePayload() { proposalHash_ = com.google.protobuf.ByteString.EMPTY; extension_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ProposalResponsePayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { proposalHash_ = input.readBytes(); break; } case 18: { extension_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponsePayload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponsePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.class, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.Builder.class); } public static final int PROPOSAL_HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString proposalHash_; /** *
     * Hash of the proposal that triggered this response. The hash is used to
     * link a response with its proposal, both for bookeeping purposes on an
     * asynchronous system and for security reasons (accountability,
     * non-repudiation). The hash usually covers the entire Proposal message
     * (byte-by-byte). However this implies that the hash can only be verified
     * if the entire proposal message is available when ProposalResponsePayload is
     * included in a transaction or stored in the ledger. For confidentiality
     * reasons, with chaincodes it might be undesirable to store the proposal
     * payload in the ledger.  If the type is CHAINCODE, this is handled by
     * separating the proposal's header and
     * the payload: the header is always hashed in its entirety whereas the
     * payload can either be hashed fully, or only its hash may be hashed, or
     * nothing from the payload can be hashed. The PayloadVisibility field in the
     * Header's extension controls to which extent the proposal payload is
     * "visible" in the sense that was just explained.
     * 
* * optional bytes proposal_hash = 1; */ public com.google.protobuf.ByteString getProposalHash() { return proposalHash_; } public static final int EXTENSION_FIELD_NUMBER = 2; private com.google.protobuf.ByteString extension_; /** *
     * Extension should be unmarshaled to a type-specific message. The type of
     * the extension in any proposal response depends on the type of the proposal
     * that the client selected when the proposal was initially sent out.  In
     * particular, this information is stored in the type field of a Header.  For
     * chaincode, it's a ChaincodeAction message
     * 
* * optional bytes extension = 2; */ public com.google.protobuf.ByteString getExtension() { return extension_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!proposalHash_.isEmpty()) { output.writeBytes(1, proposalHash_); } if (!extension_.isEmpty()) { output.writeBytes(2, extension_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!proposalHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, proposalHash_); } if (!extension_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, extension_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) obj; boolean result = true; result = result && getProposalHash() .equals(other.getProposalHash()); result = result && getExtension() .equals(other.getExtension()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PROPOSAL_HASH_FIELD_NUMBER; hash = (53 * hash) + getProposalHash().hashCode(); hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtension().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload 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.FabricProposalResponse.ProposalResponsePayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload 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.FabricProposalResponse.ProposalResponsePayload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload 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.peer.FabricProposalResponse.ProposalResponsePayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload 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.peer.FabricProposalResponse.ProposalResponsePayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * ProposalResponsePayload is the payload of a proposal response.  This message
     * is the "bridge" between the client's request and the endorser's action in
     * response to that request. Concretely, for chaincodes, it contains a hashed
     * representation of the proposal (proposalHash) and a representation of the
     * chaincode state changes and events inside the extension field.
     * 
* * Protobuf type {@code protos.ProposalResponsePayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.ProposalResponsePayload) org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponsePayload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponsePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.class, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); proposalHash_ = com.google.protobuf.ByteString.EMPTY; extension_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_ProposalResponsePayload_descriptor; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload build() { org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload buildPartial() { org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload result = new org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload(this); result.proposalHash_ = proposalHash_; result.extension_ = extension_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) { return mergeFrom((org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance()) return this; if (other.getProposalHash() != com.google.protobuf.ByteString.EMPTY) { setProposalHash(other.getProposalHash()); } if (other.getExtension() != com.google.protobuf.ByteString.EMPTY) { setExtension(other.getExtension()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString proposalHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Hash of the proposal that triggered this response. The hash is used to
       * link a response with its proposal, both for bookeeping purposes on an
       * asynchronous system and for security reasons (accountability,
       * non-repudiation). The hash usually covers the entire Proposal message
       * (byte-by-byte). However this implies that the hash can only be verified
       * if the entire proposal message is available when ProposalResponsePayload is
       * included in a transaction or stored in the ledger. For confidentiality
       * reasons, with chaincodes it might be undesirable to store the proposal
       * payload in the ledger.  If the type is CHAINCODE, this is handled by
       * separating the proposal's header and
       * the payload: the header is always hashed in its entirety whereas the
       * payload can either be hashed fully, or only its hash may be hashed, or
       * nothing from the payload can be hashed. The PayloadVisibility field in the
       * Header's extension controls to which extent the proposal payload is
       * "visible" in the sense that was just explained.
       * 
* * optional bytes proposal_hash = 1; */ public com.google.protobuf.ByteString getProposalHash() { return proposalHash_; } /** *
       * Hash of the proposal that triggered this response. The hash is used to
       * link a response with its proposal, both for bookeeping purposes on an
       * asynchronous system and for security reasons (accountability,
       * non-repudiation). The hash usually covers the entire Proposal message
       * (byte-by-byte). However this implies that the hash can only be verified
       * if the entire proposal message is available when ProposalResponsePayload is
       * included in a transaction or stored in the ledger. For confidentiality
       * reasons, with chaincodes it might be undesirable to store the proposal
       * payload in the ledger.  If the type is CHAINCODE, this is handled by
       * separating the proposal's header and
       * the payload: the header is always hashed in its entirety whereas the
       * payload can either be hashed fully, or only its hash may be hashed, or
       * nothing from the payload can be hashed. The PayloadVisibility field in the
       * Header's extension controls to which extent the proposal payload is
       * "visible" in the sense that was just explained.
       * 
* * optional bytes proposal_hash = 1; */ public Builder setProposalHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proposalHash_ = value; onChanged(); return this; } /** *
       * Hash of the proposal that triggered this response. The hash is used to
       * link a response with its proposal, both for bookeeping purposes on an
       * asynchronous system and for security reasons (accountability,
       * non-repudiation). The hash usually covers the entire Proposal message
       * (byte-by-byte). However this implies that the hash can only be verified
       * if the entire proposal message is available when ProposalResponsePayload is
       * included in a transaction or stored in the ledger. For confidentiality
       * reasons, with chaincodes it might be undesirable to store the proposal
       * payload in the ledger.  If the type is CHAINCODE, this is handled by
       * separating the proposal's header and
       * the payload: the header is always hashed in its entirety whereas the
       * payload can either be hashed fully, or only its hash may be hashed, or
       * nothing from the payload can be hashed. The PayloadVisibility field in the
       * Header's extension controls to which extent the proposal payload is
       * "visible" in the sense that was just explained.
       * 
* * optional bytes proposal_hash = 1; */ public Builder clearProposalHash() { proposalHash_ = getDefaultInstance().getProposalHash(); onChanged(); return this; } private com.google.protobuf.ByteString extension_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Extension should be unmarshaled to a type-specific message. The type of
       * the extension in any proposal response depends on the type of the proposal
       * that the client selected when the proposal was initially sent out.  In
       * particular, this information is stored in the type field of a Header.  For
       * chaincode, it's a ChaincodeAction message
       * 
* * optional bytes extension = 2; */ public com.google.protobuf.ByteString getExtension() { return extension_; } /** *
       * Extension should be unmarshaled to a type-specific message. The type of
       * the extension in any proposal response depends on the type of the proposal
       * that the client selected when the proposal was initially sent out.  In
       * particular, this information is stored in the type field of a Header.  For
       * chaincode, it's a ChaincodeAction message
       * 
* * optional bytes extension = 2; */ public Builder setExtension(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); return this; } /** *
       * Extension should be unmarshaled to a type-specific message. The type of
       * the extension in any proposal response depends on the type of the proposal
       * that the client selected when the proposal was initially sent out.  In
       * particular, this information is stored in the type field of a Header.  For
       * chaincode, it's a ChaincodeAction message
       * 
* * optional bytes extension = 2; */ public Builder clearExtension() { extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.ProposalResponsePayload) } // @@protoc_insertion_point(class_scope:protos.ProposalResponsePayload) private static final org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload(); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ProposalResponsePayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProposalResponsePayload(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndorsementOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.Endorsement) com.google.protobuf.MessageOrBuilder { /** *
     * Identity of the endorser (e.g. its certificate)
     * 
* * optional bytes endorser = 1; */ com.google.protobuf.ByteString getEndorser(); /** *
     * Signature of the payload included in ProposalResponse concatenated with
     * the endorser's certificate; ie, sign(ProposalResponse.payload + endorser)
     * 
* * optional bytes signature = 2; */ com.google.protobuf.ByteString getSignature(); } /** *
   * An endorsement is a signature of an endorser over a proposal response.  By
   * producing an endorsement message, an endorser implicitly "approves" that
   * proposal response and the actions contained therein. When enough
   * endorsements have been collected, a transaction can be generated out of a
   * set of proposal responses.  Note that this message only contains an identity
   * and a signature but no signed payload. This is intentional because
   * endorsements are supposed to be collected in a transaction, and they are all
   * expected to endorse a single proposal response/action (many endorsements
   * over a single proposal response)
   * 
* * Protobuf type {@code protos.Endorsement} */ public static final class Endorsement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.Endorsement) EndorsementOrBuilder { // Use Endorsement.newBuilder() to construct. private Endorsement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Endorsement() { endorser_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Endorsement( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { endorser_ = input.readBytes(); break; } case 18: { signature_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Endorsement_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Endorsement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.class, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder.class); } public static final int ENDORSER_FIELD_NUMBER = 1; private com.google.protobuf.ByteString endorser_; /** *
     * Identity of the endorser (e.g. its certificate)
     * 
* * optional bytes endorser = 1; */ public com.google.protobuf.ByteString getEndorser() { return endorser_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** *
     * Signature of the payload included in ProposalResponse concatenated with
     * the endorser's certificate; ie, sign(ProposalResponse.payload + endorser)
     * 
* * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!endorser_.isEmpty()) { output.writeBytes(1, endorser_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!endorser_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, endorser_); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement) obj; boolean result = true; result = result && getEndorser() .equals(other.getEndorser()); result = result && getSignature() .equals(other.getSignature()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ENDORSER_FIELD_NUMBER; hash = (53 * hash) + getEndorser().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement 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.FabricProposalResponse.Endorsement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement 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.FabricProposalResponse.Endorsement parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement 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.peer.FabricProposalResponse.Endorsement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement 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.peer.FabricProposalResponse.Endorsement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * An endorsement is a signature of an endorser over a proposal response.  By
     * producing an endorsement message, an endorser implicitly "approves" that
     * proposal response and the actions contained therein. When enough
     * endorsements have been collected, a transaction can be generated out of a
     * set of proposal responses.  Note that this message only contains an identity
     * and a signature but no signed payload. This is intentional because
     * endorsements are supposed to be collected in a transaction, and they are all
     * expected to endorse a single proposal response/action (many endorsements
     * over a single proposal response)
     * 
* * Protobuf type {@code protos.Endorsement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.Endorsement) org.hyperledger.fabric.protos.peer.FabricProposalResponse.EndorsementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Endorsement_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Endorsement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.class, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); endorser_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.internal_static_protos_Endorsement_descriptor; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.getDefaultInstance(); } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement build() { org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement buildPartial() { org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement result = new org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement(this); result.endorser_ = endorser_; result.signature_ = signature_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement) { return mergeFrom((org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.getDefaultInstance()) return this; if (other.getEndorser() != com.google.protobuf.ByteString.EMPTY) { setEndorser(other.getEndorser()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString endorser_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Identity of the endorser (e.g. its certificate)
       * 
* * optional bytes endorser = 1; */ public com.google.protobuf.ByteString getEndorser() { return endorser_; } /** *
       * Identity of the endorser (e.g. its certificate)
       * 
* * optional bytes endorser = 1; */ public Builder setEndorser(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endorser_ = value; onChanged(); return this; } /** *
       * Identity of the endorser (e.g. its certificate)
       * 
* * optional bytes endorser = 1; */ public Builder clearEndorser() { endorser_ = getDefaultInstance().getEndorser(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Signature of the payload included in ProposalResponse concatenated with
       * the endorser's certificate; ie, sign(ProposalResponse.payload + endorser)
       * 
* * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** *
       * Signature of the payload included in ProposalResponse concatenated with
       * the endorser's certificate; ie, sign(ProposalResponse.payload + endorser)
       * 
* * optional bytes signature = 2; */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** *
       * Signature of the payload included in ProposalResponse concatenated with
       * the endorser's certificate; ie, sign(ProposalResponse.payload + endorser)
       * 
* * optional bytes signature = 2; */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protos.Endorsement) } // @@protoc_insertion_point(class_scope:protos.Endorsement) private static final org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement(); } public static org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Endorsement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Endorsement(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_ProposalResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_ProposalResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_Response_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_ProposalResponsePayload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_ProposalResponsePayload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_Endorsement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_Endorsement_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\034peer/proposal_response.proto\022\006protos\032\037" + "google/protobuf/timestamp.proto\"\261\001\n\020Prop" + "osalResponse\022\017\n\007version\030\001 \001(\005\022-\n\ttimesta" + "mp\030\002 \001(\0132\032.google.protobuf.Timestamp\022\"\n\010" + "response\030\004 \001(\0132\020.protos.Response\022\017\n\007payl" + "oad\030\005 \001(\014\022(\n\013endorsement\030\006 \001(\0132\023.protos." + "Endorsement\"<\n\010Response\022\016\n\006status\030\001 \001(\005\022" + "\017\n\007message\030\002 \001(\t\022\017\n\007payload\030\003 \001(\014\"C\n\027Pro" + "posalResponsePayload\022\025\n\rproposal_hash\030\001 " + "\001(\014\022\021\n\textension\030\002 \001(\014\"2\n\013Endorsement\022\020\n", "\010endorser\030\001 \001(\014\022\021\n\tsignature\030\002 \001(\014Bg\n\"or" + "g.hyperledger.fabric.protos.peerB\026Fabric" + "ProposalResponseZ)github.com/hyperledger" + "/fabric/protos/peerb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); internal_static_protos_ProposalResponse_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protos_ProposalResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_ProposalResponse_descriptor, new java.lang.String[] { "Version", "Timestamp", "Response", "Payload", "Endorsement", }); internal_static_protos_Response_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protos_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_Response_descriptor, new java.lang.String[] { "Status", "Message", "Payload", }); internal_static_protos_ProposalResponsePayload_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protos_ProposalResponsePayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_ProposalResponsePayload_descriptor, new java.lang.String[] { "ProposalHash", "Extension", }); internal_static_protos_Endorsement_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protos_Endorsement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_Endorsement_descriptor, new java.lang.String[] { "Endorser", "Signature", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy