Class RuntimeConfig.Builder (4.11.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RuntimeConfig build()
Returns
TypeDescription
RuntimeConfig

buildPartial()

public RuntimeConfig buildPartial()
Returns
TypeDescription
RuntimeConfig

clear()

public RuntimeConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
RuntimeConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProperties()

public RuntimeConfig.Builder clearProperties()
Returns
TypeDescription
RuntimeConfig.Builder

clearVersion()

public RuntimeConfig.Builder clearVersion()

Optional. Version of the batch runtime.

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

Returns
TypeDescription
RuntimeConfig.Builder

This builder for chaining.

clone()

public RuntimeConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for containerImage.

getDefaultInstanceForType()

public RuntimeConfig getDefaultInstanceForType()
Returns
TypeDescription
RuntimeConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableProperties()

public Map<String,String> getMutableProperties()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getProperties()

public Map<String,String> getProperties()

Use #getPropertiesMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getVersion()

public String getVersion()

Optional. Version of the batch runtime.

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

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. Version of the batch runtime.

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

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RuntimeConfig other)

public RuntimeConfig.Builder mergeFrom(RuntimeConfig other)
Parameter
NameDescription
otherRuntimeConfig
Returns
TypeDescription
RuntimeConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RuntimeConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueString

The containerImage to set.

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

The bytes for containerImage to set.

Returns
TypeDescription
RuntimeConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final RuntimeConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The version to set.

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

The bytes for version to set.

Returns
TypeDescription
RuntimeConfig.Builder

This builder for chaining.