Class UpdateSessionTemplateRequest.Builder (4.34.0)

public static final class UpdateSessionTemplateRequest.Builder extends GeneratedMessageV3.Builder<UpdateSessionTemplateRequest.Builder> implements UpdateSessionTemplateRequestOrBuilder

A request to update a session template.

Protobuf type google.cloud.dataproc.v1.UpdateSessionTemplateRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSessionTemplateRequest build()
Returns
TypeDescription
UpdateSessionTemplateRequest

buildPartial()

public UpdateSessionTemplateRequest buildPartial()
Returns
TypeDescription
UpdateSessionTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSessionTemplate()

public UpdateSessionTemplateRequest.Builder clearSessionTemplate()

Required. The updated session template.

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

Returns
TypeDescription
UpdateSessionTemplateRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSessionTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSessionTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSessionTemplate()

public SessionTemplate getSessionTemplate()

Required. The updated session template.

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

Returns
TypeDescription
SessionTemplate

The sessionTemplate.

getSessionTemplateBuilder()

public SessionTemplate.Builder getSessionTemplateBuilder()

Required. The updated session template.

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

Returns
TypeDescription
SessionTemplate.Builder

getSessionTemplateOrBuilder()

public SessionTemplateOrBuilder getSessionTemplateOrBuilder()

Required. The updated session template.

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

Returns
TypeDescription
SessionTemplateOrBuilder

hasSessionTemplate()

public boolean hasSessionTemplate()

Required. The updated session template.

.google.cloud.dataproc.v1.SessionTemplate session_template = 1 [(.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(UpdateSessionTemplateRequest other)

public UpdateSessionTemplateRequest.Builder mergeFrom(UpdateSessionTemplateRequest other)
Parameter
NameDescription
otherUpdateSessionTemplateRequest
Returns
TypeDescription
UpdateSessionTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSessionTemplate(SessionTemplate value)

public UpdateSessionTemplateRequest.Builder mergeSessionTemplate(SessionTemplate value)

Required. The updated session template.

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

Parameter
NameDescription
valueSessionTemplate
Returns
TypeDescription
UpdateSessionTemplateRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSessionTemplate(SessionTemplate value)

public UpdateSessionTemplateRequest.Builder setSessionTemplate(SessionTemplate value)

Required. The updated session template.

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

Parameter
NameDescription
valueSessionTemplate
Returns
TypeDescription
UpdateSessionTemplateRequest.Builder

setSessionTemplate(SessionTemplate.Builder builderForValue)

public UpdateSessionTemplateRequest.Builder setSessionTemplate(SessionTemplate.Builder builderForValue)

Required. The updated session template.

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

Parameter
NameDescription
builderForValueSessionTemplate.Builder
Returns
TypeDescription
UpdateSessionTemplateRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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