public static final class GetServiceAccountKeyRequest.Builder extends GeneratedMessageV3.Builder<GetServiceAccountKeyRequest.Builder> implements GetServiceAccountKeyRequestOrBuilder
The service account key get by id request.
Protobuf type google.iam.admin.v1.GetServiceAccountKeyRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetServiceAccountKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GetServiceAccountKeyRequest build()
Returns
buildPartial()
public GetServiceAccountKeyRequest buildPartial()
Returns
clear()
public GetServiceAccountKeyRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GetServiceAccountKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public GetServiceAccountKeyRequest.Builder clearName()
Required. The resource name of the service account key in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}
.
Using -
as a wildcard for the PROJECT_ID
will infer the project from
the account. The ACCOUNT
value can be the email
address or the
unique_id
of the service account.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GetServiceAccountKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPublicKeyType()
public GetServiceAccountKeyRequest.Builder clearPublicKeyType()
The output format of the public key requested.
X509_PEM is the default output format.
.google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2;
Returns
clone()
public GetServiceAccountKeyRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GetServiceAccountKeyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
Required. The resource name of the service account key in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}
.
Using -
as a wildcard for the PROJECT_ID
will infer the project from
the account. The ACCOUNT
value can be the email
address or the
unique_id
of the service account.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The resource name of the service account key in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}
.
Using -
as a wildcard for the PROJECT_ID
will infer the project from
the account. The ACCOUNT
value can be the email
address or the
unique_id
of the service account.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getPublicKeyType()
public ServiceAccountPublicKeyType getPublicKeyType()
The output format of the public key requested.
X509_PEM is the default output format.
.google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2;
Returns
getPublicKeyTypeValue()
public int getPublicKeyTypeValue()
The output format of the public key requested.
X509_PEM is the default output format.
.google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for publicKeyType.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GetServiceAccountKeyRequest other)
public GetServiceAccountKeyRequest.Builder mergeFrom(GetServiceAccountKeyRequest other)
Parameter
Returns
public GetServiceAccountKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GetServiceAccountKeyRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetServiceAccountKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GetServiceAccountKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public GetServiceAccountKeyRequest.Builder setName(String value)
Required. The resource name of the service account key in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}
.
Using -
as a wildcard for the PROJECT_ID
will infer the project from
the account. The ACCOUNT
value can be the email
address or the
unique_id
of the service account.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public GetServiceAccountKeyRequest.Builder setNameBytes(ByteString value)
Required. The resource name of the service account key in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}
.
Using -
as a wildcard for the PROJECT_ID
will infer the project from
the account. The ACCOUNT
value can be the email
address or the
unique_id
of the service account.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setPublicKeyType(ServiceAccountPublicKeyType value)
public GetServiceAccountKeyRequest.Builder setPublicKeyType(ServiceAccountPublicKeyType value)
The output format of the public key requested.
X509_PEM is the default output format.
.google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2;
Parameter
Returns
setPublicKeyTypeValue(int value)
public GetServiceAccountKeyRequest.Builder setPublicKeyTypeValue(int value)
The output format of the public key requested.
X509_PEM is the default output format.
.google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for publicKeyType to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetServiceAccountKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GetServiceAccountKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides