Class CreateWorkflowRequest.Builder (2.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkflowRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateWorkflowRequest.Builder
Overrides

build()

public CreateWorkflowRequest build()
Returns
TypeDescription
CreateWorkflowRequest

buildPartial()

public CreateWorkflowRequest buildPartial()
Returns
TypeDescription
CreateWorkflowRequest

clear()

public CreateWorkflowRequest.Builder clear()
Returns
TypeDescription
CreateWorkflowRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateWorkflowRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateWorkflowRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateWorkflowRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateWorkflowRequest.Builder

This builder for chaining.

clone()

public CreateWorkflowRequest.Builder clone()
Returns
TypeDescription
CreateWorkflowRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateWorkflowRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateWorkflowRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
WorkflowOrBuilder

hasWorkflow()

public boolean hasWorkflow()

Required. Workflow to be created.

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

Returns
TypeDescription
boolean

Whether the workflow field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateWorkflowRequest other)

public CreateWorkflowRequest.Builder mergeFrom(CreateWorkflowRequest other)
Parameter
NameDescription
otherCreateWorkflowRequest
Returns
TypeDescription
CreateWorkflowRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateWorkflowRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateWorkflowRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateWorkflowRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateWorkflowRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkflowRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWorkflow
Returns
TypeDescription
CreateWorkflowRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkflowRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateWorkflowRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkflowRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWorkflow
Returns
TypeDescription
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
NameDescription
builderForValueWorkflow.Builder
Returns
TypeDescription
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
NameDescription
valueString

The workflowId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for workflowId to set.

Returns
TypeDescription
CreateWorkflowRequest.Builder

This builder for chaining.