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

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

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

package org.hyperledger.fabric.protos.peer;

/**
 * 
 * ChaincodeCall defines a call to a chaincode.
 * It may have collections that are related to the chaincode
 * 
* * Protobuf type {@code protos.ChaincodeCall} */ public final class ChaincodeCall extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protos.ChaincodeCall) ChaincodeCallOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", ChaincodeCall.class.getName()); } // Use ChaincodeCall.newBuilder() to construct. private ChaincodeCall(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ChaincodeCall() { name_ = ""; collectionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); keyPolicies_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ChaincodeCall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ChaincodeCall_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeCall.class, org.hyperledger.fabric.protos.peer.ChaincodeCall.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1 [json_name = "name"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1 [json_name = "name"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLLECTION_NAMES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList collectionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @return A list containing the collectionNames. */ public com.google.protobuf.ProtocolStringList getCollectionNamesList() { return collectionNames_; } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @return The count of collectionNames. */ public int getCollectionNamesCount() { return collectionNames_.size(); } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @param index The index of the element to return. * @return The collectionNames at the given index. */ public java.lang.String getCollectionNames(int index) { return collectionNames_.get(index); } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @param index The index of the value to return. * @return The bytes of the collectionNames at the given index. */ public com.google.protobuf.ByteString getCollectionNamesBytes(int index) { return collectionNames_.getByteString(index); } public static final int NO_PRIVATE_READS_FIELD_NUMBER = 3; private boolean noPrivateReads_ = false; /** *
   * Indicates we do not need to read from private data
   * 
* * bool no_private_reads = 3 [json_name = "noPrivateReads"]; * @return The noPrivateReads. */ @java.lang.Override public boolean getNoPrivateReads() { return noPrivateReads_; } public static final int NO_PUBLIC_WRITES_FIELD_NUMBER = 4; private boolean noPublicWrites_ = false; /** *
   * Indicates we do not need to write to the chaincode namespace
   * 
* * bool no_public_writes = 4 [json_name = "noPublicWrites"]; * @return The noPublicWrites. */ @java.lang.Override public boolean getNoPublicWrites() { return noPublicWrites_; } public static final int KEY_POLICIES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List keyPolicies_; /** *
   * The set of signature policies associated with states in the write-set
   * that have state-based endorsement policies.
   * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ @java.lang.Override public java.util.List getKeyPoliciesList() { return keyPolicies_; } /** *
   * The set of signature policies associated with states in the write-set
   * that have state-based endorsement policies.
   * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ @java.lang.Override public java.util.List getKeyPoliciesOrBuilderList() { return keyPolicies_; } /** *
   * The set of signature policies associated with states in the write-set
   * that have state-based endorsement policies.
   * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ @java.lang.Override public int getKeyPoliciesCount() { return keyPolicies_.size(); } /** *
   * The set of signature policies associated with states in the write-set
   * that have state-based endorsement policies.
   * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ @java.lang.Override public org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope getKeyPolicies(int index) { return keyPolicies_.get(index); } /** *
   * The set of signature policies associated with states in the write-set
   * that have state-based endorsement policies.
   * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ @java.lang.Override public org.hyperledger.fabric.protos.common.SignaturePolicyEnvelopeOrBuilder getKeyPoliciesOrBuilder( int index) { return keyPolicies_.get(index); } public static final int DISREGARD_NAMESPACE_POLICY_FIELD_NUMBER = 6; private boolean disregardNamespacePolicy_ = false; /** *
   * Indicates we wish to ignore the namespace endorsement policy
   * 
* * bool disregard_namespace_policy = 6 [json_name = "disregardNamespacePolicy"]; * @return The disregardNamespacePolicy. */ @java.lang.Override public boolean getDisregardNamespacePolicy() { return disregardNamespacePolicy_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } for (int i = 0; i < collectionNames_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 2, collectionNames_.getRaw(i)); } if (noPrivateReads_ != false) { output.writeBool(3, noPrivateReads_); } if (noPublicWrites_ != false) { output.writeBool(4, noPublicWrites_); } for (int i = 0; i < keyPolicies_.size(); i++) { output.writeMessage(5, keyPolicies_.get(i)); } if (disregardNamespacePolicy_ != false) { output.writeBool(6, disregardNamespacePolicy_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < collectionNames_.size(); i++) { dataSize += computeStringSizeNoTag(collectionNames_.getRaw(i)); } size += dataSize; size += 1 * getCollectionNamesList().size(); } if (noPrivateReads_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, noPrivateReads_); } if (noPublicWrites_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, noPublicWrites_); } for (int i = 0; i < keyPolicies_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, keyPolicies_.get(i)); } if (disregardNamespacePolicy_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, disregardNamespacePolicy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.ChaincodeCall)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ChaincodeCall other = (org.hyperledger.fabric.protos.peer.ChaincodeCall) obj; if (!getName() .equals(other.getName())) return false; if (!getCollectionNamesList() .equals(other.getCollectionNamesList())) return false; if (getNoPrivateReads() != other.getNoPrivateReads()) return false; if (getNoPublicWrites() != other.getNoPublicWrites()) return false; if (!getKeyPoliciesList() .equals(other.getKeyPoliciesList())) return false; if (getDisregardNamespacePolicy() != other.getDisregardNamespacePolicy()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getCollectionNamesCount() > 0) { hash = (37 * hash) + COLLECTION_NAMES_FIELD_NUMBER; hash = (53 * hash) + getCollectionNamesList().hashCode(); } hash = (37 * hash) + NO_PRIVATE_READS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNoPrivateReads()); hash = (37 * hash) + NO_PUBLIC_WRITES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNoPublicWrites()); if (getKeyPoliciesCount() > 0) { hash = (37 * hash) + KEY_POLICIES_FIELD_NUMBER; hash = (53 * hash) + getKeyPoliciesList().hashCode(); } hash = (37 * hash) + DISREGARD_NAMESPACE_POLICY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisregardNamespacePolicy()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.ChaincodeCall parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall 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.ChaincodeCall parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall 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.ChaincodeCall parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.ChaincodeCall prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * ChaincodeCall defines a call to a chaincode.
   * It may have collections that are related to the chaincode
   * 
