Class Authorization.Builder (0.1.0)

public static final class Authorization.Builder extends GeneratedMessage.Builder<Authorization.Builder> implements AuthorizationOrBuilder

Message describing Authorization object

Protobuf type google.cloud.agentidentity.v1.Authorization

Static Methods

getDescriptor()

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

Methods

addAllScopes(Iterable<String> values)

public Authorization.Builder addAllScopes(Iterable<String> values)

Output only. The scopes actually granted by the end user during the consent flow.

repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The scopes to add.

Returns
Type Description
Authorization.Builder

This builder for chaining.

addScopes(String value)

public Authorization.Builder addScopes(String value)

Output only. The scopes actually granted by the end user during the consent flow.

repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The scopes to add.

Returns
Type Description
Authorization.Builder

This builder for chaining.

addScopesBytes(ByteString value)

public Authorization.Builder addScopesBytes(ByteString value)

Output only. The scopes actually granted by the end user during the consent flow.

repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the scopes to add.

Returns
Type Description
Authorization.Builder

This builder for chaining.

build()

public Authorization build()
Returns
Type Description
Authorization

buildPartial()

public Authorization buildPartial()
Returns
Type Description
Authorization

clear()

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

clearClientUserId()

public Authorization.Builder clearClientUserId()

Output only. The client_user_id provided by the client application for their end user. Not verified by Google.

string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Authorization.Builder

This builder for chaining.

clearCreateTime()

public Authorization.Builder clearCreateTime()

Output only. [Output only] Create time stamp

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

Returns
Type Description
Authorization.Builder

clearName()

public Authorization.Builder clearName()

Identifier. name of resource

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

Returns
Type Description
Authorization.Builder

This builder for chaining.

clearScopes()

public Authorization.Builder clearScopes()

Output only. The scopes actually granted by the end user during the consent flow.

repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Authorization.Builder

This builder for chaining.

clearState()

public Authorization.Builder clearState()

Output only. The state of the authorization.

.google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Authorization.Builder

This builder for chaining.

clearUpdateTime()

public Authorization.Builder clearUpdateTime()

Output only. [Output only] Update time stamp

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

Returns
Type Description
Authorization.Builder

getClientUserId()

public String getClientUserId()

Output only. The client_user_id provided by the client application for their end user. Not verified by Google.

string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The clientUserId.

getClientUserIdBytes()

public ByteString getClientUserIdBytes()

Output only. The client_user_id provided by the client application for their end user. Not verified by Google.

string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clientUserId.

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create time stamp

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create time stamp

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create time stamp

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Authorization getDefaultInstanceForType()
Returns
Type Description
Authorization

getDescriptorForType()

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

getName()

public String getName()

Identifier. name of resource

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. name of resource

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

Returns
Type Description
ByteString

The bytes for name.

getScopes(int index)

public String getScopes(int index)

Output only. The scopes actually granted by the end user during the consent flow.

repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The scopes at the given index.

getScopesBytes(int index)

public ByteString getScopesBytes(int index)

Output only. The scopes actually granted by the end user during the consent flow.

repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the scopes at the given index.

getScopesCount()

public int getScopesCount()

Output only. The scopes actually granted by the end user during the consent flow.

repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of scopes.

getScopesList()

public ProtocolStringList getScopesList()

Output only. The scopes actually granted by the end user during the consent flow.

repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the scopes.

getState()

public Authorization.State getState()

Output only. The state of the authorization.

.google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Authorization.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the authorization.

.google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update time stamp

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update time stamp

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update time stamp

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create time stamp

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update time stamp

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

Returns
Type Description
boolean

Whether the updateTime 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 Authorization.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Authorization.Builder

mergeFrom(Authorization other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public Authorization.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Authorization.Builder

setClientUserId(String value)

public Authorization.Builder setClientUserId(String value)

Output only. The client_user_id provided by the client application for their end user. Not verified by Google.

string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clientUserId to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setClientUserIdBytes(ByteString value)

public Authorization.Builder setClientUserIdBytes(ByteString value)

Output only. The client_user_id provided by the client application for their end user. Not verified by Google.

string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clientUserId to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Authorization.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Authorization.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Authorization.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create time stamp

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Authorization.Builder

setName(String value)

public Authorization.Builder setName(String value)

Identifier. name of resource

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Authorization.Builder setNameBytes(ByteString value)

Identifier. name of resource

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setScopes(int index, String value)

public Authorization.Builder setScopes(int index, String value)

Output only. The scopes actually granted by the end user during the consent flow.

repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The scopes to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setState(Authorization.State value)

public Authorization.Builder setState(Authorization.State value)

Output only. The state of the authorization.

.google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Authorization.State

The state to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setStateValue(int value)

public Authorization.Builder setStateValue(int value)

Output only. The state of the authorization.

.google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Authorization.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public Authorization.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Authorization.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Authorization.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update time stamp

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Authorization.Builder