public static final class Principal.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder> implements PrincipalOrBuilder
Principal identifier of a user or a group.Protobuf type
google.cloud.discoveryengine.v1alpha.Principal| Modifier and Type | Method and Description |
|---|---|
Principal.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Principal |
build() |
Principal |
buildPartial() |
Principal.Builder |
clear() |
Principal.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Principal.Builder |
clearGroupId()
Group identifier.
|
Principal.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Principal.Builder |
clearPrincipal() |
Principal.Builder |
clearUserId()
User identifier.
|
Principal.Builder |
clone() |
Principal |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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 |
hasGroupId()
Group identifier.
|
boolean |
hasUserId()
User identifier.
|
protected com.google.protobuf.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Principal.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Principal.Builder |
setGroupId(String value)
Group identifier.
|
Principal.Builder |
setGroupIdBytes(com.google.protobuf.ByteString value)
Group identifier.
|
Principal.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Principal.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Principal.Builder |
setUserId(String value)
User identifier.
|
Principal.Builder |
setUserIdBytes(com.google.protobuf.ByteString value)
User identifier.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>public Principal.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>public Principal.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>public Principal.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>public Principal.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>public Principal.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>public 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.GeneratedMessageV3.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 final Principal.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>public final Principal.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Principal.Builder>Copyright © 2024 Google LLC. All rights reserved.