Class ListWorkflowTemplatesResponse.Builder (4.24.0)

public static final class ListWorkflowTemplatesResponse.Builder extends GeneratedMessageV3.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.WorkflowTemplate>
Returns
TypeDescription
ListWorkflowTemplatesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueWorkflowTemplate
Returns
TypeDescription
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
NameDescription
builderForValueWorkflowTemplate.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueWorkflowTemplate
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkflowTemplate.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
WorkflowTemplate.Builder

build()

public ListWorkflowTemplatesResponse build()
Returns
TypeDescription
ListWorkflowTemplatesResponse

buildPartial()

public ListWorkflowTemplatesResponse buildPartial()
Returns
TypeDescription
ListWorkflowTemplatesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListWorkflowTemplatesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListWorkflowTemplatesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTemplates()

public ListWorkflowTemplatesResponse.Builder clearTemplates()

Output only. WorkflowTemplates list.

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

Returns
TypeDescription
ListWorkflowTemplatesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListWorkflowTemplatesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListWorkflowTemplatesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListWorkflowTemplatesResponse other)

public ListWorkflowTemplatesResponse.Builder mergeFrom(ListWorkflowTemplatesResponse other)
Parameter
NameDescription
otherListWorkflowTemplatesResponse
Returns
TypeDescription
ListWorkflowTemplatesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
ListWorkflowTemplatesResponse.Builder

This builder for chaining.

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

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

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
NameDescription
indexint
valueWorkflowTemplate
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkflowTemplate.Builder
Returns
TypeDescription
ListWorkflowTemplatesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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