Class SessionTemplate.Builder (4.32.0)

public static final class SessionTemplate.Builder extends GeneratedMessageV3.Builder<SessionTemplate.Builder> implements SessionTemplateOrBuilder

A representation of a session template.

Protobuf type google.cloud.dataproc.v1.SessionTemplate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SessionTemplate build()
Returns
TypeDescription
SessionTemplate

buildPartial()

public SessionTemplate buildPartial()
Returns
TypeDescription
SessionTemplate

clear()

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

clearCreateTime()

public SessionTemplate.Builder clearCreateTime()

Output only. The time when the template was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SessionTemplate.Builder

clearCreator()

public SessionTemplate.Builder clearCreator()

Output only. The email address of the user who created the template.

string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

clearDescription()

public SessionTemplate.Builder clearDescription()

Optional. Brief description of the template.

string description = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

clearEnvironmentConfig()

public SessionTemplate.Builder clearEnvironmentConfig()

Optional. Environment configuration for session execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SessionTemplate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearJupyterSession()

public SessionTemplate.Builder clearJupyterSession()

Optional. Jupyter session config.

.google.cloud.dataproc.v1.JupyterConfig jupyter_session = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SessionTemplate.Builder

clearLabels()

public SessionTemplate.Builder clearLabels()
Returns
TypeDescription
SessionTemplate.Builder

clearName()

public SessionTemplate.Builder clearName()

Required. The resource name of the session template.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRuntimeConfig()

public SessionTemplate.Builder clearRuntimeConfig()

Optional. Runtime configuration for session execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SessionTemplate.Builder

clearSessionConfig()

public SessionTemplate.Builder clearSessionConfig()
Returns
TypeDescription
SessionTemplate.Builder

clearUpdateTime()

public SessionTemplate.Builder clearUpdateTime()

Output only. The time the template was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SessionTemplate.Builder

clearUuid()

public SessionTemplate.Builder clearUuid()

Output only. A session template UUID (Unique Universal Identifier). The service generates this value when it creates the session template.

string uuid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035. No more than 32 labels can be associated with a session.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the template was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the template was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the template was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getCreator()

public String getCreator()

Output only. The email address of the user who created the template.

string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The creator.

getCreatorBytes()

public ByteString getCreatorBytes()

Output only. The email address of the user who created the template.

string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for creator.

getDefaultInstanceForType()

public SessionTemplate getDefaultInstanceForType()
Returns
TypeDescription
SessionTemplate

getDescription()

public String getDescription()

Optional. Brief description of the template.

string description = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Brief description of the template.

string description = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnvironmentConfig()

public EnvironmentConfig getEnvironmentConfig()

Optional. Environment configuration for session execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EnvironmentConfig

The environmentConfig.

getEnvironmentConfigBuilder()

public EnvironmentConfig.Builder getEnvironmentConfigBuilder()

Optional. Environment configuration for session execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EnvironmentConfig.Builder

getEnvironmentConfigOrBuilder()

public EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder()

Optional. Environment configuration for session execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EnvironmentConfigOrBuilder

getJupyterSession()

public JupyterConfig getJupyterSession()

Optional. Jupyter session config.

.google.cloud.dataproc.v1.JupyterConfig jupyter_session = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
JupyterConfig

The jupyterSession.

getJupyterSessionBuilder()

public JupyterConfig.Builder getJupyterSessionBuilder()

Optional. Jupyter session config.

.google.cloud.dataproc.v1.JupyterConfig jupyter_session = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
JupyterConfig.Builder

getJupyterSessionOrBuilder()

public JupyterConfigOrBuilder getJupyterSessionOrBuilder()

Optional. Jupyter session config.

.google.cloud.dataproc.v1.JupyterConfig jupyter_session = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
JupyterConfigOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035. No more than 32 labels can be associated with a session.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035. No more than 32 labels can be associated with a session.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035. No more than 32 labels can be associated with a session.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035. No more than 32 labels can be associated with a session.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. The resource name of the session template.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the session template.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getRuntimeConfig()

public RuntimeConfig getRuntimeConfig()

Optional. Runtime configuration for session execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RuntimeConfig

The runtimeConfig.

getRuntimeConfigBuilder()

public RuntimeConfig.Builder getRuntimeConfigBuilder()

Optional. Runtime configuration for session execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RuntimeConfig.Builder

getRuntimeConfigOrBuilder()

public RuntimeConfigOrBuilder getRuntimeConfigOrBuilder()

Optional. Runtime configuration for session execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RuntimeConfigOrBuilder

getSessionConfigCase()

public SessionTemplate.SessionConfigCase getSessionConfigCase()
Returns
TypeDescription
SessionTemplate.SessionConfigCase

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time the template was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time the template was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time the template was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getUuid()

public String getUuid()

Output only. A session template UUID (Unique Universal Identifier). The service generates this value when it creates the session template.

string uuid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

Output only. A session template UUID (Unique Universal Identifier). The service generates this value when it creates the session template.

string uuid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uuid.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the template was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasEnvironmentConfig()

public boolean hasEnvironmentConfig()

Optional. Environment configuration for session execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the environmentConfig field is set.

hasJupyterSession()

public boolean hasJupyterSession()

Optional. Jupyter session config.

.google.cloud.dataproc.v1.JupyterConfig jupyter_session = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the jupyterSession field is set.

hasRuntimeConfig()

public boolean hasRuntimeConfig()

