Class InstantiateInlineWorkflowTemplateRequest.Builder (4.21.0)

public static final class InstantiateInlineWorkflowTemplateRequest.Builder extends GeneratedMessageV3.Builder<InstantiateInlineWorkflowTemplateRequest.Builder> implements InstantiateInlineWorkflowTemplateRequestOrBuilder

A request to instantiate an inline workflow template.

Protobuf type google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstantiateInlineWorkflowTemplateRequest build()
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest

buildPartial()

public InstantiateInlineWorkflowTemplateRequest buildPartial()
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public InstantiateInlineWorkflowTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder
Overrides

clearParent()

public InstantiateInlineWorkflowTemplateRequest.Builder clearParent()

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}

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

Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

This builder for chaining.

clearRequestId()

public InstantiateInlineWorkflowTemplateRequest.Builder clearRequestId()

Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.

It is recommended to always set this value to a UUID.

The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

This builder for chaining.

clearTemplate()

public InstantiateInlineWorkflowTemplateRequest.Builder clearTemplate()

Required. The workflow template to instantiate.

.google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

clone()

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

getDefaultInstanceForType()

public InstantiateInlineWorkflowTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}

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

Returns
TypeDescription
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.

It is recommended to always set this value to a UUID.

The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.

It is recommended to always set this value to a UUID.

The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for requestId.

getTemplate()

public WorkflowTemplate getTemplate()

Required. The workflow template to instantiate.

.google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkflowTemplate

The template.

getTemplateBuilder()

public WorkflowTemplate.Builder getTemplateBuilder()

Required. The workflow template to instantiate.

.google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkflowTemplate.Builder

getTemplateOrBuilder()

public WorkflowTemplateOrBuilder getTemplateOrBuilder()

Required. The workflow template to instantiate.

.google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkflowTemplateOrBuilder

hasTemplate()

public boolean hasTemplate()

Required. The workflow template to instantiate.

.google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the template field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstantiateInlineWorkflowTemplateRequest other)

public InstantiateInlineWorkflowTemplateRequest.Builder mergeFrom(InstantiateInlineWorkflowTemplateRequest other)
Parameter
NameDescription
otherInstantiateInlineWorkflowTemplateRequest
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTemplate(WorkflowTemplate value)

public InstantiateInlineWorkflowTemplateRequest.Builder mergeTemplate(WorkflowTemplate value)

Required. The workflow template to instantiate.

.google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkflowTemplate
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstantiateInlineWorkflowTemplateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public InstantiateInlineWorkflowTemplateRequest.Builder setParent(String value)

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public InstantiateInlineWorkflowTemplateRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/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
InstantiateInlineWorkflowTemplateRequest.Builder

This builder for chaining.

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

public InstantiateInlineWorkflowTemplateRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder
Overrides

setRequestId(String value)

public InstantiateInlineWorkflowTemplateRequest.Builder setRequestId(String value)

Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.

It is recommended to always set this value to a UUID.

The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public InstantiateInlineWorkflowTemplateRequest.Builder setRequestIdBytes(ByteString value)

Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.

It is recommended to always set this value to a UUID.

The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

This builder for chaining.

setTemplate(WorkflowTemplate value)

public InstantiateInlineWorkflowTemplateRequest.Builder setTemplate(WorkflowTemplate value)

Required. The workflow template to instantiate.

.google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkflowTemplate
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

setTemplate(WorkflowTemplate.Builder builderForValue)

public InstantiateInlineWorkflowTemplateRequest.Builder setTemplate(WorkflowTemplate.Builder builderForValue)

Required. The workflow template to instantiate.

.google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueWorkflowTemplate.Builder
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InstantiateInlineWorkflowTemplateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstantiateInlineWorkflowTemplateRequest.Builder
Overrides