Class IdentityConfig.Builder (4.40.0)

public static final class IdentityConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserServiceAccountMapping()

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IdentityConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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