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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Optional.Output only.Required.Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.intOutput only.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(UserLicense other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastLoginTime(com.google.protobuf.Timestamp value) Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setLastLoginTime(com.google.protobuf.Timestamp value) Output only.setLastLoginTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Output only.setLicenseAssignmentStateValue(int value) Output only.setLicenseConfig(String value) Optional.setLicenseConfigBytes(com.google.protobuf.ByteString value) Optional.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setUserPrincipal(String value) Required.setUserPrincipalBytes(com.google.protobuf.ByteString value) Required.setUserProfile(String value) Optional.setUserProfileBytes(com.google.protobuf.ByteString value) Optional.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UserLicense.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UserLicense.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UserLicense.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserLicense.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserLicense.Builder>- Throws:
IOException
-
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:
getUserPrincipalin interfaceUserLicenseOrBuilder- 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:
getUserPrincipalBytesin interfaceUserLicenseOrBuilder- Returns:
- The bytes for userPrincipal.
-
setUserPrincipal
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
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
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
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:
getUserProfilein interfaceUserLicenseOrBuilder- 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:
getUserProfileBytesin interfaceUserLicenseOrBuilder- Returns:
- The bytes for userProfile.
-
setUserProfile
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
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
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:
getLicenseAssignmentStateValuein interfaceUserLicenseOrBuilder- Returns:
- The enum numeric value on the wire for licenseAssignmentState.
-
setLicenseAssignmentStateValue
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
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:
getLicenseAssignmentStatein interfaceUserLicenseOrBuilder- Returns:
- The licenseAssignmentState.
-
setLicenseAssignmentState
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
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
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:
getLicenseConfigin interfaceUserLicenseOrBuilder- 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:
getLicenseConfigBytesin interfaceUserLicenseOrBuilder- Returns:
- The bytes for licenseConfig.
-
setLicenseConfig
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
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
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:
hasCreateTimein interfaceUserLicenseOrBuilder- 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:
getCreateTimein interfaceUserLicenseOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. User created timestamp.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. User created timestamp.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. User created timestamp.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getCreateTimeOrBuilderin interfaceUserLicenseOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. User update timestamp.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceUserLicenseOrBuilder- 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:
getUpdateTimein interfaceUserLicenseOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. User update timestamp.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. User update timestamp.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. User update timestamp.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getUpdateTimeOrBuilderin interfaceUserLicenseOrBuilder
-
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:
hasLastLoginTimein interfaceUserLicenseOrBuilder- 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:
getLastLoginTimein interfaceUserLicenseOrBuilder- Returns:
- The lastLoginTime.
-
setLastLoginTime
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
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
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
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:
getLastLoginTimeOrBuilderin interfaceUserLicenseOrBuilder
-