/** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); }
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (chaincodeId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChaincodeId()); } if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInput()); } if (timeout_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, timeout_); } memoizedSize = size; return size; }
langType.name(), chaincodeID.getName(), chaincodeID.getPath(), chaincodeID.getVersion()));
StringBuilder sb = new StringBuilder(1000); sb.append("ChaincodeDeploymentSpec chaincode cctype: ") .append(ccType.name()) .append(", name:") .append(chaincodeID.getName())
StringBuilder sb = new StringBuilder(1000); sb.append("ChaincodeDeploymentSpec chaincode cctype: ") .append(ccType.name()) .append(", name:") .append(chaincodeID.getName())
langType.name(), chaincodeID.getName(), chaincodeID.getPath(), chaincodeID.getVersion()));
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (chaincodeId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChaincodeId()); } if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInput()); } if (timeout_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, timeout_); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (chaincodeId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChaincodeId()); } if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInput()); } if (timeout_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, timeout_); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (chaincodeId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChaincodeId()); } if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInput()); } if (timeout_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, timeout_); } memoizedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { output.writeEnum(1, type_); } if (chaincodeId_ != null) { output.writeMessage(2, getChaincodeId()); } if (input_ != null) { output.writeMessage(3, getInput()); } if (timeout_ != 0) { output.writeInt32(4, timeout_); } }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { output.writeEnum(1, type_); } if (chaincodeId_ != null) { output.writeMessage(2, getChaincodeId()); } if (input_ != null) { output.writeMessage(3, getInput()); } if (timeout_ != 0) { output.writeInt32(4, timeout_); } }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNDEFINED.getNumber()) { output.writeEnum(1, type_); } if (chaincodeId_ != null) { output.writeMessage(2, getChaincodeId()); } if (input_ != null) { output.writeMessage(3, getInput()); } if (timeout_ != 0) { output.writeInt32(4, timeout_); } }
/** * <code>optional .protos.ChaincodeSpec.Type type = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type getType() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type result = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.valueOf(type_); return result == null ? org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNRECOGNIZED : result; } /**
/** * <code>optional .protos.ChaincodeSpec.Type type = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type getType() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type result = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.valueOf(type_); return result == null ? org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNRECOGNIZED : result; }
public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; }
/** * <code>optional .protos.ChaincodeSpec.Type type = 1;</code> */ public Builder setType(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
/** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); }
/** * <code>optional .protos.ChaincodeSpec.Type type = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type getType() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type result = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.valueOf(type_); return result == null ? org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type.UNRECOGNIZED : result; }
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor