Class GoogleServiceAccountConfig.Builder (0.28.0)

public static final class GoogleServiceAccountConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public GoogleServiceAccountConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public GoogleServiceAccountConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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.

setUnknownFields(UnknownFieldSet unknownFields)

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