Class LicensedUser.Builder (0.51.0)

public static final class LicensedUser.Builder extends GeneratedMessageV3.Builder<LicensedUser.Builder> implements LicensedUserOrBuilder

A licensed user.

Protobuf type google.cloud.commerce.consumer.procurement.v1.LicensedUser

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LicensedUser build()
Returns
Type Description
LicensedUser

buildPartial()

public LicensedUser buildPartial()
Returns
Type Description
LicensedUser

clear()

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

clearAssignTime()

public LicensedUser.Builder clearAssignTime()

Output only. Timestamp when the license was assigned.

.google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LicensedUser.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecentUsageTime()

public LicensedUser.Builder clearRecentUsageTime()

Output only. Timestamp when the license was recently used. This may not be the most recent usage time, and will be updated regularly (within 24 hours).

.google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LicensedUser.Builder

clearUsername()

public LicensedUser.Builder clearUsername()

Username. Format: name@domain.com.

string username = 1;

Returns
Type Description
LicensedUser.Builder

This builder for chaining.

clone()

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

getAssignTime()

public Timestamp getAssignTime()

Output only. Timestamp when the license was assigned.

.google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The assignTime.

getAssignTimeBuilder()

public Timestamp.Builder getAssignTimeBuilder()

Output only. Timestamp when the license was assigned.

.google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getAssignTimeOrBuilder()

public TimestampOrBuilder getAssignTimeOrBuilder()

Output only. Timestamp when the license was assigned.

.google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public LicensedUser getDefaultInstanceForType()
Returns
Type Description
LicensedUser

getDescriptorForType()

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

getRecentUsageTime()

public Timestamp getRecentUsageTime()

Output only. Timestamp when the license was recently used. This may not be the most recent usage time, and will be updated regularly (within 24 hours).

.google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The recentUsageTime.

getRecentUsageTimeBuilder()

public Timestamp.Builder getRecentUsageTimeBuilder()

Output only. Timestamp when the license was recently used. This may not be the most recent usage time, and will be updated regularly (within 24 hours).

.google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getRecentUsageTimeOrBuilder()

public TimestampOrBuilder getRecentUsageTimeOrBuilder()

Output only. Timestamp when the license was recently used. This may not be the most recent usage time, and will be updated regularly (within 24 hours).

.google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUsername()

public String getUsername()

Username. Format: name@domain.com.

string username = 1;

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Username. Format: name@domain.com.

string username = 1;

Returns
Type Description
ByteString

The bytes for username.

hasAssignTime()

public boolean hasAssignTime()

Output only. Timestamp when the license was assigned.

.google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the assignTime field is set.

hasRecentUsageTime()

public boolean hasRecentUsageTime()

Output only. Timestamp when the license was recently used. This may not be the most recent usage time, and will be updated regularly (within 24 hours).

.google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the recentUsageTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAssignTime(Timestamp value)

public LicensedUser.Builder mergeAssignTime(Timestamp value)

Output only. Timestamp when the license was assigned.

.google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LicensedUser.Builder

mergeFrom(LicensedUser other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRecentUsageTime(Timestamp value)

public LicensedUser.Builder mergeRecentUsageTime(Timestamp value)

Output only. Timestamp when the license was recently used. This may not be the most recent usage time, and will be updated regularly (within 24 hours).

.google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LicensedUser.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAssignTime(Timestamp value)

public LicensedUser.Builder setAssignTime(Timestamp value)

Output only. Timestamp when the license was assigned.

.google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LicensedUser.Builder

setAssignTime(Timestamp.Builder builderForValue)

public LicensedUser.Builder setAssignTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the license was assigned.

.google.protobuf.Timestamp assign_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LicensedUser.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRecentUsageTime(Timestamp value)

public LicensedUser.Builder setRecentUsageTime(Timestamp value)

Output only. Timestamp when the license was recently used. This may not be the most recent usage time, and will be updated regularly (within 24 hours).

.google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LicensedUser.Builder

setRecentUsageTime(Timestamp.Builder builderForValue)

public LicensedUser.Builder setRecentUsageTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the license was recently used. This may not be the most recent usage time, and will be updated regularly (within 24 hours).

.google.protobuf.Timestamp recent_usage_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LicensedUser.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUsername(String value)

public LicensedUser.Builder setUsername(String value)

Username. Format: name@domain.com.

string username = 1;

Parameter
Name Description
value String

The username to set.

Returns
Type Description
LicensedUser.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public LicensedUser.Builder setUsernameBytes(ByteString value)

Username. Format: name@domain.com.

string username = 1;

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
LicensedUser.Builder

This builder for chaining.