Class CreateSessionTemplateRequest.Builder (4.48.0)

public static final class CreateSessionTemplateRequest.Builder extends GeneratedMessageV3.Builder<CreateSessionTemplateRequest.Builder> implements CreateSessionTemplateRequestOrBuilder

A request to create a session template.

Protobuf type google.cloud.dataproc.v1.CreateSessionTemplateRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateSessionTemplateRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSessionTemplateRequest.Builder
Overrides

build()

public CreateSessionTemplateRequest build()
Returns
Type Description
CreateSessionTemplateRequest

buildPartial()

public CreateSessionTemplateRequest buildPartial()
Returns
Type Description
CreateSessionTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateSessionTemplateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateSessionTemplateRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSessionTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateSessionTemplateRequest.Builder
Overrides

clearParent()

public CreateSessionTemplateRequest.Builder clearParent()

Required. The parent resource where this session template will be created.

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

Returns
Type Description
CreateSessionTemplateRequest.Builder

This builder for chaining.

clearSessionTemplate()

public CreateSessionTemplateRequest.Builder clearSessionTemplate()

Required. The session template to create.

.google.cloud.dataproc.v1.SessionTemplate session_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSessionTemplateRequest.Builder

clone()

public CreateSessionTemplateRequest.Builder clone()
Returns
Type Description
CreateSessionTemplateRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateSessionTemplateRequest getDefaultInstanceForType()
Returns
Type Description
CreateSessionTemplateRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where this session template will be created.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where this session template will be created.

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

Returns
Type Description
ByteString

The bytes for parent.

getSessionTemplate()

public SessionTemplate getSessionTemplate()

Required. The session template to create.

.google.cloud.dataproc.v1.SessionTemplate session_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionTemplate

The sessionTemplate.

getSessionTemplateBuilder()

public SessionTemplate.Builder getSessionTemplateBuilder()

Required. The session template to create.

.google.cloud.dataproc.v1.SessionTemplate session_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionTemplate.Builder

getSessionTemplateOrBuilder()

public SessionTemplateOrBuilder getSessionTemplateOrBuilder()

Required. The session template to create.

.google.cloud.dataproc.v1.SessionTemplate session_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionTemplateOrBuilder

hasSessionTemplate()

public boolean hasSessionTemplate()

Required. The session template to create.

.google.cloud.dataproc.v1.SessionTemplate session_template = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the sessionTemplate field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSessionTemplateRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSessionTemplate(SessionTemplate value)

public CreateSessionTemplateRequest.Builder mergeSessionTemplate(SessionTemplate value)

Required. The session template to create.

.google.cloud.dataproc.v1.SessionTemplate session_template = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SessionTemplate
Returns
Type Description
CreateSessionTemplateRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateSessionTemplateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSessionTemplateRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSessionTemplateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSessionTemplateRequest.Builder
Overrides

setParent(String value)

public CreateSessionTemplateRequest.Builder setParent(String value)

Required. The parent resource where this session template will be created.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateSessionTemplateRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSessionTemplateRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this session template will be created.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateSessionTemplateRequest.Builder

This builder for chaining.

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

public CreateSessionTemplateRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateSessionTemplateRequest.Builder
Overrides

setSessionTemplate(SessionTemplate value)

public CreateSessionTemplateRequest.Builder setSessionTemplate(SessionTemplate value)

Required. The session template to create.

.google.cloud.dataproc.v1.SessionTemplate session_template = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SessionTemplate
Returns
Type Description
CreateSessionTemplateRequest.Builder

setSessionTemplate(SessionTemplate.Builder builderForValue)

public CreateSessionTemplateRequest.Builder setSessionTemplate(SessionTemplate.Builder builderForValue)

Required. The session template to create.

.google.cloud.dataproc.v1.SessionTemplate session_template = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SessionTemplate.Builder
Returns
Type Description
CreateSessionTemplateRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateSessionTemplateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSessionTemplateRequest.Builder
Overrides