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.v1alpha.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.v1alpha.Principal
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Group identifier.
     
    User identifier.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Group identifier.
    com.google.protobuf.ByteString
    Group identifier.
     
    User identifier.
    com.google.protobuf.ByteString
    User identifier.
    boolean
    Group identifier.
    boolean
    User identifier.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      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.