Class AuthenticationConfig.Builder (4.80.0)

public static final class AuthenticationConfig.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.