Class ListSessionTemplatesResponse.Builder (4.34.0)

public static final class ListSessionTemplatesResponse.Builder extends GeneratedMessageV3.Builder<ListSessionTemplatesResponse.Builder> implements ListSessionTemplatesResponseOrBuilder

A list of session templates.

Protobuf type google.cloud.dataproc.v1.ListSessionTemplatesResponse

Static Methods

getDescriptor()

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

Methods

addAllSessionTemplates(Iterable<? extends SessionTemplate> values)

public ListSessionTemplatesResponse.Builder addAllSessionTemplates(Iterable<? extends SessionTemplate> values)

Output only. Session template list

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.SessionTemplate>
Returns
TypeDescription
ListSessionTemplatesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSessionTemplates(SessionTemplate value)

public ListSessionTemplatesResponse.Builder addSessionTemplates(SessionTemplate value)

Output only. Session template list

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

Parameter
NameDescription
valueSessionTemplate
Returns
TypeDescription
ListSessionTemplatesResponse.Builder

addSessionTemplates(SessionTemplate.Builder builderForValue)

public ListSessionTemplatesResponse.Builder addSessionTemplates(SessionTemplate.Builder builderForValue)

Output only. Session template list

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

Parameter
NameDescription
builderForValueSessionTemplate.Builder
Returns
TypeDescription
ListSessionTemplatesResponse.Builder

addSessionTemplates(int index, SessionTemplate value)

public ListSessionTemplatesResponse.Builder addSessionTemplates(int index, SessionTemplate value)

Output only. Session template list

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

Parameters
NameDescription
indexint
valueSessionTemplate
Returns
TypeDescription
ListSessionTemplatesResponse.Builder

addSessionTemplates(int index, SessionTemplate.Builder builderForValue)

public ListSessionTemplatesResponse.Builder addSessionTemplates(int index, SessionTemplate.Builder builderForValue)

Output only. Session template list

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

Parameters
NameDescription
indexint
builderForValueSessionTemplate.Builder
Returns
TypeDescription
ListSessionTemplatesResponse.Builder

addSessionTemplatesBuilder()

public SessionTemplate.Builder addSessionTemplatesBuilder()

Output only. Session template list

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

Returns
TypeDescription
SessionTemplate.Builder

addSessionTemplatesBuilder(int index)

public SessionTemplate.Builder addSessionTemplatesBuilder(int index)

Output only. Session template list

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionTemplate.Builder

build()

public ListSessionTemplatesResponse build()
Returns
TypeDescription
ListSessionTemplatesResponse

buildPartial()

public ListSessionTemplatesResponse buildPartial()
Returns
TypeDescription
ListSessionTemplatesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSessionTemplatesResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ListSessionTemplatesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSessionTemplates()

public ListSessionTemplatesResponse.Builder clearSessionTemplates()

Output only. Session template list

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

Returns
TypeDescription
ListSessionTemplatesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSessionTemplatesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSessionTemplatesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getSessionTemplates(int index)

public SessionTemplate getSessionTemplates(int index)

Output only. Session template list

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionTemplate

getSessionTemplatesBuilder(int index)

public SessionTemplate.Builder getSessionTemplatesBuilder(int index)

Output only. Session template list

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionTemplate.Builder

getSessionTemplatesBuilderList()

public List<SessionTemplate.Builder> getSessionTemplatesBuilderList()

Output only. Session template list

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

Returns
TypeDescription
List<Builder>

getSessionTemplatesCount()

public int getSessionTemplatesCount()

Output only. Session template list

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

Returns
TypeDescription
int

getSessionTemplatesList()

public List<SessionTemplate> getSessionTemplatesList()

Output only. Session template list

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

Returns
TypeDescription
List<SessionTemplate>

getSessionTemplatesOrBuilder(int index)

public SessionTemplateOrBuilder getSessionTemplatesOrBuilder(int index)

Output only. Session template list

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionTemplateOrBuilder

getSessionTemplatesOrBuilderList()

public List<? extends SessionTemplateOrBuilder> getSessionTemplatesOrBuilderList()

Output only. Session template list

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

Returns
TypeDescription
List<? extends com.google.cloud.dataproc.v1.SessionTemplateOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListSessionTemplatesResponse other)

public ListSessionTemplatesResponse.Builder mergeFrom(ListSessionTemplatesResponse other)
Parameter
NameDescription
otherListSessionTemplatesResponse
Returns
TypeDescription
ListSessionTemplatesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSessionTemplates(int index)

public ListSessionTemplatesResponse.Builder removeSessionTemplates(int index)

Output only. Session template list

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListSessionTemplatesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSessionTemplatesResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListSessionTemplatesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSessionTemplatesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListSessionTemplatesResponse.Builder

This builder for chaining.

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

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

setSessionTemplates(int index, SessionTemplate value)

public ListSessionTemplatesResponse.Builder setSessionTemplates(int index, SessionTemplate value)

Output only. Session template list

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

Parameters
NameDescription
indexint
valueSessionTemplate
Returns
TypeDescription
ListSessionTemplatesResponse.Builder

setSessionTemplates(int index, SessionTemplate.Builder builderForValue)

public ListSessionTemplatesResponse.Builder setSessionTemplates(int index, SessionTemplate.Builder builderForValue)

Output only. Session template list

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

Parameters
NameDescription
indexint
builderForValueSessionTemplate.Builder
Returns
TypeDescription
ListSessionTemplatesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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