Class ListWorkflowTemplatesResponse.Builder (4.80.0)

public static final class ListWorkflowTemplatesResponse.Builder extends GeneratedMessage.Builder<ListWorkflowTemplatesResponse.Builder> implements ListWorkflowTemplatesResponseOrBuilder

A response to a request to list workflow templates in a project.

Protobuf type google.cloud.dataproc.v1.ListWorkflowTemplatesResponse

Static Methods

getDescriptor()

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

Methods

addAllTemplates(Iterable<? extends WorkflowTemplate> values)

public ListWorkflowTemplatesResponse.Builder addAllTemplates(Iterable<? extends WorkflowTemplate> values)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dataproc.v1.WorkflowTemplate>
Returns
Type Description
ListWorkflowTemplatesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListWorkflowTemplatesResponse.Builder addAllUnreachable(Iterable<String> values)

Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListWorkflowTemplatesResponse.Builder

This builder for chaining.

addTemplates(WorkflowTemplate value)

public ListWorkflowTemplatesResponse.Builder addTemplates(WorkflowTemplate value)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WorkflowTemplate
Returns
Type Description
ListWorkflowTemplatesResponse.Builder

addTemplates(WorkflowTemplate.Builder builderForValue)

public ListWorkflowTemplatesResponse.Builder addTemplates(WorkflowTemplate.Builder builderForValue)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue WorkflowTemplate.Builder
Returns
Type Description
ListWorkflowTemplatesResponse.Builder

addTemplates(int index, WorkflowTemplate value)

public ListWorkflowTemplatesResponse.Builder addTemplates(int index, WorkflowTemplate value)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value WorkflowTemplate
Returns
Type Description
ListWorkflowTemplatesResponse.Builder

addTemplates(int index, WorkflowTemplate.Builder builderForValue)

public ListWorkflowTemplatesResponse.Builder addTemplates(int index, WorkflowTemplate.Builder builderForValue)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue WorkflowTemplate.Builder
Returns
Type Description
ListWorkflowTemplatesResponse.Builder

addTemplatesBuilder()

public WorkflowTemplate.Builder addTemplatesBuilder()

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WorkflowTemplate.Builder

addTemplatesBuilder(int index)

public WorkflowTemplate.Builder addTemplatesBuilder(int index)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
WorkflowTemplate.Builder

addUnreachable(String value)

public ListWorkflowTemplatesResponse.Builder addUnreachable(String value)

Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListWorkflowTemplatesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListWorkflowTemplatesResponse.Builder addUnreachableBytes(ByteString value)

Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListWorkflowTemplatesResponse.Builder

This builder for chaining.

build()

public ListWorkflowTemplatesResponse build()
Returns
Type Description
ListWorkflowTemplatesResponse

buildPartial()

public ListWorkflowTemplatesResponse buildPartial()
Returns
Type Description
ListWorkflowTemplatesResponse

clear()

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

clearNextPageToken()

public ListWorkflowTemplatesResponse.Builder clearNextPageToken()

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListWorkflowTemplatesResponse.Builder

This builder for chaining.

clearTemplates()

public ListWorkflowTemplatesResponse.Builder clearTemplates()

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListWorkflowTemplatesResponse.Builder

clearUnreachable()

public ListWorkflowTemplatesResponse.Builder clearUnreachable()

Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListWorkflowTemplatesResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListWorkflowTemplatesResponse getDefaultInstanceForType()
Returns
Type Description
ListWorkflowTemplatesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTemplates(int index)

public WorkflowTemplate getTemplates(int index)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
WorkflowTemplate

getTemplatesBuilder(int index)

public WorkflowTemplate.Builder getTemplatesBuilder(int index)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
WorkflowTemplate.Builder

getTemplatesBuilderList()

public List<WorkflowTemplate.Builder> getTemplatesBuilderList()

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getTemplatesCount()

public int getTemplatesCount()

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getTemplatesList()

public List<WorkflowTemplate> getTemplatesList()

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<WorkflowTemplate>

getTemplatesOrBuilder(int index)

public WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
WorkflowTemplateOrBuilder

getTemplatesOrBuilderList()

public List<? extends WorkflowTemplateOrBuilder> getTemplatesOrBuilderList()

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListWorkflowTemplatesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeTemplates(int index)

public ListWorkflowTemplatesResponse.Builder removeTemplates(int index)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ListWorkflowTemplatesResponse.Builder

setNextPageToken(String value)

public ListWorkflowTemplatesResponse.Builder setNextPageToken(String value)

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListWorkflowTemplatesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListWorkflowTemplatesResponse.Builder setNextPageTokenBytes(ByteString value)

Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListWorkflowTemplatesResponse.Builder

This builder for chaining.

setTemplates(int index, WorkflowTemplate value)

public ListWorkflowTemplatesResponse.Builder setTemplates(int index, WorkflowTemplate value)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value WorkflowTemplate
Returns
Type Description
ListWorkflowTemplatesResponse.Builder

setTemplates(int index, WorkflowTemplate.Builder builderForValue)

public ListWorkflowTemplatesResponse.Builder setTemplates(int index, WorkflowTemplate.Builder builderForValue)

Output only. WorkflowTemplates list.

repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue WorkflowTemplate.Builder
Returns
Type Description
ListWorkflowTemplatesResponse.Builder

setUnreachable(int index, String value)

public ListWorkflowTemplatesResponse.Builder setUnreachable(int index, String value)

Output only. List of workflow templates that could not be included in the response. Attempting to get one of these resources may indicate why it was not included in the list response.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListWorkflowTemplatesResponse.Builder

This builder for chaining.