Class IdentityConfig.Builder (4.80.0)

public static final class IdentityConfig.Builder extends GeneratedMessage.Builder<IdentityConfig.Builder> implements IdentityConfigOrBuilder

Identity related configuration, including service account based secure multi-tenancy user mappings.

Protobuf type google.cloud.dataproc.v1.IdentityConfig

Static Methods

getDescriptor()

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

Methods

build()

public IdentityConfig build()
Returns
Type Description
IdentityConfig

buildPartial()

public IdentityConfig buildPartial()
Returns
Type Description
IdentityConfig

clear()

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

clearUserServiceAccountMapping()

public IdentityConfig.Builder clearUserServiceAccountMapping()
Returns
Type Description
IdentityConfig.Builder

containsUserServiceAccountMapping(String key)

public boolean containsUserServiceAccountMapping(String key)

Required. Map of user to service account.

map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public IdentityConfig getDefaultInstanceForType()
Returns
Type Description
IdentityConfig

getDescriptorForType()

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

getMutableUserServiceAccountMapping() (deprecated)

public Map<String,String> getMutableUserServiceAccountMapping()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getUserServiceAccountMapping() (deprecated)

public Map<String,String> getUserServiceAccountMapping()
Returns
Type Description
Map<String,String>

getUserServiceAccountMappingCount()

public int getUserServiceAccountMappingCount()

Required. Map of user to service account.

map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getUserServiceAccountMappingMap()

public Map<String,String> getUserServiceAccountMappingMap()

Required. Map of user to service account.

map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Map<String,String>

getUserServiceAccountMappingOrDefault(String key, String defaultValue)

public String getUserServiceAccountMappingOrDefault(String key, String defaultValue)

Required. Map of user to service account.

map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getUserServiceAccountMappingOrThrow(String key)

public String getUserServiceAccountMappingOrThrow(String key)

Required. Map of user to service account.

map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
String

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IdentityConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

putAllUserServiceAccountMapping(Map<String,String> values)

public IdentityConfig.Builder putAllUserServiceAccountMapping(Map<String,String> values)

Required. Map of user to service account.

map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
IdentityConfig.Builder

putUserServiceAccountMapping(String key, String value)

public IdentityConfig.Builder putUserServiceAccountMapping(String key, String value)

Required. Map of user to service account.

map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
key String
value String
Returns
Type Description
IdentityConfig.Builder

removeUserServiceAccountMapping(String key)

public IdentityConfig.Builder removeUserServiceAccountMapping(String key)

Required. Map of user to service account.

map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
key String
Returns
Type Description
IdentityConfig.Builder