Optional. Runtime configuration for session execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the runtimeConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time the template was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public SessionTemplate.Builder mergeCreateTime(Timestamp value)

Output only. The time when the template was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SessionTemplate.Builder

mergeEnvironmentConfig(EnvironmentConfig value)

public SessionTemplate.Builder mergeEnvironmentConfig(EnvironmentConfig value)

Optional. Environment configuration for session execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueEnvironmentConfig
Returns
TypeDescription
SessionTemplate.Builder

mergeFrom(SessionTemplate other)

public SessionTemplate.Builder mergeFrom(SessionTemplate other)
Parameter
NameDescription
otherSessionTemplate
Returns
TypeDescription
SessionTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeJupyterSession(JupyterConfig value)

public SessionTemplate.Builder mergeJupyterSession(JupyterConfig value)

Optional. Jupyter session config.

.google.cloud.dataproc.v1.JupyterConfig jupyter_session = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueJupyterConfig
Returns
TypeDescription
SessionTemplate.Builder

mergeRuntimeConfig(RuntimeConfig value)

public SessionTemplate.Builder mergeRuntimeConfig(RuntimeConfig value)

Optional. Runtime configuration for session execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueRuntimeConfig
Returns
TypeDescription
SessionTemplate.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public SessionTemplate.Builder mergeUpdateTime(Timestamp value)

Output only. The time the template was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SessionTemplate.Builder

putAllLabels(Map<String,String> values)

public SessionTemplate.Builder putAllLabels(Map<String,String> values)

Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035. No more than 32 labels can be associated with a session.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
SessionTemplate.Builder

putLabels(String key, String value)

public SessionTemplate.Builder putLabels(String key, String value)

Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035. No more than 32 labels can be associated with a session.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
SessionTemplate.Builder

removeLabels(String key)

public SessionTemplate.Builder removeLabels(String key)

Optional. Labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can be empty, but, if present, must contain 1 to 63 characters and conform to RFC 1035. No more than 32 labels can be associated with a session.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
SessionTemplate.Builder

setCreateTime(Timestamp value)

public SessionTemplate.Builder setCreateTime(Timestamp value)

Output only. The time when the template was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SessionTemplate.Builder

setCreateTime(Timestamp.Builder builderForValue)

public SessionTemplate.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the template was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SessionTemplate.Builder

setCreator(String value)

public SessionTemplate.Builder setCreator(String value)

Output only. The email address of the user who created the template.

string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The creator to set.

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

setCreatorBytes(ByteString value)

public SessionTemplate.Builder setCreatorBytes(ByteString value)

Output only. The email address of the user who created the template.

string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for creator to set.

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

setDescription(String value)

public SessionTemplate.Builder setDescription(String value)

Optional. Brief description of the template.

string description = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SessionTemplate.Builder setDescriptionBytes(ByteString value)

Optional. Brief description of the template.

string description = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

setEnvironmentConfig(EnvironmentConfig value)

public SessionTemplate.Builder setEnvironmentConfig(EnvironmentConfig value)

Optional. Environment configuration for session execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueEnvironmentConfig
Returns
TypeDescription
SessionTemplate.Builder

setEnvironmentConfig(EnvironmentConfig.Builder builderForValue)

public SessionTemplate.Builder setEnvironmentConfig(EnvironmentConfig.Builder builderForValue)

Optional. Environment configuration for session execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueEnvironmentConfig.Builder
Returns
TypeDescription
SessionTemplate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setJupyterSession(JupyterConfig value)

public SessionTemplate.Builder setJupyterSession(JupyterConfig value)

Optional. Jupyter session config.

.google.cloud.dataproc.v1.JupyterConfig jupyter_session = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueJupyterConfig
Returns
TypeDescription
SessionTemplate.Builder

setJupyterSession(JupyterConfig.Builder builderForValue)

public SessionTemplate.Builder setJupyterSession(JupyterConfig.Builder builderForValue)

Optional. Jupyter session config.

.google.cloud.dataproc.v1.JupyterConfig jupyter_session = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueJupyterConfig.Builder
Returns
TypeDescription
SessionTemplate.Builder

setName(String value)

public SessionTemplate.Builder setName(String value)

Required. The resource name of the session template.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SessionTemplate.Builder setNameBytes(ByteString value)

Required. The resource name of the session template.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

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

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

setRuntimeConfig(RuntimeConfig value)

public SessionTemplate.Builder setRuntimeConfig(RuntimeConfig value)

Optional. Runtime configuration for session execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueRuntimeConfig
Returns
TypeDescription
SessionTemplate.Builder

setRuntimeConfig(RuntimeConfig.Builder builderForValue)

public SessionTemplate.Builder setRuntimeConfig(RuntimeConfig.Builder builderForValue)

Optional. Runtime configuration for session execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueRuntimeConfig.Builder
Returns
TypeDescription
SessionTemplate.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public SessionTemplate.Builder setUpdateTime(Timestamp value)

Output only. The time the template was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SessionTemplate.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public SessionTemplate.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time the template was last updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SessionTemplate.Builder

setUuid(String value)

public SessionTemplate.Builder setUuid(String value)

Output only. A session template UUID (Unique Universal Identifier). The service generates this value when it creates the session template.

string uuid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uuid to set.

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public SessionTemplate.Builder setUuidBytes(ByteString value)

Output only. A session template UUID (Unique Universal Identifier). The service generates this value when it creates the session template.

string uuid = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uuid to set.

Returns
TypeDescription
SessionTemplate.Builder

This builder for chaining.