Class RuntimeConfig.Builder (4.39.0)

public static final class RuntimeConfig.Builder extends GeneratedMessageV3.Builder<RuntimeConfig.Builder> implements RuntimeConfigOrBuilder

Runtime configuration for a workload.

Protobuf type google.cloud.dataproc.v1.RuntimeConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RuntimeConfig build()
Returns
Type Description
RuntimeConfig

buildPartial()

public RuntimeConfig buildPartial()
Returns
Type Description
RuntimeConfig

clear()

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

clearContainerImage()

public RuntimeConfig.Builder clearContainerImage()

Optional. Optional custom container image for the job runtime environment. If not specified, a default container image will be used.

string container_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RuntimeConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProperties()

public RuntimeConfig.Builder clearProperties()
Returns
Type Description
RuntimeConfig.Builder

clearRepositoryConfig()

public RuntimeConfig.Builder clearRepositoryConfig()

Optional. Dependency repository configuration.

.google.cloud.dataproc.v1.RepositoryConfig repository_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RuntimeConfig.Builder

clearVersion()

public RuntimeConfig.Builder clearVersion()

Optional. Version of the batch runtime.

string version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RuntimeConfig.Builder

This builder for chaining.

clone()

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

containsProperties(String key)

public boolean containsProperties(String key)

Optional. A mapping of property names to values, which are used to configure workload execution.

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

Parameter
Name Description
key String
Returns
Type Description
boolean

getContainerImage()

public String getContainerImage()

Optional. Optional custom container image for the job runtime environment. If not specified, a default container image will be used.

string container_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The containerImage.

getContainerImageBytes()

public ByteString getContainerImageBytes()

Optional. Optional custom container image for the job runtime environment. If not specified, a default container image will be used.

string container_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for containerImage.

getDefaultInstanceForType()

public RuntimeConfig getDefaultInstanceForType()
Returns
Type Description
RuntimeConfig

getDescriptorForType()

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

getMutableProperties() (deprecated)

public Map<String,String> getMutableProperties()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getProperties() (deprecated)

public Map<String,String> getProperties()

Use #getPropertiesMap() instead.

Returns
Type Description
Map<String,String>

getPropertiesCount()

public int getPropertiesCount()

Optional. A mapping of property names to values, which are used to configure workload execution.

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

Returns
Type Description
int

getPropertiesMap()

public Map<String,String> getPropertiesMap()

Optional. A mapping of property names to values, which are used to configure workload execution.

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

Returns
Type Description
Map<String,String>

getPropertiesOrDefault(String key, String defaultValue)

public String getPropertiesOrDefault(String key, String defaultValue)

Optional. A mapping of property names to values, which are used to configure workload execution.

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

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getPropertiesOrThrow(String key)

public String getPropertiesOrThrow(String key)

Optional. A mapping of property names to values, which are used to configure workload execution.

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

Parameter
Name Description
key String
Returns
Type Description
String

getRepositoryConfig()

public RepositoryConfig getRepositoryConfig()

Optional. Dependency repository configuration.

.google.cloud.dataproc.v1.RepositoryConfig repository_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RepositoryConfig

The repositoryConfig.

getRepositoryConfigBuilder()

public RepositoryConfig.Builder getRepositoryConfigBuilder()

Optional. Dependency repository configuration.

.google.cloud.dataproc.v1.RepositoryConfig repository_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RepositoryConfig.Builder

getRepositoryConfigOrBuilder()

public RepositoryConfigOrBuilder getRepositoryConfigOrBuilder()

Optional. Dependency repository configuration.

.google.cloud.dataproc.v1.RepositoryConfig repository_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RepositoryConfigOrBuilder

getVersion()

public String getVersion()

Optional. Version of the batch runtime.

string version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. Version of the batch runtime.

string version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for version.

hasRepositoryConfig()

public boolean hasRepositoryConfig()

Optional. Dependency repository configuration.

.google.cloud.dataproc.v1.RepositoryConfig repository_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the repositoryConfig 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

mergeFrom(RuntimeConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRepositoryConfig(RepositoryConfig value)

public RuntimeConfig.Builder mergeRepositoryConfig(RepositoryConfig value)

Optional. Dependency repository configuration.

.google.cloud.dataproc.v1.RepositoryConfig repository_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RepositoryConfig
Returns
Type Description
RuntimeConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllProperties(Map<String,String> values)

public RuntimeConfig.Builder putAllProperties(Map<String,String> values)

Optional. A mapping of property names to values, which are used to configure workload execution.

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

Parameter
Name Description
values Map<String,String>
Returns
Type Description
RuntimeConfig.Builder

putProperties(String key, String value)

public RuntimeConfig.Builder putProperties(String key, String value)

Optional. A mapping of property names to values, which are used to configure workload execution.

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

Parameters
Name Description
key String
value String
Returns
Type Description
RuntimeConfig.Builder

removeProperties(String key)

public RuntimeConfig.Builder removeProperties(String key)

Optional. A mapping of property names to values, which are used to configure workload execution.

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

Parameter
Name Description
key String
Returns
Type Description
RuntimeConfig.Builder

setContainerImage(String value)

public RuntimeConfig.Builder setContainerImage(String value)

Optional. Optional custom container image for the job runtime environment. If not specified, a default container image will be used.

string container_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The containerImage to set.

Returns
Type Description
RuntimeConfig.Builder

This builder for chaining.

setContainerImageBytes(ByteString value)

public RuntimeConfig.Builder setContainerImageBytes(ByteString value)

Optional. Optional custom container image for the job runtime environment. If not specified, a default container image will be used.

string container_image = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for containerImage to set.

Returns
Type Description
RuntimeConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRepositoryConfig(RepositoryConfig value)

public RuntimeConfig.Builder setRepositoryConfig(RepositoryConfig value)

Optional. Dependency repository configuration.

.google.cloud.dataproc.v1.RepositoryConfig repository_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RepositoryConfig
Returns
Type Description
RuntimeConfig.Builder

setRepositoryConfig(RepositoryConfig.Builder builderForValue)

public RuntimeConfig.Builder setRepositoryConfig(RepositoryConfig.Builder builderForValue)

Optional. Dependency repository configuration.

.google.cloud.dataproc.v1.RepositoryConfig repository_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RepositoryConfig.Builder
Returns
Type Description
RuntimeConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public RuntimeConfig.Builder setVersion(String value)

Optional. Version of the batch runtime.

string version = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
RuntimeConfig.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public RuntimeConfig.Builder setVersionBytes(ByteString value)

Optional. Version of the batch runtime.

string version = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
RuntimeConfig.Builder

This builder for chaining.