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

org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult Maven / Gradle / Ivy

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

package org.hyperledger.fabric.protos.peer.lifecycle;

/**
 * 
 * CheckCommitReadinessResult is the message returned by
 * `_lifecycle.CheckCommitReadiness`. It returns a map of
 * orgs to their approval (true/false) for the definition
 * supplied as args. Additionally, it returns a map of
 * parameter mismatches between each organization's
 * approved definition and the definition supplied as args.
 * 
* * Protobuf type {@code lifecycle.CheckCommitReadinessResult} */ public final class CheckCommitReadinessResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:lifecycle.CheckCommitReadinessResult) CheckCommitReadinessResultOrBuilder { 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= */ "", CheckCommitReadinessResult.class.getName()); } // Use CheckCommitReadinessResult.newBuilder() to construct. private CheckCommitReadinessResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private CheckCommitReadinessResult() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetApprovals(); case 2: return internalGetMismatches(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.class, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Builder.class); } public interface MismatchesOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.CheckCommitReadinessResult.Mismatches) com.google.protobuf.MessageOrBuilder { /** * repeated string items = 1 [json_name = "items"]; * @return A list containing the items. */ java.util.List getItemsList(); /** * repeated string items = 1 [json_name = "items"]; * @return The count of items. */ int getItemsCount(); /** * repeated string items = 1 [json_name = "items"]; * @param index The index of the element to return. * @return The items at the given index. */ java.lang.String getItems(int index); /** * repeated string items = 1 [json_name = "items"]; * @param index The index of the value to return. * @return The bytes of the items at the given index. */ com.google.protobuf.ByteString getItemsBytes(int index); } /** * Protobuf type {@code lifecycle.CheckCommitReadinessResult.Mismatches} */ public static final class Mismatches extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:lifecycle.CheckCommitReadinessResult.Mismatches) MismatchesOrBuilder { 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= */ "", Mismatches.class.getName()); } // Use Mismatches.newBuilder() to construct. private Mismatches(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Mismatches() { items_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_Mismatches_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_Mismatches_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.class, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.Builder.class); } public static final int ITEMS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList items_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string items = 1 [json_name = "items"]; * @return A list containing the items. */ public com.google.protobuf.ProtocolStringList getItemsList() { return items_; } /** * repeated string items = 1 [json_name = "items"]; * @return The count of items. */ public int getItemsCount() { return items_.size(); } /** * repeated string items = 1 [json_name = "items"]; * @param index The index of the element to return. * @return The items at the given index. */ public java.lang.String getItems(int index) { return items_.get(index); } /** * repeated string items = 1 [json_name = "items"]; * @param index The index of the value to return. * @return The bytes of the items at the given index. */ public com.google.protobuf.ByteString getItemsBytes(int index) { return items_.getByteString(index); } 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 { for (int i = 0; i < items_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 1, items_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < items_.size(); i++) { dataSize += computeStringSizeNoTag(items_.getRaw(i)); } size += dataSize; size += 1 * getItemsList().size(); } 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.lifecycle.CheckCommitReadinessResult.Mismatches)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches other = (org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches) obj; if (!getItemsList() .equals(other.getItemsList())) 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(); if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches 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.lifecycle.CheckCommitReadinessResult.Mismatches parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches 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.lifecycle.CheckCommitReadinessResult.Mismatches parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches 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.lifecycle.CheckCommitReadinessResult.Mismatches parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches 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.lifecycle.CheckCommitReadinessResult.Mismatches parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches 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.lifecycle.CheckCommitReadinessResult.Mismatches 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.lifecycle.CheckCommitReadinessResult.Mismatches 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.lifecycle.CheckCommitReadinessResult.Mismatches 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; } /** * Protobuf type {@code lifecycle.CheckCommitReadinessResult.Mismatches} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.CheckCommitReadinessResult.Mismatches) org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.MismatchesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_Mismatches_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_Mismatches_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.class, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; items_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_Mismatches_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches build() { org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches result = new org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { items_.makeImmutable(); result.items_ = items_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.getDefaultInstance()) return this; if (!other.items_.isEmpty()) { if (items_.isEmpty()) { items_ = other.items_; bitField0_ |= 0x00000001; } else { ensureItemsIsMutable(); items_.addAll(other.items_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureItemsIsMutable(); items_.add(s); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList items_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureItemsIsMutable() { if (!items_.isModifiable()) { items_ = new com.google.protobuf.LazyStringArrayList(items_); } bitField0_ |= 0x00000001; } /** * repeated string items = 1 [json_name = "items"]; * @return A list containing the items. */ public com.google.protobuf.ProtocolStringList getItemsList() { items_.makeImmutable(); return items_; } /** * repeated string items = 1 [json_name = "items"]; * @return The count of items. */ public int getItemsCount() { return items_.size(); } /** * repeated string items = 1 [json_name = "items"]; * @param index The index of the element to return. * @return The items at the given index. */ public java.lang.String getItems(int index) { return items_.get(index); } /** * repeated string items = 1 [json_name = "items"]; * @param index The index of the value to return. * @return The bytes of the items at the given index. */ public com.google.protobuf.ByteString getItemsBytes(int index) { return items_.getByteString(index); } /** * repeated string items = 1 [json_name = "items"]; * @param index The index to set the value at. * @param value The items to set. * @return This builder for chaining. */ public Builder setItems( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string items = 1 [json_name = "items"]; * @param value The items to add. * @return This builder for chaining. */ public Builder addItems( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string items = 1 [json_name = "items"]; * @param values The items to add. * @return This builder for chaining. */ public Builder addAllItems( java.lang.Iterable values) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, items_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string items = 1 [json_name = "items"]; * @return This builder for chaining. */ public Builder clearItems() { items_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** * repeated string items = 1 [json_name = "items"]; * @param value The bytes of the items to add. * @return This builder for chaining. */ public Builder addItemsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureItemsIsMutable(); items_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:lifecycle.CheckCommitReadinessResult.Mismatches) } // @@protoc_insertion_point(class_scope:lifecycle.CheckCommitReadinessResult.Mismatches) private static final org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches(); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Mismatches 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.lifecycle.CheckCommitReadinessResult.Mismatches getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int APPROVALS_FIELD_NUMBER = 1; private static final class ApprovalsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Boolean> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_ApprovalsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BOOL, false); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.Boolean> approvals_; private com.google.protobuf.MapField internalGetApprovals() { if (approvals_ == null) { return com.google.protobuf.MapField.emptyMapField( ApprovalsDefaultEntryHolder.defaultEntry); } return approvals_; } public int getApprovalsCount() { return internalGetApprovals().getMap().size(); } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ @java.lang.Override public boolean containsApprovals( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetApprovals().getMap().containsKey(key); } /** * Use {@link #getApprovalsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getApprovals() { return getApprovalsMap(); } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ @java.lang.Override public java.util.Map getApprovalsMap() { return internalGetApprovals().getMap(); } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ @java.lang.Override public boolean getApprovalsOrDefault( java.lang.String key, boolean defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ @java.lang.Override public boolean getApprovalsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MISMATCHES_FIELD_NUMBER = 2; private static final class MismatchesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_MismatchesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches> mismatches_; private com.google.protobuf.MapField internalGetMismatches() { if (mismatches_ == null) { return com.google.protobuf.MapField.emptyMapField( MismatchesDefaultEntryHolder.defaultEntry); } return mismatches_; } public int getMismatchesCount() { return internalGetMismatches().getMap().size(); } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ @java.lang.Override public boolean containsMismatches( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMismatches().getMap().containsKey(key); } /** * Use {@link #getMismatchesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMismatches() { return getMismatchesMap(); } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ @java.lang.Override public java.util.Map getMismatchesMap() { return internalGetMismatches().getMap(); } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ @java.lang.Override public /* nullable */ org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches getMismatchesOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMismatches().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches getMismatchesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMismatches().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 { com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetApprovals(), ApprovalsDefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetMismatches(), MismatchesDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetApprovals().getMap().entrySet()) { com.google.protobuf.MapEntry approvals__ = ApprovalsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, approvals__); } for (java.util.Map.Entry entry : internalGetMismatches().getMap().entrySet()) { com.google.protobuf.MapEntry mismatches__ = MismatchesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, mismatches__); } 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.lifecycle.CheckCommitReadinessResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult other = (org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult) obj; if (!internalGetApprovals().equals( other.internalGetApprovals())) return false; if (!internalGetMismatches().equals( other.internalGetMismatches())) 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(); if (!internalGetApprovals().getMap().isEmpty()) { hash = (37 * hash) + APPROVALS_FIELD_NUMBER; hash = (53 * hash) + internalGetApprovals().hashCode(); } if (!internalGetMismatches().getMap().isEmpty()) { hash = (37 * hash) + MISMATCHES_FIELD_NUMBER; hash = (53 * hash) + internalGetMismatches().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult 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.lifecycle.CheckCommitReadinessResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult 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.lifecycle.CheckCommitReadinessResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult 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.lifecycle.CheckCommitReadinessResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult 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.lifecycle.CheckCommitReadinessResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult 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.lifecycle.CheckCommitReadinessResult 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.lifecycle.CheckCommitReadinessResult 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.lifecycle.CheckCommitReadinessResult 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; } /** *
   * CheckCommitReadinessResult is the message returned by
   * `_lifecycle.CheckCommitReadiness`. It returns a map of
   * orgs to their approval (true/false) for the definition
   * supplied as args. Additionally, it returns a map of
   * parameter mismatches between each organization's
   * approved definition and the definition supplied as args.
   * 
