Class MetastoreConfig.Builder (4.8.0)

public static final class MetastoreConfig.Builder extends GeneratedMessageV3.Builder<MetastoreConfig.Builder> implements MetastoreConfigOrBuilder

Specifies a Metastore configuration.

Protobuf type google.cloud.dataproc.v1.MetastoreConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MetastoreConfig build()
Returns
TypeDescription
MetastoreConfig

buildPartial()

public MetastoreConfig buildPartial()
Returns
TypeDescription
MetastoreConfig

clear()

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

clearDataprocMetastoreService()

public MetastoreConfig.Builder clearDataprocMetastoreService()

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

  • projects/[project_id]/locations/[dataproc_region]/services/[service-name]

string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
MetastoreConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDataprocMetastoreService()

public String getDataprocMetastoreService()

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

  • projects/[project_id]/locations/[dataproc_region]/services/[service-name]

string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The dataprocMetastoreService.

getDataprocMetastoreServiceBytes()

public ByteString getDataprocMetastoreServiceBytes()

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

  • projects/[project_id]/locations/[dataproc_region]/services/[service-name]

string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for dataprocMetastoreService.

getDefaultInstanceForType()

public MetastoreConfig getDefaultInstanceForType()
Returns
TypeDescription
MetastoreConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MetastoreConfig other)

public MetastoreConfig.Builder mergeFrom(MetastoreConfig other)
Parameter
NameDescription
otherMetastoreConfig
Returns
TypeDescription
MetastoreConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataprocMetastoreService(String value)

public MetastoreConfig.Builder setDataprocMetastoreService(String value)

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

  • projects/[project_id]/locations/[dataproc_region]/services/[service-name]

string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The dataprocMetastoreService to set.

Returns
TypeDescription
MetastoreConfig.Builder

This builder for chaining.

setDataprocMetastoreServiceBytes(ByteString value)

public MetastoreConfig.Builder setDataprocMetastoreServiceBytes(ByteString value)

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

  • projects/[project_id]/locations/[dataproc_region]/services/[service-name]

string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for dataprocMetastoreService to set.

Returns
TypeDescription
MetastoreConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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