Class UserLicense.Builder

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

public static final class UserLicense.Builder extends com.google.protobuf.GeneratedMessage.Builder<UserLicense.Builder> implements UserLicenseOrBuilder
 User License information assigned by the admin.
 
Protobuf type google.cloud.discoveryengine.v1.UserLicense
  • 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<UserLicense.Builder>
    • clear

      public UserLicense.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<UserLicense.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<UserLicense.Builder>
    • getDefaultInstanceForType

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

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

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

      public UserLicense.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<UserLicense.Builder>
    • mergeFrom

      public UserLicense.Builder mergeFrom(UserLicense other)
    • isInitialized

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

      public UserLicense.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<UserLicense.Builder>
      Throws:
      IOException
    • getUserPrincipal

      public String getUserPrincipal()
       Required. Immutable. The user principal of the User, could be email address
       or other prinical identifier. This field is immutable. Admin assign
       licenses based on the user principal.
       
      string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUserPrincipal in interface UserLicenseOrBuilder
      Returns:
      The userPrincipal.
    • getUserPrincipalBytes

      public com.google.protobuf.ByteString getUserPrincipalBytes()
       Required. Immutable. The user principal of the User, could be email address
       or other prinical identifier. This field is immutable. Admin assign
       licenses based on the user principal.
       
      string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUserPrincipalBytes in interface UserLicenseOrBuilder
      Returns:
      The bytes for userPrincipal.
    • setUserPrincipal

      public UserLicense.Builder setUserPrincipal(String value)
       Required. Immutable. The user principal of the User, could be email address
       or other prinical identifier. This field is immutable. Admin assign
       licenses based on the user principal.
       
      string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The userPrincipal to set.
      Returns:
      This builder for chaining.
    • clearUserPrincipal

      public UserLicense.Builder clearUserPrincipal()
       Required. Immutable. The user principal of the User, could be email address
       or other prinical identifier. This field is immutable. Admin assign
       licenses based on the user principal.
       
      string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUserPrincipalBytes

      public UserLicense.Builder setUserPrincipalBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The user principal of the User, could be email address
       or other prinical identifier. This field is immutable. Admin assign
       licenses based on the user principal.
       
      string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for userPrincipal to set.
      Returns:
      This builder for chaining.
    • getUserProfile

      public String getUserProfile()
       Optional. The user profile.
       We user user full name(First name + Last name) as user profile.
       
      string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUserProfile in interface UserLicenseOrBuilder
      Returns:
      The userProfile.
    • getUserProfileBytes

      public com.google.protobuf.ByteString getUserProfileBytes()
       Optional. The user profile.
       We user user full name(First name + Last name) as user profile.
       
      string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUserProfileBytes in interface UserLicenseOrBuilder
      Returns:
      The bytes for userProfile.
    • setUserProfile

      public UserLicense.Builder setUserProfile(String value)
       Optional. The user profile.
       We user user full name(First name + Last name) as user profile.
       
      string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The userProfile to set.
      Returns:
      This builder for chaining.
    • clearUserProfile

      public UserLicense.Builder clearUserProfile()
       Optional. The user profile.
       We user user full name(First name + Last name) as user profile.
       
      string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUserProfileBytes

      public UserLicense.Builder setUserProfileBytes(com.google.protobuf.ByteString value)
       Optional. The user profile.
       We user user full name(First name + Last name) as user profile.
       
      string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for userProfile to set.
      Returns:
      This builder for chaining.
    • getLicenseAssignmentStateValue

      public int getLicenseAssignmentStateValue()
       Output only. License assignment state of the user.
       If the user is assigned with a license config, the user loggin will be
       assigned with the license;
       If the user's license assignment state is unassigned or unspecified, no
       license config will be associated to the user;
       
      .google.cloud.discoveryengine.v1.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLicenseAssignmentStateValue in interface UserLicenseOrBuilder
      Returns:
      The enum numeric value on the wire for licenseAssignmentState.
    • setLicenseAssignmentStateValue

      public UserLicense.Builder setLicenseAssignmentStateValue(int value)
       Output only. License assignment state of the user.
       If the user is assigned with a license config, the user loggin will be
       assigned with the license;
       If the user's license assignment state is unassigned or unspecified, no
       license config will be associated to the user;
       
      .google.cloud.discoveryengine.v1.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for licenseAssignmentState to set.
      Returns:
      This builder for chaining.
    • getLicenseAssignmentState

      public UserLicense.LicenseAssignmentState getLicenseAssignmentState()
       Output only. License assignment state of the user.
       If the user is assigned with a license config, the user loggin will be
       assigned with the license;
       If the user's license assignment state is unassigned or unspecified, no
       license config will be associated to the user;
       
      .google.cloud.discoveryengine.v1.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLicenseAssignmentState in interface UserLicenseOrBuilder
      Returns:
      The licenseAssignmentState.
    • setLicenseAssignmentState

      public UserLicense.Builder setLicenseAssignmentState(UserLicense.LicenseAssignmentState value)
       Output only. License assignment state of the user.
       If the user is assigned with a license config, the user loggin will be
       assigned with the license;
       If the user's license assignment state is unassigned or unspecified, no
       license config will be associated to the user;
       
      .google.cloud.discoveryengine.v1.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The licenseAssignmentState to set.
      Returns:
      This builder for chaining.
    • clearLicenseAssignmentState

      public UserLicense.Builder clearLicenseAssignmentState()
       Output only. License assignment state of the user.
       If the user is assigned with a license config, the user loggin will be
       assigned with the license;
       If the user's license assignment state is unassigned or unspecified, no
       license config will be associated to the user;
       
      .google.cloud.discoveryengine.v1.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getLicenseConfig

      public String getLicenseConfig()
       Optional. The full resource name of the Subscription(LicenseConfig)
       assigned to the user.
       
      string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLicenseConfig in interface UserLicenseOrBuilder
      Returns:
      The licenseConfig.
    • getLicenseConfigBytes

      public com.google.protobuf.ByteString getLicenseConfigBytes()
       Optional. The full resource name of the Subscription(LicenseConfig)
       assigned to the user.
       
      string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLicenseConfigBytes in interface UserLicenseOrBuilder
      Returns:
      The bytes for licenseConfig.
    • setLicenseConfig

      public UserLicense.Builder setLicenseConfig(String value)
       Optional. The full resource name of the Subscription(LicenseConfig)
       assigned to the user.
       
      string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The licenseConfig to set.
      Returns:
      This builder for chaining.
    • clearLicenseConfig

      public UserLicense.Builder clearLicenseConfig()
       Optional. The full resource name of the Subscription(LicenseConfig)
       assigned to the user.
       
      string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setLicenseConfigBytes

      public UserLicense.Builder setLicenseConfigBytes(com.google.protobuf.ByteString value)
       Optional. The full resource name of the Subscription(LicenseConfig)
       assigned to the user.
       
      string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for licenseConfig to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. User created timestamp.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface UserLicenseOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. User created timestamp.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface UserLicenseOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public UserLicense.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. User created timestamp.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public UserLicense.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. User created timestamp.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public UserLicense.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. User created timestamp.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public UserLicense.Builder clearCreateTime()
       Output only. User created timestamp.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. User created timestamp.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. User created timestamp.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface UserLicenseOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. User update timestamp.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface UserLicenseOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. User update timestamp.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface UserLicenseOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public UserLicense.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. User update timestamp.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public UserLicense.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. User update timestamp.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public UserLicense.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. User update timestamp.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public UserLicense.Builder clearUpdateTime()
       Output only. User update timestamp.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. User update timestamp.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. User update timestamp.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface UserLicenseOrBuilder
    • hasLastLoginTime

      public boolean hasLastLoginTime()
       Output only. User last logged in time.
       If the user has not logged in yet, this field will be empty.
       
      .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastLoginTime in interface UserLicenseOrBuilder
      Returns:
      Whether the lastLoginTime field is set.
    • getLastLoginTime

      public com.google.protobuf.Timestamp getLastLoginTime()
       Output only. User last logged in time.
       If the user has not logged in yet, this field will be empty.
       
      .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastLoginTime in interface UserLicenseOrBuilder
      Returns:
      The lastLoginTime.
    • setLastLoginTime

      public UserLicense.Builder setLastLoginTime(com.google.protobuf.Timestamp value)
       Output only. User last logged in time.
       If the user has not logged in yet, this field will be empty.
       
      .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLastLoginTime

      public UserLicense.Builder setLastLoginTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. User last logged in time.
       If the user has not logged in yet, this field will be empty.
       
      .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeLastLoginTime

      public UserLicense.Builder mergeLastLoginTime(com.google.protobuf.Timestamp value)
       Output only. User last logged in time.
       If the user has not logged in yet, this field will be empty.
       
      .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLastLoginTime

      public UserLicense.Builder clearLastLoginTime()
       Output only. User last logged in time.
       If the user has not logged in yet, this field will be empty.
       
      .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastLoginTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastLoginTimeBuilder()
       Output only. User last logged in time.
       If the user has not logged in yet, this field will be empty.
       
      .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastLoginTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastLoginTimeOrBuilder()
       Output only. User last logged in time.
       If the user has not logged in yet, this field will be empty.
       
      .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastLoginTimeOrBuilder in interface UserLicenseOrBuilder