/** * <code>map<string, bytes> decorations = 2;</code> */ public com.google.protobuf.ByteString getDecorationsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.ByteString> map = internalGetDecorations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
/** * <code>map<string, bytes> decorations = 2;</code> */ public com.google.protobuf.ByteString getDecorationsOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.ByteString> map = internalGetDecorations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetDecorations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetDecorations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
/** * <code>map<string, bytes> decorations = 2;</code> */ public com.google.protobuf.ByteString getDecorationsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.ByteString> map = internalGetDecorations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
/** * <code>map<string, bytes> decorations = 2;</code> */ public com.google.protobuf.ByteString getDecorationsOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.ByteString> map = internalGetDecorations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * <code>map<string, bytes> decorations = 2;</code> */ public boolean containsDecorations( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDecorations().getMap().containsKey(key); } /**
/** * <code>map<string, bytes> decorations = 2;</code> */ public java.util.Map<java.lang.String, com.google.protobuf.ByteString> getDecorationsMap() { return internalGetDecorations().getMap(); } /**
public int getDecorationsCount() { return internalGetDecorations().getMap().size(); } /**
/** * <code>map<string, bytes> decorations = 2;</code> */ public com.google.protobuf.ByteString getDecorationsOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.ByteString> map = internalGetDecorations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * <code>map<string, bytes> decorations = 2;</code> */ public boolean containsDecorations( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDecorations().getMap().containsKey(key); } /**
/** * <code>map<string, bytes> decorations = 2;</code> */ public java.util.Map<java.lang.String, com.google.protobuf.ByteString> getDecorationsMap() { return internalGetDecorations().getMap(); } /**
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetDecorations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < args_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(args_.get(i)); } size += dataSize; size += 1 * getArgsList().size(); } for (java.util.Map.Entry<java.lang.String, com.google.protobuf.ByteString> entry : internalGetDecorations().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.ByteString> decorations = DecorationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, decorations); } memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (!internalGetDecorations().getMap().isEmpty()) { hash = (37 * hash) + DECORATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetDecorations().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < args_.size(); i++) { output.writeBytes(1, args_.get(i)); } for (java.util.Map.Entry<java.lang.String, com.google.protobuf.ByteString> entry : internalGetDecorations().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.ByteString> decorations = DecorationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(2, decorations); } }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput) obj; boolean result = true; result = result && getArgsList() .equals(other.getArgsList()); result = result && internalGetDecorations().equals( other.internalGetDecorations()); return result; }
/** * <code>map<string, bytes> decorations = 2;</code> */ public boolean containsDecorations( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDecorations().getMap().containsKey(key); } /**
public int getDecorationsCount() { return internalGetDecorations().getMap().size(); } /**
/** * <code>map<string, bytes> decorations = 2;</code> */ public java.util.Map<java.lang.String, com.google.protobuf.ByteString> getDecorationsMap() { return internalGetDecorations().getMap(); } /**