@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + DEFINITION_FIELD_NUMBER; hash = (53 * hash) + getDefinition().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowRequestObject)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowRequestObject other = (io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowRequestObject) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && type_ == other.type_; result = result && getDefinition() .equals(other.getDefinition()); result = result && unknownFields.equals(other.unknownFields); return result; }
public static BrokerDeployWorkflowRequest toDeployWorkflowRequest( DeployWorkflowRequest grpcRequest) { final BrokerDeployWorkflowRequest brokerRequest = new BrokerDeployWorkflowRequest(); for (WorkflowRequestObject workflow : grpcRequest.getWorkflowsList()) { brokerRequest.addResource( workflow.getDefinition().toByteArray(), workflow.getName(), workflow.getType()); } return brokerRequest; }
public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowRequestObject other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowRequestObject.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getDefinition() != com.google.protobuf.ByteString.EMPTY) { setDefinition(other.getDefinition()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * the resource basename, e.g. myProcess.bpmn * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**