Class CreateSessionTemplateRequest.Builder (4.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSessionTemplateRequest build()
Returns
TypeDescription
CreateSessionTemplateRequest

buildPartial()

public CreateSessionTemplateRequest buildPartial()
Returns
TypeDescription
CreateSessionTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSessionTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateSessionTemplateRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateSessionTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateSessionTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sessionTemplate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateSessionTemplateRequest other)

public CreateSessionTemplateRequest.Builder mergeFrom(CreateSessionTemplateRequest other)
Parameter
NameDescription
otherCreateSessionTemplateRequest
Returns
TypeDescription
CreateSessionTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateSessionTemplateRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSessionTemplate
Returns
TypeDescription
CreateSessionTemplateRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSessionTemplateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSessionTemplate
Returns
TypeDescription
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
NameDescription
builderForValueSessionTemplate.Builder
Returns
TypeDescription
CreateSessionTemplateRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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