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 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; }
/** * <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; } /**
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 Builder setType(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpec.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
/** * <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; } /**
/** * <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; } /**