Class AuthenticationConfig.Builder (4.56.0)

public static final class AuthenticationConfig.Builder extends GeneratedMessageV3.Builder<AuthenticationConfig.Builder> implements AuthenticationConfigOrBuilder

Authentication configuration for a workload is used to set the default identity for the workload execution. The config specifies the type of identity (service account or user) that will be used by workloads to access resources on the project(s).

Protobuf type google.cloud.dataproc.v1.AuthenticationConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AuthenticationConfig build()
Returns
Type Description
AuthenticationConfig

buildPartial()

public AuthenticationConfig buildPartial()
Returns
Type Description
AuthenticationConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserWorkloadAuthenticationType()

public AuthenticationConfig.Builder clearUserWorkloadAuthenticationType()

Optional. Authentication type for the user workload running in containers.

.google.cloud.dataproc.v1.AuthenticationConfig.AuthenticationType user_workload_authentication_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthenticationConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AuthenticationConfig getDefaultInstanceForType()
Returns
Type Description
AuthenticationConfig

getDescriptorForType()

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

getUserWorkloadAuthenticationType()

public AuthenticationConfig.AuthenticationType getUserWorkloadAuthenticationType()

Optional. Authentication type for the user workload running in containers.

.google.cloud.dataproc.v1.AuthenticationConfig.AuthenticationType user_workload_authentication_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthenticationConfig.AuthenticationType

The userWorkloadAuthenticationType.

getUserWorkloadAuthenticationTypeValue()

public int getUserWorkloadAuthenticationTypeValue()

Optional. Authentication type for the user workload running in containers.

.google.cloud.dataproc.v1.AuthenticationConfig.AuthenticationType user_workload_authentication_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for userWorkloadAuthenticationType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthenticationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserWorkloadAuthenticationType(AuthenticationConfig.AuthenticationType value)

public AuthenticationConfig.Builder setUserWorkloadAuthenticationType(AuthenticationConfig.AuthenticationType value)

Optional. Authentication type for the user workload running in containers.

.google.cloud.dataproc.v1.AuthenticationConfig.AuthenticationType user_workload_authentication_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AuthenticationConfig.AuthenticationType

The userWorkloadAuthenticationType to set.

Returns
Type Description
AuthenticationConfig.Builder

This builder for chaining.

setUserWorkloadAuthenticationTypeValue(int value)

public AuthenticationConfig.Builder setUserWorkloadAuthenticationTypeValue(int value)

Optional. Authentication type for the user workload running in containers.

.google.cloud.dataproc.v1.AuthenticationConfig.AuthenticationType user_workload_authentication_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for userWorkloadAuthenticationType to set.

Returns
Type Description
AuthenticationConfig.Builder

This builder for chaining.