Class Authorization.Builder (2.43.0)

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

The authorization information used when invoking deployment endpoints.

Protobuf type google.cloud.gsuiteaddons.v1.Authorization

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Authorization.Builder clearName()

The canonical full name of this resource. Example: projects/123/authorization

string name = 1;

Returns
Type Description
Authorization.Builder

This builder for chaining.

clearOauthClientId()

public Authorization.Builder clearOauthClientId()

The OAuth client ID used to obtain OAuth access tokens for a user on the add-on's behalf.

string oauth_client_id = 3;

Returns
Type Description
Authorization.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAccountEmail()

public Authorization.Builder clearServiceAccountEmail()

The email address of the service account used to authenticate requests to add-on callback endpoints.

string service_account_email = 2;

Returns
Type Description
Authorization.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Authorization getDefaultInstanceForType()
Returns
Type Description
Authorization

getDescriptorForType()

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

getName()

public String getName()

The canonical full name of this resource. Example: projects/123/authorization

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The canonical full name of this resource. Example: projects/123/authorization

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getOauthClientId()

public String getOauthClientId()

The OAuth client ID used to obtain OAuth access tokens for a user on the add-on's behalf.

string oauth_client_id = 3;

Returns
Type Description
String

The oauthClientId.

getOauthClientIdBytes()

public ByteString getOauthClientIdBytes()

The OAuth client ID used to obtain OAuth access tokens for a user on the add-on's behalf.

string oauth_client_id = 3;

Returns
Type Description
ByteString

The bytes for oauthClientId.

getServiceAccountEmail()

public String getServiceAccountEmail()

The email address of the service account used to authenticate requests to add-on callback endpoints.

string service_account_email = 2;

Returns
Type Description
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

public ByteString getServiceAccountEmailBytes()

The email address of the service account used to authenticate requests to add-on callback endpoints.

string service_account_email = 2;

Returns
Type Description
ByteString

The bytes for serviceAccountEmail.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Authorization.Builder setName(String value)

The canonical full name of this resource. Example: projects/123/authorization

string name = 1;

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)

The canonical full name of this resource. Example: projects/123/authorization

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setOauthClientId(String value)

public Authorization.Builder setOauthClientId(String value)

The OAuth client ID used to obtain OAuth access tokens for a user on the add-on's behalf.

string oauth_client_id = 3;

Parameter
Name Description
value String

The oauthClientId to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setOauthClientIdBytes(ByteString value)

public Authorization.Builder setOauthClientIdBytes(ByteString value)

The OAuth client ID used to obtain OAuth access tokens for a user on the add-on's behalf.

string oauth_client_id = 3;

Parameter
Name Description
value ByteString

The bytes for oauthClientId to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

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

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

setServiceAccountEmail(String value)

public Authorization.Builder setServiceAccountEmail(String value)

The email address of the service account used to authenticate requests to add-on callback endpoints.

string service_account_email = 2;

Parameter
Name Description
value String

The serviceAccountEmail to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setServiceAccountEmailBytes(ByteString value)

public Authorization.Builder setServiceAccountEmailBytes(ByteString value)

The email address of the service account used to authenticate requests to add-on callback endpoints.

string service_account_email = 2;

Parameter
Name Description
value ByteString

The bytes for serviceAccountEmail to set.

Returns
Type Description
Authorization.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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