Class SessionTemplate.Builder (4.43.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SessionTemplate build()
Returns
Type Description
SessionTemplate

buildPartial()

public SessionTemplate buildPartial()
Returns
Type Description
SessionTemplate

clear()

public SessionTemplate.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
SessionTemplate.Builder

clearField(Descriptors.FieldDescriptor field)

public SessionTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
SessionTemplate.Builder

clearLabels()

public SessionTemplate.Builder clearLabels()
Returns
Type Description
SessionTemplate.Builder

clearName()

public SessionTemplate.Builder clearName()

Required. The resource name of the session template.

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

Returns
Type Description
SessionTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SessionTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
SessionTemplate.Builder

clearSessionConfig()

public SessionTemplate.Builder clearSessionConfig()
Returns
Type Description
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
Type Description
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
Type Description
SessionTemplate.Builder

This builder for chaining.

clone()

public SessionTemplate.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for creator.

getDefaultInstanceForType()

public SessionTemplate getDefaultInstanceForType()
Returns
Type Description
SessionTemplate

getDescription()

public String getDescription()

Optional. Brief description of the template.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Brief description of the template.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
EnvironmentConfigOrBuilder

getJupyterSession()

public JupyterConfig getJupyterSession()

Optional. Jupyter session config.

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

Returns
Type Description
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
Type Description
JupyterConfig.Builder

getJupyterSessionOrBuilder()

public JupyterConfigOrBuilder getJupyterSessionOrBuilder()

Optional. Jupyter session config.

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

Returns
Type Description
JupyterConfigOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. The resource name of the session template.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the session template.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
RuntimeConfigOrBuilder

getSessionConfigCase()

public SessionTemplate.SessionConfigCase getSessionConfigCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
value EnvironmentConfig
Returns
Type Description
SessionTemplate.Builder

mergeFrom(SessionTemplate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SessionTemplate.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value JupyterConfig
Returns
Type Description
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
Name Description
value RuntimeConfig
Returns
Type Description
SessionTemplate.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SessionTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The creator to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for creator to set.

Returns
Type Description
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
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
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
Name Description
value EnvironmentConfig
Returns
Type Description
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
Name Description
builderForValue EnvironmentConfig.Builder
Returns
Type Description
SessionTemplate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SessionTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value JupyterConfig
Returns
Type Description
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
Name Description
builderForValue JupyterConfig.Builder
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value RuntimeConfig
Returns
Type Description
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
Name Description
builderForValue RuntimeConfig.Builder
Returns
Type Description
SessionTemplate.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SessionTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The uuid to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for uuid to set.

Returns
Type Description
SessionTemplate.Builder

This builder for chaining.