public static final class GoogleServiceAccountConfig.Builder extends GeneratedMessage.Builder<GoogleServiceAccountConfig.Builder> implements GoogleServiceAccountConfigOrBuilderConfig for Google service account authentication.
Protobuf type google.cloud.apihub.v1.GoogleServiceAccountConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GoogleServiceAccountConfig.BuilderImplements
GoogleServiceAccountConfigOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GoogleServiceAccountConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GoogleServiceAccountConfig.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for serviceAccount to set. |
| Returns | |
|---|---|
| Type | Description |
GoogleServiceAccountConfig.Builder |
This builder for chaining. |