Class User.Builder (0.42.0)

public static final class User.Builder extends GeneratedMessage.Builder<User.Builder> implements UserOrBuilder

User represents a user connected to the service providers through a AccountConnector.

Protobuf type google.cloud.developerconnect.v1.User

Implements

UserOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public User build()
Returns
Type Description
User

buildPartial()

public User buildPartial()
Returns
Type Description
User

clear()

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

clearCreateTime()

public User.Builder clearCreateTime()

Output only. The timestamp when the user was created.

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

Returns
Type Description
User.Builder

clearDisplayName()

public User.Builder clearDisplayName()

Output only. Developer Connect automatically converts user identity to some human readable description, e.g., email address.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
User.Builder

This builder for chaining.

clearLastTokenRequestTime()

public User.Builder clearLastTokenRequestTime()

Output only. The timestamp when the token was last requested.

.google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
User.Builder

clearName()

public User.Builder clearName()

Identifier. Resource name of the user, in the format projects/*/locations/*/accountConnectors/*/users/*.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
User.Builder

This builder for chaining.

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the user was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the user was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the user was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public User getDefaultInstanceForType()
Returns
Type Description
User

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. Developer Connect automatically converts user identity to some human readable description, e.g., email address.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. Developer Connect automatically converts user identity to some human readable description, e.g., email address.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getLastTokenRequestTime()

public Timestamp getLastTokenRequestTime()

Output only. The timestamp when the token was last requested.

.google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastTokenRequestTime.

getLastTokenRequestTimeBuilder()

public Timestamp.Builder getLastTokenRequestTimeBuilder()

Output only. The timestamp when the token was last requested.

.google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getLastTokenRequestTimeOrBuilder()

public TimestampOrBuilder getLastTokenRequestTimeOrBuilder()

Output only. The timestamp when the token was last requested.

.google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Identifier. Resource name of the user, in the format projects/*/locations/*/accountConnectors/*/users/*.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Resource name of the user, in the format projects/*/locations/*/accountConnectors/*/users/*.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the user was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasLastTokenRequestTime()

public boolean hasLastTokenRequestTime()

Output only. The timestamp when the token was last requested.

.google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastTokenRequestTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public User.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the user was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
User.Builder

mergeFrom(User other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastTokenRequestTime(Timestamp value)

public User.Builder mergeLastTokenRequestTime(Timestamp value)

Output only. The timestamp when the token was last requested.

.google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
User.Builder

setCreateTime(Timestamp value)

public User.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the user was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
User.Builder

setCreateTime(Timestamp.Builder builderForValue)

public User.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the user was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
User.Builder

setDisplayName(String value)

public User.Builder setDisplayName(String value)

Output only. Developer Connect automatically converts user identity to some human readable description, e.g., email address.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
User.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public User.Builder setDisplayNameBytes(ByteString value)

Output only. Developer Connect automatically converts user identity to some human readable description, e.g., email address.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
User.Builder

This builder for chaining.

setLastTokenRequestTime(Timestamp value)

public User.Builder setLastTokenRequestTime(Timestamp value)

Output only. The timestamp when the token was last requested.

.google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
User.Builder

setLastTokenRequestTime(Timestamp.Builder builderForValue)

public User.Builder setLastTokenRequestTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the token was last requested.

.google.protobuf.Timestamp last_token_request_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
User.Builder

setName(String value)

public User.Builder setName(String value)

Identifier. Resource name of the user, in the format projects/*/locations/*/accountConnectors/*/users/*.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
User.Builder

This builder for chaining.

setNameBytes(ByteString value)

public User.Builder setNameBytes(ByteString value)

Identifier. Resource name of the user, in the format projects/*/locations/*/accountConnectors/*/users/*.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
User.Builder

This builder for chaining.