Class CreateWorkflowRequest.Builder (2.47.0)

public static final class CreateWorkflowRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkflowRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateWorkflowRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public CreateWorkflowRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateWorkflowRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateWorkflowRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkflowRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkflowRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateWorkflowRequest.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateWorkflowRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateWorkflowRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkflowRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateWorkflowRequest.Builder
Overrides

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.