* * Protobuf type {@code protos.ChaincodeCall} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protos.ChaincodeCall) org.hyperledger.fabric.protos.peer.ChaincodeCallOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ChaincodeCall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ChaincodeCall_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeCall.class, org.hyperledger.fabric.protos.peer.ChaincodeCall.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.ChaincodeCall.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; collectionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); noPrivateReads_ = false; noPublicWrites_ = false; if (keyPoliciesBuilder_ == null) { keyPolicies_ = java.util.Collections.emptyList(); } else { keyPolicies_ = null; keyPoliciesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); disregardNamespacePolicy_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.ProposalResponseProto.internal_static_protos_ChaincodeCall_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeCall getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.ChaincodeCall.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeCall build() { org.hyperledger.fabric.protos.peer.ChaincodeCall result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeCall buildPartial() { org.hyperledger.fabric.protos.peer.ChaincodeCall result = new org.hyperledger.fabric.protos.peer.ChaincodeCall(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.peer.ChaincodeCall result) { if (keyPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { keyPolicies_ = java.util.Collections.unmodifiableList(keyPolicies_); bitField0_ = (bitField0_ & ~0x00000010); } result.keyPolicies_ = keyPolicies_; } else { result.keyPolicies_ = keyPoliciesBuilder_.build(); } } private void buildPartial0(org.hyperledger.fabric.protos.peer.ChaincodeCall result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { collectionNames_.makeImmutable(); result.collectionNames_ = collectionNames_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.noPrivateReads_ = noPrivateReads_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.noPublicWrites_ = noPublicWrites_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.disregardNamespacePolicy_ = disregardNamespacePolicy_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.ChaincodeCall) { return mergeFrom((org.hyperledger.fabric.protos.peer.ChaincodeCall)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ChaincodeCall other) { if (other == org.hyperledger.fabric.protos.peer.ChaincodeCall.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.collectionNames_.isEmpty()) { if (collectionNames_.isEmpty()) { collectionNames_ = other.collectionNames_; bitField0_ |= 0x00000002; } else { ensureCollectionNamesIsMutable(); collectionNames_.addAll(other.collectionNames_); } onChanged(); } if (other.getNoPrivateReads() != false) { setNoPrivateReads(other.getNoPrivateReads()); } if (other.getNoPublicWrites() != false) { setNoPublicWrites(other.getNoPublicWrites()); } if (keyPoliciesBuilder_ == null) { if (!other.keyPolicies_.isEmpty()) { if (keyPolicies_.isEmpty()) { keyPolicies_ = other.keyPolicies_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureKeyPoliciesIsMutable(); keyPolicies_.addAll(other.keyPolicies_); } onChanged(); } } else { if (!other.keyPolicies_.isEmpty()) { if (keyPoliciesBuilder_.isEmpty()) { keyPoliciesBuilder_.dispose(); keyPoliciesBuilder_ = null; keyPolicies_ = other.keyPolicies_; bitField0_ = (bitField0_ & ~0x00000010); keyPoliciesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getKeyPoliciesFieldBuilder() : null; } else { keyPoliciesBuilder_.addAllMessages(other.keyPolicies_); } } } if (other.getDisregardNamespacePolicy() != false) { setDisregardNamespacePolicy(other.getDisregardNamespacePolicy()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureCollectionNamesIsMutable(); collectionNames_.add(s); break; } // case 18 case 24: { noPrivateReads_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { noPublicWrites_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope m = input.readMessage( org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.parser(), extensionRegistry); if (keyPoliciesBuilder_ == null) { ensureKeyPoliciesIsMutable(); keyPolicies_.add(m); } else { keyPoliciesBuilder_.addMessage(m); } break; } // case 42 case 48: { disregardNamespacePolicy_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1 [json_name = "name"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1 [json_name = "name"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1 [json_name = "name"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1 [json_name = "name"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList collectionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCollectionNamesIsMutable() { if (!collectionNames_.isModifiable()) { collectionNames_ = new com.google.protobuf.LazyStringArrayList(collectionNames_); } bitField0_ |= 0x00000002; } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @return A list containing the collectionNames. */ public com.google.protobuf.ProtocolStringList getCollectionNamesList() { collectionNames_.makeImmutable(); return collectionNames_; } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @return The count of collectionNames. */ public int getCollectionNamesCount() { return collectionNames_.size(); } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @param index The index of the element to return. * @return The collectionNames at the given index. */ public java.lang.String getCollectionNames(int index) { return collectionNames_.get(index); } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @param index The index of the value to return. * @return The bytes of the collectionNames at the given index. */ public com.google.protobuf.ByteString getCollectionNamesBytes(int index) { return collectionNames_.getByteString(index); } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @param index The index to set the value at. * @param value The collectionNames to set. * @return This builder for chaining. */ public Builder setCollectionNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCollectionNamesIsMutable(); collectionNames_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @param value The collectionNames to add. * @return This builder for chaining. */ public Builder addCollectionNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCollectionNamesIsMutable(); collectionNames_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @param values The collectionNames to add. * @return This builder for chaining. */ public Builder addAllCollectionNames( java.lang.Iterable values) { ensureCollectionNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, collectionNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @return This builder for chaining. */ public Builder clearCollectionNames() { collectionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** * repeated string collection_names = 2 [json_name = "collectionNames"]; * @param value The bytes of the collectionNames to add. * @return This builder for chaining. */ public Builder addCollectionNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCollectionNamesIsMutable(); collectionNames_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private boolean noPrivateReads_ ; /** *
     * Indicates we do not need to read from private data
     * 
* * bool no_private_reads = 3 [json_name = "noPrivateReads"]; * @return The noPrivateReads. */ @java.lang.Override public boolean getNoPrivateReads() { return noPrivateReads_; } /** *
     * Indicates we do not need to read from private data
     * 
* * bool no_private_reads = 3 [json_name = "noPrivateReads"]; * @param value The noPrivateReads to set. * @return This builder for chaining. */ public Builder setNoPrivateReads(boolean value) { noPrivateReads_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Indicates we do not need to read from private data
     * 
* * bool no_private_reads = 3 [json_name = "noPrivateReads"]; * @return This builder for chaining. */ public Builder clearNoPrivateReads() { bitField0_ = (bitField0_ & ~0x00000004); noPrivateReads_ = false; onChanged(); return this; } private boolean noPublicWrites_ ; /** *
     * Indicates we do not need to write to the chaincode namespace
     * 
* * bool no_public_writes = 4 [json_name = "noPublicWrites"]; * @return The noPublicWrites. */ @java.lang.Override public boolean getNoPublicWrites() { return noPublicWrites_; } /** *
     * Indicates we do not need to write to the chaincode namespace
     * 
* * bool no_public_writes = 4 [json_name = "noPublicWrites"]; * @param value The noPublicWrites to set. * @return This builder for chaining. */ public Builder setNoPublicWrites(boolean value) { noPublicWrites_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Indicates we do not need to write to the chaincode namespace
     * 
* * bool no_public_writes = 4 [json_name = "noPublicWrites"]; * @return This builder for chaining. */ public Builder clearNoPublicWrites() { bitField0_ = (bitField0_ & ~0x00000008); noPublicWrites_ = false; onChanged(); return this; } private java.util.List keyPolicies_ = java.util.Collections.emptyList(); private void ensureKeyPoliciesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { keyPolicies_ = new java.util.ArrayList(keyPolicies_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.Builder, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelopeOrBuilder> keyPoliciesBuilder_; /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public java.util.List getKeyPoliciesList() { if (keyPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(keyPolicies_); } else { return keyPoliciesBuilder_.getMessageList(); } } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public int getKeyPoliciesCount() { if (keyPoliciesBuilder_ == null) { return keyPolicies_.size(); } else { return keyPoliciesBuilder_.getCount(); } } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope getKeyPolicies(int index) { if (keyPoliciesBuilder_ == null) { return keyPolicies_.get(index); } else { return keyPoliciesBuilder_.getMessage(index); } } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public Builder setKeyPolicies( int index, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope value) { if (keyPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyPoliciesIsMutable(); keyPolicies_.set(index, value); onChanged(); } else { keyPoliciesBuilder_.setMessage(index, value); } return this; } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public Builder setKeyPolicies( int index, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.Builder builderForValue) { if (keyPoliciesBuilder_ == null) { ensureKeyPoliciesIsMutable(); keyPolicies_.set(index, builderForValue.build()); onChanged(); } else { keyPoliciesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public Builder addKeyPolicies(org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope value) { if (keyPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyPoliciesIsMutable(); keyPolicies_.add(value); onChanged(); } else { keyPoliciesBuilder_.addMessage(value); } return this; } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public Builder addKeyPolicies( int index, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope value) { if (keyPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyPoliciesIsMutable(); keyPolicies_.add(index, value); onChanged(); } else { keyPoliciesBuilder_.addMessage(index, value); } return this; } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public Builder addKeyPolicies( org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.Builder builderForValue) { if (keyPoliciesBuilder_ == null) { ensureKeyPoliciesIsMutable(); keyPolicies_.add(builderForValue.build()); onChanged(); } else { keyPoliciesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public Builder addKeyPolicies( int index, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.Builder builderForValue) { if (keyPoliciesBuilder_ == null) { ensureKeyPoliciesIsMutable(); keyPolicies_.add(index, builderForValue.build()); onChanged(); } else { keyPoliciesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public Builder addAllKeyPolicies( java.lang.Iterable values) { if (keyPoliciesBuilder_ == null) { ensureKeyPoliciesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keyPolicies_); onChanged(); } else { keyPoliciesBuilder_.addAllMessages(values); } return this; } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public Builder clearKeyPolicies() { if (keyPoliciesBuilder_ == null) { keyPolicies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { keyPoliciesBuilder_.clear(); } return this; } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public Builder removeKeyPolicies(int index) { if (keyPoliciesBuilder_ == null) { ensureKeyPoliciesIsMutable(); keyPolicies_.remove(index); onChanged(); } else { keyPoliciesBuilder_.remove(index); } return this; } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.Builder getKeyPoliciesBuilder( int index) { return getKeyPoliciesFieldBuilder().getBuilder(index); } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public org.hyperledger.fabric.protos.common.SignaturePolicyEnvelopeOrBuilder getKeyPoliciesOrBuilder( int index) { if (keyPoliciesBuilder_ == null) { return keyPolicies_.get(index); } else { return keyPoliciesBuilder_.getMessageOrBuilder(index); } } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public java.util.List getKeyPoliciesOrBuilderList() { if (keyPoliciesBuilder_ != null) { return keyPoliciesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(keyPolicies_); } } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.Builder addKeyPoliciesBuilder() { return getKeyPoliciesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.getDefaultInstance()); } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.Builder addKeyPoliciesBuilder( int index) { return getKeyPoliciesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.getDefaultInstance()); } /** *
     * The set of signature policies associated with states in the write-set
     * that have state-based endorsement policies.
     * 
* * repeated .common.SignaturePolicyEnvelope key_policies = 5 [json_name = "keyPolicies"]; */ public java.util.List getKeyPoliciesBuilderList() { return getKeyPoliciesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.Builder, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelopeOrBuilder> getKeyPoliciesFieldBuilder() { if (keyPoliciesBuilder_ == null) { keyPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelope.Builder, org.hyperledger.fabric.protos.common.SignaturePolicyEnvelopeOrBuilder>( keyPolicies_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); keyPolicies_ = null; } return keyPoliciesBuilder_; } private boolean disregardNamespacePolicy_ ; /** *
     * Indicates we wish to ignore the namespace endorsement policy
     * 
* * bool disregard_namespace_policy = 6 [json_name = "disregardNamespacePolicy"]; * @return The disregardNamespacePolicy. */ @java.lang.Override public boolean getDisregardNamespacePolicy() { return disregardNamespacePolicy_; } /** *
     * Indicates we wish to ignore the namespace endorsement policy
     * 
* * bool disregard_namespace_policy = 6 [json_name = "disregardNamespacePolicy"]; * @param value The disregardNamespacePolicy to set. * @return This builder for chaining. */ public Builder setDisregardNamespacePolicy(boolean value) { disregardNamespacePolicy_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Indicates we wish to ignore the namespace endorsement policy
     * 
* * bool disregard_namespace_policy = 6 [json_name = "disregardNamespacePolicy"]; * @return This builder for chaining. */ public Builder clearDisregardNamespacePolicy() { bitField0_ = (bitField0_ & ~0x00000020); disregardNamespacePolicy_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protos.ChaincodeCall) } // @@protoc_insertion_point(class_scope:protos.ChaincodeCall) private static final org.hyperledger.fabric.protos.peer.ChaincodeCall DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.ChaincodeCall(); } public static org.hyperledger.fabric.protos.peer.ChaincodeCall getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeCall parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeCall getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy