Class CreateWorkflowRequest.Builder (2.83.0)

public static final class CreateWorkflowRequest.Builder extends GeneratedMessage.Builder<CreateWorkflowRequest.Builder> implements CreateWorkflowRequestOrBuilder

Request for the CreateWorkflow method.

Protobuf type google.cloud.workflows.v1beta.CreateWorkflowRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CreateWorkflowRequest build()
Returns
Type Description
CreateWorkflowRequest

buildPartial()

public CreateWorkflowRequest buildPartial()
Returns
Type Description
CreateWorkflowRequest

clear()

public CreateWorkflowRequest.Builder clear()
Returns
Type Description
CreateWorkflowRequest.Builder
Overrides

clearParent()

public CreateWorkflowRequest.Builder clearParent()

Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateWorkflowRequest.Builder

This builder for chaining.

clearWorkflow()

public CreateWorkflowRequest.Builder clearWorkflow()

Required. Workflow to be created.

.google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateWorkflowRequest.Builder

clearWorkflowId()

public CreateWorkflowRequest.Builder clearWorkflowId()

Required. The ID of the workflow to be created. It has to fulfill the following requirements:

  • Must contain only letters, numbers, underscores and hyphens.
  • Must start with a letter.
  • Must be between 1-64 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project and location.

string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateWorkflowRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateWorkflowRequest getDefaultInstanceForType()
Returns
Type Description
CreateWorkflowRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getWorkflow()

public Workflow getWorkflow()

Required. Workflow to be created.

.google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Workflow

The workflow.

getWorkflowBuilder()

public Workflow.Builder getWorkflowBuilder()

Required. Workflow to be created.

.google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Workflow.Builder

getWorkflowId()

public String getWorkflowId()

Required. The ID of the workflow to be created. It has to fulfill the following requirements:

  • Must contain only letters, numbers, underscores and hyphens.
  • Must start with a letter.
  • Must be between 1-64 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project and location.

string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The workflowId.

getWorkflowIdBytes()

public ByteString getWorkflowIdBytes()

Required. The ID of the workflow to be created. It has to fulfill the following requirements:

  • Must contain only letters, numbers, underscores and hyphens.
  • Must start with a letter.
  • Must be between 1-64 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project and location.

string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for workflowId.

getWorkflowOrBuilder()

public WorkflowOrBuilder getWorkflowOrBuilder()

Required. Workflow to be created.

.google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkflowOrBuilder

hasWorkflow()

public boolean hasWorkflow()

Required. Workflow to be created.

.google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the workflow field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateWorkflowRequest other)

public CreateWorkflowRequest.Builder mergeFrom(CreateWorkflowRequest other)
Parameter
Name Description
other CreateWorkflowRequest
Returns
Type Description
CreateWorkflowRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateWorkflowRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateWorkflowRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateWorkflowRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateWorkflowRequest.Builder
Overrides

mergeWorkflow(Workflow value)

public CreateWorkflowRequest.Builder mergeWorkflow(Workflow value)

Required. Workflow to be created.

.google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Workflow
Returns
Type Description
CreateWorkflowRequest.Builder

setParent(String value)

public CreateWorkflowRequest.Builder setParent(String value)

Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateWorkflowRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateWorkflowRequest.Builder setParentBytes(ByteString value)

Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateWorkflowRequest.Builder

This builder for chaining.

setWorkflow(Workflow value)

public CreateWorkflowRequest.Builder setWorkflow(Workflow value)

Required. Workflow to be created.

.google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Workflow
Returns
Type Description
CreateWorkflowRequest.Builder

setWorkflow(Workflow.Builder builderForValue)

public CreateWorkflowRequest.Builder setWorkflow(Workflow.Builder builderForValue)

Required. Workflow to be created.

.google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Workflow.Builder
Returns
Type Description
CreateWorkflowRequest.Builder

setWorkflowId(String value)

public CreateWorkflowRequest.Builder setWorkflowId(String value)

Required. The ID of the workflow to be created. It has to fulfill the following requirements:

  • Must contain only letters, numbers, underscores and hyphens.
  • Must start with a letter.
  • Must be between 1-64 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project and location.

string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The workflowId to set.

Returns
Type Description
CreateWorkflowRequest.Builder

This builder for chaining.

setWorkflowIdBytes(ByteString value)

public CreateWorkflowRequest.Builder setWorkflowIdBytes(ByteString value)

Required. The ID of the workflow to be created. It has to fulfill the following requirements:

  • Must contain only letters, numbers, underscores and hyphens.
  • Must start with a letter.
  • Must be between 1-64 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project and location.

string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for workflowId to set.

Returns
Type Description
CreateWorkflowRequest.Builder

This builder for chaining.