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| Modifier and Type | Method and Description |
|---|---|
UserLicense |
build() |
UserLicense |
buildPartial() |
UserLicense.Builder |
clear() |
UserLicense.Builder |
clearCreateTime()
Output only.
|
UserLicense.Builder |
clearLastLoginTime()
Output only.
|
UserLicense.Builder |
clearLicenseAssignmentState()
Output only.
|
UserLicense.Builder |
clearLicenseConfig()
Optional.
|
UserLicense.Builder |
clearUpdateTime()
Output only.
|
UserLicense.Builder |
clearUserPrincipal()
Required.
|
UserLicense.Builder |
clearUserProfile()
Optional.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
UserLicense |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Timestamp |
getLastLoginTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getLastLoginTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getLastLoginTimeOrBuilder()
Output only.
|
UserLicense.LicenseAssignmentState |
getLicenseAssignmentState()
Output only.
|
int |
getLicenseAssignmentStateValue()
Output only.
|
String |
getLicenseConfig()
Optional.
|
com.google.protobuf.ByteString |
getLicenseConfigBytes()
Optional.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
String |
getUserPrincipal()
Required.
|
com.google.protobuf.ByteString |
getUserPrincipalBytes()
Required.
|
String |
getUserProfile()
Optional.
|
com.google.protobuf.ByteString |
getUserProfileBytes()
Optional.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasLastLoginTime()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
UserLicense.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
UserLicense.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UserLicense.Builder |
mergeFrom(com.google.protobuf.Message other) |
UserLicense.Builder |
mergeFrom(UserLicense other) |
UserLicense.Builder |
mergeLastLoginTime(com.google.protobuf.Timestamp value)
Output only.
|
UserLicense.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
UserLicense.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
UserLicense.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
UserLicense.Builder |
setLastLoginTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
UserLicense.Builder |
setLastLoginTime(com.google.protobuf.Timestamp value)
Output only.
|
UserLicense.Builder |
setLicenseAssignmentState(UserLicense.LicenseAssignmentState value)
Output only.
|
UserLicense.Builder |
setLicenseAssignmentStateValue(int value)
Output only.
|
UserLicense.Builder |
setLicenseConfig(String value)
Optional.
|
UserLicense.Builder |
setLicenseConfigBytes(com.google.protobuf.ByteString value)
Optional.
|
UserLicense.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
UserLicense.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
UserLicense.Builder |
setUserPrincipal(String value)
Required.
|
UserLicense.Builder |
setUserPrincipalBytes(com.google.protobuf.ByteString value)
Required.
|
UserLicense.Builder |
setUserProfile(String value)
Optional.
|
UserLicense.Builder |
setUserProfileBytes(com.google.protobuf.ByteString value)
Optional.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UserLicense.Builder>public UserLicense.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<UserLicense.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.GeneratedMessage.Builder<UserLicense.Builder>public UserLicense getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic UserLicense build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic UserLicense buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic UserLicense.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UserLicense.Builder>public UserLicense.Builder mergeFrom(UserLicense other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<UserLicense.Builder>public UserLicense.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<UserLicense.Builder>IOExceptionpublic 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];
getUserPrincipal in interface UserLicenseOrBuilderpublic 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];
getUserPrincipalBytes in interface UserLicenseOrBuilderpublic 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];
value - The userPrincipal to set.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];
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];
value - The bytes for userPrincipal to set.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];getUserProfile in interface UserLicenseOrBuilderpublic 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];getUserProfileBytes in interface UserLicenseOrBuilderpublic 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];value - The userProfile to set.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];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];value - The bytes for userProfile to set.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];
getLicenseAssignmentStateValue in interface UserLicenseOrBuilderpublic 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];
value - The enum numeric value on the wire for licenseAssignmentState to set.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];
getLicenseAssignmentState in interface UserLicenseOrBuilderpublic 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];
value - The licenseAssignmentState to set.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];
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) = { ... }
getLicenseConfig in interface UserLicenseOrBuilderpublic 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) = { ... }
getLicenseConfigBytes in interface UserLicenseOrBuilderpublic 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) = { ... }
value - The licenseConfig to set.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) = { ... }
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) = { ... }
value - The bytes for licenseConfig to set.public boolean hasCreateTime()
Output only. User created timestamp.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface UserLicenseOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. User created timestamp.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface UserLicenseOrBuilderpublic 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];
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];
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];
public UserLicense.Builder clearCreateTime()
Output only. User created timestamp.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. User created timestamp.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. User created timestamp.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface UserLicenseOrBuilderpublic boolean hasUpdateTime()
Output only. User update timestamp.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface UserLicenseOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. User update timestamp.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface UserLicenseOrBuilderpublic 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];
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];
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];
public UserLicense.Builder clearUpdateTime()
Output only. User update timestamp.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. User update timestamp.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. User update timestamp.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface UserLicenseOrBuilderpublic 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];
hasLastLoginTime in interface UserLicenseOrBuilderpublic 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];
getLastLoginTime in interface UserLicenseOrBuilderpublic 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];
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];
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];
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];
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];
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];
getLastLoginTimeOrBuilder in interface UserLicenseOrBuilderCopyright © 2026 Google LLC. All rights reserved.