public static final class Principal.Builder extends com.google.protobuf.GeneratedMessage.Builder<Principal.Builder> implements PrincipalOrBuilder
Principal identifier of a user or a group.Protobuf type
google.cloud.discoveryengine.v1.Principal| Modifier and Type | Method and Description |
|---|---|
Principal |
build() |
Principal |
buildPartial() |
Principal.Builder |
clear() |
Principal.Builder |
clearExternalEntityId()
For 3P application identities which are not present in the customer
identity provider.
|
Principal.Builder |
clearGroupId()
Group identifier.
|
Principal.Builder |
clearPrincipal() |
Principal.Builder |
clearUserId()
User identifier.
|
Principal |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getExternalEntityId()
For 3P application identities which are not present in the customer
identity provider.
|
com.google.protobuf.ByteString |
getExternalEntityIdBytes()
For 3P application identities which are not present in the customer
identity provider.
|
String |
getGroupId()
Group identifier.
|
com.google.protobuf.ByteString |
getGroupIdBytes()
Group identifier.
|
Principal.PrincipalCase |
getPrincipalCase() |
String |
getUserId()
User identifier.
|
com.google.protobuf.ByteString |
getUserIdBytes()
User identifier.
|
boolean |
hasExternalEntityId()
For 3P application identities which are not present in the customer
identity provider.
|
boolean |
hasGroupId()
Group identifier.
|
boolean |
hasUserId()
User identifier.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Principal.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Principal.Builder |
mergeFrom(com.google.protobuf.Message other) |
Principal.Builder |
mergeFrom(Principal other) |
Principal.Builder |
setExternalEntityId(String value)
For 3P application identities which are not present in the customer
identity provider.
|
Principal.Builder |
setExternalEntityIdBytes(com.google.protobuf.ByteString value)
For 3P application identities which are not present in the customer
identity provider.
|
Principal.Builder |
setGroupId(String value)
Group identifier.
|
Principal.Builder |
setGroupIdBytes(com.google.protobuf.ByteString value)
Group identifier.
|
Principal.Builder |
setUserId(String value)
User identifier.
|
Principal.Builder |
setUserIdBytes(com.google.protobuf.ByteString value)
User identifier.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Principal.Builder>public Principal.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Principal.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Principal.Builder>public Principal getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Principal build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Principal buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Principal.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Principal.Builder>public Principal.Builder mergeFrom(Principal other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Principal.Builder>public Principal.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Principal.Builder>IOExceptionpublic Principal.PrincipalCase getPrincipalCase()
getPrincipalCase in interface PrincipalOrBuilderpublic Principal.Builder clearPrincipal()
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 account, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 1;hasUserId in interface PrincipalOrBuilderpublic String getUserId()
User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 1;getUserId in interface PrincipalOrBuilderpublic 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 account, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 1;getUserIdBytes in interface PrincipalOrBuilderpublic Principal.Builder setUserId(String value)
User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 1;value - The userId to set.public Principal.Builder clearUserId()
User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 1;public Principal.Builder setUserIdBytes(com.google.protobuf.ByteString value)
User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config.
string user_id = 1;value - The bytes for userId to set.public boolean hasGroupId()
Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider user account, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 2;hasGroupId in interface PrincipalOrBuilderpublic String getGroupId()
Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider user account, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 2;getGroupId in interface PrincipalOrBuilderpublic 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 user account, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 2;getGroupIdBytes in interface PrincipalOrBuilderpublic Principal.Builder setGroupId(String value)
Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider user account, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 2;value - The groupId to set.public Principal.Builder clearGroupId()
Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider user account, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 2;public Principal.Builder setGroupIdBytes(com.google.protobuf.ByteString value)
Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider user account, group_id is the mapped group identifier configured during the workforcepool config.
string group_id = 2;value - The bytes for groupId to set.public boolean hasExternalEntityId()
For 3P application identities which are not present in the customer identity provider.
string external_entity_id = 3;hasExternalEntityId in interface PrincipalOrBuilderpublic String getExternalEntityId()
For 3P application identities which are not present in the customer identity provider.
string external_entity_id = 3;getExternalEntityId in interface PrincipalOrBuilderpublic com.google.protobuf.ByteString getExternalEntityIdBytes()
For 3P application identities which are not present in the customer identity provider.
string external_entity_id = 3;getExternalEntityIdBytes in interface PrincipalOrBuilderpublic Principal.Builder setExternalEntityId(String value)
For 3P application identities which are not present in the customer identity provider.
string external_entity_id = 3;value - The externalEntityId to set.public Principal.Builder clearExternalEntityId()
For 3P application identities which are not present in the customer identity provider.
string external_entity_id = 3;public Principal.Builder setExternalEntityIdBytes(com.google.protobuf.ByteString value)
For 3P application identities which are not present in the customer identity provider.
string external_entity_id = 3;value - The bytes for externalEntityId to set.Copyright © 2026 Google LLC. All rights reserved.