INNER CODE UNIT · Java

toBuilder

temporalio/sdk-java · temporal-envconfig/src/main/java/io/temporal/envconfig/ClientConfigProfile.java:115

  public Builder toBuilder() {
    return new Builder(this);
  }

  /**
   * Converts this profile to WorkflowServiceStubsOptions. Note that not all fields are converted,
   * only those relevant to service stubs.
   */
  public WorkflowServiceStubsOptions toWorkflowServiceStubsOptions() {
    WorkflowServiceStubsOptions.Builder builder = WorkflowServiceStubsOptions.newBuilder();
    if (this.address != null && !this.address.isEmpty()) {
      builder.setTarget(this.address);
    }
    if (this.apiKey != null && !this.apiKey.isEmpty()) {
      builder.addApiKey(() -> this.apiKey);
    }
    if (this.metadata != null) {
      builder.addGrpcMetadataProvider(() -> this.metadata);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…