Class GoogleServiceAccountConfig.Builder (0.36.0)

public static final class GoogleServiceAccountConfig.Builder extends GeneratedMessage.Builder<GoogleServiceAccountConfig.Builder> implements GoogleServiceAccountConfigOrBuilder

Config for Google service account authentication.

Protobuf type google.cloud.apihub.v1.GoogleServiceAccountConfig

Static Methods

getDescriptor()

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

Methods

build()

public GoogleServiceAccountConfig build()
Returns
Type Description
GoogleServiceAccountConfig

buildPartial()

public GoogleServiceAccountConfig buildPartial()
Returns
Type Description
GoogleServiceAccountConfig

clear()

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

clearServiceAccount()

public GoogleServiceAccountConfig.Builder clearServiceAccount()

Required. The service account to be used for authenticating request.

The iam.serviceAccounts.getAccessToken permission should be granted on this service account to the impersonator service account.

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

Returns
Type Description
GoogleServiceAccountConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public GoogleServiceAccountConfig getDefaultInstanceForType()
Returns
Type Description
GoogleServiceAccountConfig

getDescriptorForType()

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

getServiceAccount()

public String getServiceAccount()

Required. The service account to be used for authenticating request.

The iam.serviceAccounts.getAccessToken permission should be granted on this service account to the impersonator service account.

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

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Required. The service account to be used for authenticating request.

The iam.serviceAccounts.getAccessToken permission should be granted on this service account to the impersonator service account.

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

Returns
Type Description
ByteString

The bytes for serviceAccount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GoogleServiceAccountConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setServiceAccount(String value)

public GoogleServiceAccountConfig.Builder setServiceAccount(String value)

Required. The service account to be used for authenticating request.

The iam.serviceAccounts.getAccessToken permission should be granted on this service account to the impersonator service account.

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

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
GoogleServiceAccountConfig.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public GoogleServiceAccountConfig.Builder setServiceAccountBytes(ByteString value)

Required. The service account to be used for authenticating request.

The iam.serviceAccounts.getAccessToken permission should be granted on this service account to the impersonator service account.

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

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
GoogleServiceAccountConfig.Builder

This builder for chaining.