Class RevokeAuthorizationRequest.Builder (0.1.0)

public static final class RevokeAuthorizationRequest.Builder extends GeneratedMessage.Builder<RevokeAuthorizationRequest.Builder> implements RevokeAuthorizationRequestOrBuilder

Request message for RevokeAuthorization.

Protobuf type google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest

Static Methods

getDescriptor()

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

Methods

build()

public RevokeAuthorizationRequest build()
Returns
Type Description
RevokeAuthorizationRequest

buildPartial()

public RevokeAuthorizationRequest buildPartial()
Returns
Type Description
RevokeAuthorizationRequest

clear()

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

clearName()

public RevokeAuthorizationRequest.Builder clearName()

Required. The resource name of the AuthProvider. Format: projects/{project}/locations/{location}/authProviders/{auth_provider}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
RevokeAuthorizationRequest.Builder

This builder for chaining.

clearUserId()

public RevokeAuthorizationRequest.Builder clearUserId()

Required. The identity of the user to revoke authorization for.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RevokeAuthorizationRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public RevokeAuthorizationRequest getDefaultInstanceForType()
Returns
Type Description
RevokeAuthorizationRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The resource name of the AuthProvider. Format: projects/{project}/locations/{location}/authProviders/{auth_provider}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the AuthProvider. Format: projects/{project}/locations/{location}/authProviders/{auth_provider}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getUserId()

public String getUserId()

Required. The identity of the user to revoke authorization for.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The userId.

getUserIdBytes()

public ByteString getUserIdBytes()

Required. The identity of the user to revoke authorization for.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for userId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RevokeAuthorizationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public RevokeAuthorizationRequest.Builder setName(String value)

Required. The resource name of the AuthProvider. Format: projects/{project}/locations/{location}/authProviders/{auth_provider}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RevokeAuthorizationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RevokeAuthorizationRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the AuthProvider. Format: projects/{project}/locations/{location}/authProviders/{auth_provider}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RevokeAuthorizationRequest.Builder

This builder for chaining.

setUserId(String value)

public RevokeAuthorizationRequest.Builder setUserId(String value)

Required. The identity of the user to revoke authorization for.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The userId to set.

Returns
Type Description
RevokeAuthorizationRequest.Builder

This builder for chaining.

setUserIdBytes(ByteString value)

public RevokeAuthorizationRequest.Builder setUserIdBytes(ByteString value)

Required. The identity of the user to revoke authorization for.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for userId to set.

Returns
Type Description
RevokeAuthorizationRequest.Builder

This builder for chaining.