Class IdentityMappingEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IdentityMappingEntry.Builder>
com.google.cloud.discoveryengine.v1.IdentityMappingEntry.Builder
- All Implemented Interfaces:
IdentityMappingEntryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- IdentityMappingEntry
public static final class IdentityMappingEntry.Builder
extends com.google.protobuf.GeneratedMessage.Builder<IdentityMappingEntry.Builder>
implements IdentityMappingEntryOrBuilder
Identity Mapping Entry that maps an external identity to an internal identity.Protobuf type
google.cloud.discoveryengine.v1.IdentityMappingEntry-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Group identifier.User identifier.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Group identifier.com.google.protobuf.ByteStringGroup identifier.User identifier.com.google.protobuf.ByteStringUser identifier.booleanGroup identifier.booleanUser identifier.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(IdentityMappingEntry other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExternalIdentity(String value) Required.setExternalIdentityBytes(com.google.protobuf.ByteString value) Required.setGroupId(String value) Group identifier.setGroupIdBytes(com.google.protobuf.ByteString value) Group identifier.User identifier.setUserIdBytes(com.google.protobuf.ByteString value) User identifier.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<IdentityMappingEntry.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<IdentityMappingEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<IdentityMappingEntry.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IdentityMappingEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<IdentityMappingEntry.Builder>
-
mergeFrom
public IdentityMappingEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IdentityMappingEntry.Builder>- Throws:
IOException
-
getIdentityProviderIdCase
- Specified by:
getIdentityProviderIdCasein interfaceIdentityMappingEntryOrBuilder
-
clearIdentityProviderId
-
hasUserId
public boolean hasUserId()User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 2;- Specified by:
hasUserIdin interfaceIdentityMappingEntryOrBuilder- Returns:
- Whether the userId field is set.
-
getUserId
User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 2;- Specified by:
getUserIdin interfaceIdentityMappingEntryOrBuilder- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 2;- Specified by:
getUserIdBytesin interfaceIdentityMappingEntryOrBuilder- Returns:
- The bytes for userId.
-
setUserId
User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 2;- Parameters:
value- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 2;- Returns:
- This builder for chaining.
-
setUserIdBytes
User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 2;- Parameters:
value- The bytes for userId to set.- Returns:
- This builder for chaining.
-
hasGroupId
public boolean hasGroupId()Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 3;- Specified by:
hasGroupIdin interfaceIdentityMappingEntryOrBuilder- Returns:
- Whether the groupId field is set.
-
getGroupId
Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 3;- Specified by:
getGroupIdin interfaceIdentityMappingEntryOrBuilder- Returns:
- The groupId.
-
getGroupIdBytes
public com.google.protobuf.ByteString getGroupIdBytes()Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 3;- Specified by:
getGroupIdBytesin interfaceIdentityMappingEntryOrBuilder- Returns:
- The bytes for groupId.
-
setGroupId
Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 3;- Parameters:
value- The groupId to set.- Returns:
- This builder for chaining.
-
clearGroupId
Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 3;- Returns:
- This builder for chaining.
-
setGroupIdBytes
Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 3;- Parameters:
value- The bytes for groupId to set.- Returns:
- This builder for chaining.
-
getExternalIdentity
Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.
string external_identity = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getExternalIdentityin interfaceIdentityMappingEntryOrBuilder- Returns:
- The externalIdentity.
-
getExternalIdentityBytes
public com.google.protobuf.ByteString getExternalIdentityBytes()Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.
string external_identity = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getExternalIdentityBytesin interfaceIdentityMappingEntryOrBuilder- Returns:
- The bytes for externalIdentity.
-
setExternalIdentity
Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.
string external_identity = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The externalIdentity to set.- Returns:
- This builder for chaining.
-
clearExternalIdentity
Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.
string external_identity = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setExternalIdentityBytes
Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.
string external_identity = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for externalIdentity to set.- Returns:
- This builder for chaining.
-