Class PeripheralsConfig.Builder (4.0.5)

public static final class PeripheralsConfig.Builder extends GeneratedMessageV3.Builder<PeripheralsConfig.Builder> implements PeripheralsConfigOrBuilder

Auxiliary services configuration for a workload.

Protobuf type google.cloud.dataproc.v1.PeripheralsConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PeripheralsConfig build()
Returns
TypeDescription
PeripheralsConfig

buildPartial()

public PeripheralsConfig buildPartial()
Returns
TypeDescription
PeripheralsConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetastoreService()

public PeripheralsConfig.Builder clearMetastoreService()

Optional. Resource name of an existing Dataproc Metastore service. Example:

  • projects/[project_id]/locations/[region]/services/[service_id]

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

Returns
TypeDescription
PeripheralsConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSparkHistoryServerConfig()

public PeripheralsConfig.Builder clearSparkHistoryServerConfig()

Optional. The Spark History Server configuration for the workload.

.google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PeripheralsConfig.Builder

clone()

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

getDefaultInstanceForType()

public PeripheralsConfig getDefaultInstanceForType()
Returns
TypeDescription
PeripheralsConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetastoreService()

public String getMetastoreService()

Optional. Resource name of an existing Dataproc Metastore service. Example:

  • projects/[project_id]/locations/[region]/services/[service_id]

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

Returns
TypeDescription
String

The metastoreService.

getMetastoreServiceBytes()

public ByteString getMetastoreServiceBytes()

Optional. Resource name of an existing Dataproc Metastore service. Example:

  • projects/[project_id]/locations/[region]/services/[service_id]

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

Returns
TypeDescription
ByteString

The bytes for metastoreService.

getSparkHistoryServerConfig()

public SparkHistoryServerConfig getSparkHistoryServerConfig()

Optional. The Spark History Server configuration for the workload.

.google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SparkHistoryServerConfig

The sparkHistoryServerConfig.

getSparkHistoryServerConfigBuilder()

public SparkHistoryServerConfig.Builder getSparkHistoryServerConfigBuilder()

Optional. The Spark History Server configuration for the workload.

.google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SparkHistoryServerConfig.Builder

getSparkHistoryServerConfigOrBuilder()

public SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder()

Optional. The Spark History Server configuration for the workload.

.google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SparkHistoryServerConfigOrBuilder

hasSparkHistoryServerConfig()

public boolean hasSparkHistoryServerConfig()

Optional. The Spark History Server configuration for the workload.

.google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the sparkHistoryServerConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PeripheralsConfig other)

public PeripheralsConfig.Builder mergeFrom(PeripheralsConfig other)
Parameter
NameDescription
otherPeripheralsConfig
Returns
TypeDescription
PeripheralsConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSparkHistoryServerConfig(SparkHistoryServerConfig value)

public PeripheralsConfig.Builder mergeSparkHistoryServerConfig(SparkHistoryServerConfig value)

Optional. The Spark History Server configuration for the workload.

.google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSparkHistoryServerConfig
Returns
TypeDescription
PeripheralsConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetastoreService(String value)

public PeripheralsConfig.Builder setMetastoreService(String value)

Optional. Resource name of an existing Dataproc Metastore service. Example:

  • projects/[project_id]/locations/[region]/services/[service_id]

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

Parameter
NameDescription
valueString

The metastoreService to set.

Returns
TypeDescription
PeripheralsConfig.Builder

This builder for chaining.

setMetastoreServiceBytes(ByteString value)

public PeripheralsConfig.Builder setMetastoreServiceBytes(ByteString value)

Optional. Resource name of an existing Dataproc Metastore service. Example:

  • projects/[project_id]/locations/[region]/services/[service_id]

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

Parameter
NameDescription
valueByteString

The bytes for metastoreService to set.

Returns
TypeDescription
PeripheralsConfig.Builder

This builder for chaining.

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

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

setSparkHistoryServerConfig(SparkHistoryServerConfig value)

public PeripheralsConfig.Builder setSparkHistoryServerConfig(SparkHistoryServerConfig value)

Optional. The Spark History Server configuration for the workload.

.google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSparkHistoryServerConfig
Returns
TypeDescription
PeripheralsConfig.Builder

setSparkHistoryServerConfig(SparkHistoryServerConfig.Builder builderForValue)

public PeripheralsConfig.Builder setSparkHistoryServerConfig(SparkHistoryServerConfig.Builder builderForValue)

Optional. The Spark History Server configuration for the workload.

.google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueSparkHistoryServerConfig.Builder
Returns
TypeDescription
PeripheralsConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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