Class UserLicense

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1.UserLicense
All Implemented Interfaces:
UserLicenseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class UserLicense extends com.google.protobuf.GeneratedMessage implements UserLicenseOrBuilder
 User License information assigned by the admin.
 
Protobuf type google.cloud.discoveryengine.v1.UserLicense
See Also:
  • Field Details

    • USER_PRINCIPAL_FIELD_NUMBER

      public static final int USER_PRINCIPAL_FIELD_NUMBER
      See Also:
    • USER_PROFILE_FIELD_NUMBER

      public static final int USER_PROFILE_FIELD_NUMBER
      See Also:
    • LICENSE_ASSIGNMENT_STATE_FIELD_NUMBER

      public static final int LICENSE_ASSIGNMENT_STATE_FIELD_NUMBER
      See Also:
    • LICENSE_CONFIG_FIELD_NUMBER

      public static final int LICENSE_CONFIG_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LAST_LOGIN_TIME_FIELD_NUMBER

      public static final int LAST_LOGIN_TIME_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static UserLicense parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UserLicense parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UserLicense parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UserLicense parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UserLicense parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UserLicense parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UserLicense parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UserLicense parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static UserLicense parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static UserLicense parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UserLicense parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UserLicense parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static UserLicense.Builder newBuilder()
    • newBuilder

      public static UserLicense.Builder newBuilder(UserLicense prototype)
    • toBuilder

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

      protected UserLicense.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static UserLicense getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<UserLicense> parser()
    • getParserForType

      public com.google.protobuf.Parser<UserLicense> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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