Class UserLicense.Builder (0.60.0)

public static final class UserLicense.Builder extends GeneratedMessageV3.Builder<UserLicense.Builder> implements UserLicenseOrBuilder

User License information assigned by the admin.

Protobuf type google.cloud.discoveryengine.v1.UserLicense

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UserLicense.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserLicense.Builder
Overrides

build()

public UserLicense build()
Returns
Type Description
UserLicense

buildPartial()

public UserLicense buildPartial()
Returns
Type Description
UserLicense

clear()

public UserLicense.Builder clear()
Returns
Type Description
UserLicense.Builder
Overrides

clearCreateTime()

public UserLicense.Builder clearCreateTime()

Output only. User created timestamp.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserLicense.Builder

clearField(Descriptors.FieldDescriptor field)

public UserLicense.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UserLicense.Builder
Overrides

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];

Returns
Type Description
UserLicense.Builder

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
Type Description
UserLicense.Builder

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
Type Description
UserLicense.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UserLicense.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UserLicense.Builder
Overrides

clearUpdateTime()

public UserLicense.Builder clearUpdateTime()

Output only. User update timestamp.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserLicense.Builder

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
Type Description
UserLicense.Builder

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
Type Description
UserLicense.Builder

This builder for chaining.

clone()

public UserLicense.Builder clone()
Returns
Type Description
UserLicense.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. User created timestamp.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. User created timestamp.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. User created timestamp.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public UserLicense getDefaultInstanceForType()
Returns
Type Description
UserLicense

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLastLoginTime()

public 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];

Returns
Type Description
Timestamp

The lastLoginTime.

getLastLoginTimeBuilder()

public 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];

Returns
Type Description
Builder

getLastLoginTimeOrBuilder()

public 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];

Returns
Type Description
TimestampOrBuilder

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];

Returns
Type Description
UserLicense.LicenseAssignmentState

The licenseAssignmentState.

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];

Returns
Type Description
int

The enum numeric value on the wire for 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) = { ... }

Returns
Type Description
String

The licenseConfig.

getLicenseConfigBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for licenseConfig.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. User update timestamp.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. User update timestamp.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. User update timestamp.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

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];

Returns
Type Description
String

The userPrincipal.

getUserPrincipalBytes()

public 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];

Returns
Type Description
ByteString

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];

Returns
Type Description
String

The userProfile.

getUserProfileBytes()

public 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];

Returns
Type Description
ByteString

The bytes for userProfile.

hasCreateTime()

public boolean hasCreateTime()

Output only. User created timestamp.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

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];

Returns
Type Description
boolean

Whether the lastLoginTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. User update timestamp.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public UserLicense.Builder mergeCreateTime(Timestamp value)

Output only. User created timestamp.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
UserLicense.Builder

mergeFrom(UserLicense other)

public UserLicense.Builder mergeFrom(UserLicense other)
Parameter
Name Description
other UserLicense
Returns
Type Description
UserLicense.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UserLicense.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserLicense.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UserLicense.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UserLicense.Builder
Overrides

mergeLastLoginTime(Timestamp value)

public UserLicense.Builder mergeLastLoginTime(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];

Parameter
Name Description
value Timestamp
Returns
Type Description
UserLicense.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserLicense.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserLicense.Builder
Overrides

mergeUpdateTime(Timestamp value)

public UserLicense.Builder mergeUpdateTime(Timestamp value)

Output only. User update timestamp.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
UserLicense.Builder

setCreateTime(Timestamp value)

public UserLicense.Builder setCreateTime(Timestamp value)

Output only. User created timestamp.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
UserLicense.Builder

setCreateTime(Timestamp.Builder builderForValue)

public UserLicense.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. User created timestamp.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UserLicense.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UserLicense.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UserLicense.Builder
Overrides

setLastLoginTime(Timestamp value)

public UserLicense.Builder setLastLoginTime(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];

Parameter
Name Description
value Timestamp
Returns
Type Description
UserLicense.Builder

setLastLoginTime(Timestamp.Builder builderForValue)

public UserLicense.Builder setLastLoginTime(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UserLicense.Builder

setLicenseAssignmentState(UserLicense.LicenseAssignmentState value)

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];

Parameter
Name Description
value UserLicense.LicenseAssignmentState

The licenseAssignmentState to set.

Returns
Type Description
UserLicense.Builder

This builder for chaining.

setLicenseAssignmentStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for licenseAssignmentState to set.

Returns
Type Description
UserLicense.Builder

This builder for chaining.

setLicenseConfig(String value)

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) = { ... }

Parameter
Name Description
value String

The licenseConfig to set.

Returns
Type Description
UserLicense.Builder

This builder for chaining.

setLicenseConfigBytes(ByteString value)

public UserLicense.Builder setLicenseConfigBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for licenseConfig to set.

Returns
Type Description
UserLicense.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UserLicense.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UserLicense.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UserLicense.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UserLicense.Builder
Overrides

setUpdateTime(Timestamp value)

public UserLicense.Builder setUpdateTime(Timestamp value)

Output only. User update timestamp.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
UserLicense.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public UserLicense.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. User update timestamp.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UserLicense.Builder

setUserPrincipal(String value)

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];

Parameter
Name Description
value String

The userPrincipal to set.

Returns
Type Description
UserLicense.Builder

This builder for chaining.

setUserPrincipalBytes(ByteString value)

public UserLicense.Builder setUserPrincipalBytes(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];

Parameter
Name Description
value ByteString

The bytes for userPrincipal to set.

Returns
Type Description
UserLicense.Builder

This builder for chaining.

setUserProfile(String value)

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];

Parameter
Name Description
value String

The userProfile to set.

Returns
Type Description
UserLicense.Builder

This builder for chaining.

setUserProfileBytes(ByteString value)

public UserLicense.Builder setUserProfileBytes(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];

Parameter
Name Description
value ByteString

The bytes for userProfile to set.

Returns
Type Description
UserLicense.Builder

This builder for chaining.