Class Principal.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Principal.Builder>
com.google.cloud.discoveryengine.v1.Principal.Builder
All Implemented Interfaces:
PrincipalOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Principal

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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Principal.Builder>
    • clear

      public Principal.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Principal.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Principal.Builder>
    • getDefaultInstanceForType

      public Principal getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Principal build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Principal buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Principal.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Principal.Builder>
    • mergeFrom

      public Principal.Builder mergeFrom(Principal other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Principal.Builder>
    • mergeFrom

      public Principal.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Principal.Builder>
      Throws:
      IOException
    • getPrincipalCase

      public Principal.PrincipalCase getPrincipalCase()
      Specified by:
      getPrincipalCase in interface PrincipalOrBuilder
    • clearPrincipal

      public Principal.Builder clearPrincipal()
    • 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 account, user_id is the mapped user
       identifier configured during the workforcepool config.
       
      string user_id = 1;
      Specified by:
      hasUserId in interface PrincipalOrBuilder
      Returns:
      Whether the userId field is set.
    • getUserId

      public 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;
      Specified by:
      getUserId in interface PrincipalOrBuilder
      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 account, user_id is the mapped user
       identifier configured during the workforcepool config.
       
      string user_id = 1;
      Specified by:
      getUserIdBytes in interface PrincipalOrBuilder
      Returns:
      The bytes for userId.
    • setUserId

      public 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;
      Parameters:
      value - The userId to set.
      Returns:
      This builder for chaining.
    • clearUserId

      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;
      Returns:
      This builder for chaining.
    • setUserIdBytes

      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;
      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 user account, group_id is the mapped
       group identifier configured during the workforcepool config.
       
      string group_id = 2;
      Specified by:
      hasGroupId in interface PrincipalOrBuilder
      Returns:
      Whether the groupId field is set.
    • getGroupId

      public 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;
      Specified by:
      getGroupId in interface PrincipalOrBuilder
      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 user account, group_id is the mapped
       group identifier configured during the workforcepool config.
       
      string group_id = 2;
      Specified by:
      getGroupIdBytes in interface PrincipalOrBuilder
      Returns:
      The bytes for groupId.
    • setGroupId

      public 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;
      Parameters:
      value - The groupId to set.
      Returns:
      This builder for chaining.
    • clearGroupId

      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;
      Returns:
      This builder for chaining.
    • setGroupIdBytes

      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;
      Parameters:
      value - The bytes for groupId to set.
      Returns:
      This builder for chaining.
    • hasExternalEntityId

      public boolean hasExternalEntityId()
       For 3P application identities which are not present in the customer
       identity provider.
       
      string external_entity_id = 3;
      Specified by:
      hasExternalEntityId in interface PrincipalOrBuilder
      Returns:
      Whether the externalEntityId field is set.
    • getExternalEntityId

      public String getExternalEntityId()
       For 3P application identities which are not present in the customer
       identity provider.
       
      string external_entity_id = 3;
      Specified by:
      getExternalEntityId in interface PrincipalOrBuilder
      Returns:
      The externalEntityId.
    • getExternalEntityIdBytes

      public com.google.protobuf.ByteString getExternalEntityIdBytes()
       For 3P application identities which are not present in the customer
       identity provider.
       
      string external_entity_id = 3;
      Specified by:
      getExternalEntityIdBytes in interface PrincipalOrBuilder
      Returns:
      The bytes for externalEntityId.
    • setExternalEntityId

      public Principal.Builder setExternalEntityId(String value)
       For 3P application identities which are not present in the customer
       identity provider.
       
      string external_entity_id = 3;
      Parameters:
      value - The externalEntityId to set.
      Returns:
      This builder for chaining.
    • clearExternalEntityId

      public Principal.Builder clearExternalEntityId()
       For 3P application identities which are not present in the customer
       identity provider.
       
      string external_entity_id = 3;
      Returns:
      This builder for chaining.
    • setExternalEntityIdBytes

      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;
      Parameters:
      value - The bytes for externalEntityId to set.
      Returns:
      This builder for chaining.