Class Authorization.Builder (2.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Authorization.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Authorization.Builder
Overrides

build()

public Authorization build()
Returns
TypeDescription
Authorization

buildPartial()

public Authorization buildPartial()
Returns
TypeDescription
Authorization

clear()

public Authorization.Builder clear()
Returns
TypeDescription
Authorization.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Authorization.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Authorization.Builder
Overrides

clearName()

public Authorization.Builder clearName()

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

string name = 1;

Returns
TypeDescription
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
TypeDescription
Authorization.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Authorization.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Authorization.Builder

This builder for chaining.

clone()

public Authorization.Builder clone()
Returns
TypeDescription
Authorization.Builder
Overrides

getDefaultInstanceForType()

public Authorization getDefaultInstanceForType()
Returns
TypeDescription
Authorization

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for serviceAccountEmail.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Authorization other)

public Authorization.Builder mergeFrom(Authorization other)
Parameter
NameDescription
otherAuthorization
Returns
TypeDescription
Authorization.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Authorization.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Authorization.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Authorization.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Authorization.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Authorization.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Authorization.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Authorization.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The oauthClientId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for oauthClientId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceAccountEmail to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceAccountEmail to set.

Returns
TypeDescription
Authorization.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Authorization.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Authorization.Builder
Overrides