* * Protobuf type {@code lifecycle.CheckCommitReadinessResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.CheckCommitReadinessResult) org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetApprovals(); case 2: return internalGetMismatches(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: return internalGetMutableApprovals(); case 2: return internalGetMutableMismatches(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.class, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableApprovals().clear(); internalGetMutableMismatches().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_CheckCommitReadinessResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult build() { org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult result = new org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.approvals_ = internalGetApprovals(); result.approvals_.makeImmutable(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.mismatches_ = internalGetMismatches().build(MismatchesDefaultEntryHolder.defaultEntry); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.getDefaultInstance()) return this; internalGetMutableApprovals().mergeFrom( other.internalGetApprovals()); bitField0_ |= 0x00000001; internalGetMutableMismatches().mergeFrom( other.internalGetMismatches()); bitField0_ |= 0x00000002; 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: { com.google.protobuf.MapEntry approvals__ = input.readMessage( ApprovalsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableApprovals().getMutableMap().put( approvals__.getKey(), approvals__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry mismatches__ = input.readMessage( MismatchesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMismatches().ensureBuilderMap().put( mismatches__.getKey(), mismatches__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.Boolean> approvals_; private com.google.protobuf.MapField internalGetApprovals() { if (approvals_ == null) { return com.google.protobuf.MapField.emptyMapField( ApprovalsDefaultEntryHolder.defaultEntry); } return approvals_; } private com.google.protobuf.MapField internalGetMutableApprovals() { if (approvals_ == null) { approvals_ = com.google.protobuf.MapField.newMapField( ApprovalsDefaultEntryHolder.defaultEntry); } if (!approvals_.isMutable()) { approvals_ = approvals_.copy(); } bitField0_ |= 0x00000001; onChanged(); return approvals_; } public int getApprovalsCount() { return internalGetApprovals().getMap().size(); } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ @java.lang.Override public boolean containsApprovals( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetApprovals().getMap().containsKey(key); } /** * Use {@link #getApprovalsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getApprovals() { return getApprovalsMap(); } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ @java.lang.Override public java.util.Map getApprovalsMap() { return internalGetApprovals().getMap(); } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ @java.lang.Override public boolean getApprovalsOrDefault( java.lang.String key, boolean defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ @java.lang.Override public boolean getApprovalsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetApprovals().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearApprovals() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableApprovals().getMutableMap() .clear(); return this; } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ public Builder removeApprovals( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableApprovals().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableApprovals() { bitField0_ |= 0x00000001; return internalGetMutableApprovals().getMutableMap(); } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ public Builder putApprovals( java.lang.String key, boolean value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableApprovals().getMutableMap() .put(key, value); bitField0_ |= 0x00000001; return this; } /** * map<string, bool> approvals = 1 [json_name = "approvals"]; */ public Builder putAllApprovals( java.util.Map values) { internalGetMutableApprovals().getMutableMap() .putAll(values); bitField0_ |= 0x00000001; return this; } private static final class MismatchesConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches build(org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.MismatchesOrBuilder val) { if (val instanceof org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches) { return (org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches) val; } return ((org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return MismatchesDefaultEntryHolder.defaultEntry; } }; private static final MismatchesConverter mismatchesConverter = new MismatchesConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.MismatchesOrBuilder, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.Builder> mismatches_; private com.google.protobuf.MapFieldBuilder internalGetMismatches() { if (mismatches_ == null) { return new com.google.protobuf.MapFieldBuilder<>(mismatchesConverter); } return mismatches_; } private com.google.protobuf.MapFieldBuilder internalGetMutableMismatches() { if (mismatches_ == null) { mismatches_ = new com.google.protobuf.MapFieldBuilder<>(mismatchesConverter); } bitField0_ |= 0x00000002; onChanged(); return mismatches_; } public int getMismatchesCount() { return internalGetMismatches().ensureBuilderMap().size(); } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ @java.lang.Override public boolean containsMismatches( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMismatches().ensureBuilderMap().containsKey(key); } /** * Use {@link #getMismatchesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMismatches() { return getMismatchesMap(); } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ @java.lang.Override public java.util.Map getMismatchesMap() { return internalGetMismatches().getImmutableMap(); } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ @java.lang.Override public /* nullable */ org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches getMismatchesOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableMismatches().ensureBuilderMap(); return map.containsKey(key) ? mismatchesConverter.build(map.get(key)) : defaultValue; } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches getMismatchesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableMismatches().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return mismatchesConverter.build(map.get(key)); } public Builder clearMismatches() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableMismatches().clear(); return this; } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ public Builder removeMismatches( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMismatches().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMismatches() { bitField0_ |= 0x00000002; return internalGetMutableMismatches().ensureMessageMap(); } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ public Builder putMismatches( java.lang.String key, org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMismatches().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ public Builder putAllMismatches( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableMismatches().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000002; return this; } /** * map<string, .lifecycle.CheckCommitReadinessResult.Mismatches> mismatches = 2 [json_name = "mismatches"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.Builder putMismatchesBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableMismatches().ensureBuilderMap(); org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.MismatchesOrBuilder entry = builderMap.get(key); if (entry == null) { entry = org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.newBuilder(); builderMap.put(key, entry); } if (entry instanceof org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches) { entry = ((org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches) entry).toBuilder(); builderMap.put(key, entry); } return (org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult.Mismatches.Builder) entry; } // @@protoc_insertion_point(builder_scope:lifecycle.CheckCommitReadinessResult) } // @@protoc_insertion_point(class_scope:lifecycle.CheckCommitReadinessResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.CheckCommitReadinessResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CheckCommitReadinessResult 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.lifecycle.CheckCommitReadinessResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy