/** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ExecutionEnvironment 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 (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (effectiveDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (effectiveDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, execEnv_); } memoizedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (effectiveDate_ != null) { output.writeMessage(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (effectiveDate_ != null) { output.writeMessage(2, getEffectiveDate()); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder setExecEnv(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment value) { if (value == null) { throw new NullPointerException(); } execEnv_ = value.getNumber(); onChanged(); return this; } /**
public static ExecutionEnvironment 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()]; }
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment getExecEnv() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment result = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.valueOf(execEnv_); return result == null ? org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.UNRECOGNIZED : result; }
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder setExecEnv(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment value) { if (value == null) { throw new NullPointerException(); } execEnv_ = value.getNumber(); onChanged(); return this; } /**
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (!codePackage_.isEmpty()) { output.writeBytes(3, codePackage_); } if (execEnv_ != org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.DOCKER.getNumber()) { output.writeEnum(4, execEnv_); } }
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment getExecEnv() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment result = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.valueOf(execEnv_); return result == null ? org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.UNRECOGNIZED : result; } /**
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public Builder setExecEnv(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment value) { if (value == null) { throw new NullPointerException(); } execEnv_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeDeploymentSpec.ExecutionEnvironment exec_env = 4;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment getExecEnv() { org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment result = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.valueOf(execEnv_); return result == null ? org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeDeploymentSpec.ExecutionEnvironment.UNRECOGNIZED : result; }
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor
/** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ExecutionEnvironment 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