Interface ServiceAccountKeyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ServiceAccountKey, ServiceAccountKey.Builder

@Generated public interface ServiceAccountKeyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       The resource name of the service account key in the following format
       `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
       
      string name = 1;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       The resource name of the service account key in the following format
       `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
       
      string name = 1;
      Returns:
      The bytes for name.
    • getPrivateKeyTypeValue

      int getPrivateKeyTypeValue()
       The output format for the private key.
       Only provided in `CreateServiceAccountKey` responses, not
       in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
      
       Google never exposes system-managed private keys, and never retains
       user-managed private keys.
       
      .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2;
      Returns:
      The enum numeric value on the wire for privateKeyType.
    • getPrivateKeyType

      ServiceAccountPrivateKeyType getPrivateKeyType()
       The output format for the private key.
       Only provided in `CreateServiceAccountKey` responses, not
       in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
      
       Google never exposes system-managed private keys, and never retains
       user-managed private keys.
       
      .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2;
      Returns:
      The privateKeyType.
    • getKeyAlgorithmValue

      int getKeyAlgorithmValue()
       Specifies the algorithm (and possibly key size) for the key.
       
      .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8;
      Returns:
      The enum numeric value on the wire for keyAlgorithm.
    • getKeyAlgorithm

      ServiceAccountKeyAlgorithm getKeyAlgorithm()
       Specifies the algorithm (and possibly key size) for the key.
       
      .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8;
      Returns:
      The keyAlgorithm.
    • getPrivateKeyData

      com.google.protobuf.ByteString getPrivateKeyData()
       The private key data. Only provided in `CreateServiceAccountKey`
       responses. Make sure to keep the private key data secure because it
       allows for the assertion of the service account identity.
       When base64 decoded, the private key data can be used to authenticate with
       Google API client libraries and with
       <a href="/sdk/gcloud/reference/auth/activate-service-account">gcloud
       auth activate-service-account</a>.
       
      bytes private_key_data = 3;
      Returns:
      The privateKeyData.
    • getPublicKeyData

      com.google.protobuf.ByteString getPublicKeyData()
       The public key data. Only provided in `GetServiceAccountKey` responses.
       
      bytes public_key_data = 7;
      Returns:
      The publicKeyData.
    • hasValidAfterTime

      boolean hasValidAfterTime()
       The key can be used after this timestamp.
       
      .google.protobuf.Timestamp valid_after_time = 4;
      Returns:
      Whether the validAfterTime field is set.
    • getValidAfterTime

      com.google.protobuf.Timestamp getValidAfterTime()
       The key can be used after this timestamp.
       
      .google.protobuf.Timestamp valid_after_time = 4;
      Returns:
      The validAfterTime.
    • getValidAfterTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder()
       The key can be used after this timestamp.
       
      .google.protobuf.Timestamp valid_after_time = 4;
    • hasValidBeforeTime

      boolean hasValidBeforeTime()
       The key can be used before this timestamp.
       For system-managed key pairs, this timestamp is the end time for the
       private key signing operation. The public key could still be used
       for verification for a few hours after this time.
       
      .google.protobuf.Timestamp valid_before_time = 5;
      Returns:
      Whether the validBeforeTime field is set.
    • getValidBeforeTime

      com.google.protobuf.Timestamp getValidBeforeTime()
       The key can be used before this timestamp.
       For system-managed key pairs, this timestamp is the end time for the
       private key signing operation. The public key could still be used
       for verification for a few hours after this time.
       
      .google.protobuf.Timestamp valid_before_time = 5;
      Returns:
      The validBeforeTime.
    • getValidBeforeTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getValidBeforeTimeOrBuilder()
       The key can be used before this timestamp.
       For system-managed key pairs, this timestamp is the end time for the
       private key signing operation. The public key could still be used
       for verification for a few hours after this time.
       
      .google.protobuf.Timestamp valid_before_time = 5;
    • getKeyOriginValue

      int getKeyOriginValue()
       The key origin.
       
      .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9;
      Returns:
      The enum numeric value on the wire for keyOrigin.
    • getKeyOrigin

      ServiceAccountKeyOrigin getKeyOrigin()
       The key origin.
       
      .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9;
      Returns:
      The keyOrigin.
    • getKeyTypeValue

      int getKeyTypeValue()
       The key type.
       
      .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10;
      Returns:
      The enum numeric value on the wire for keyType.
    • getKeyType

       The key type.
       
      .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10;
      Returns:
      The keyType.
    • getDisabled

      boolean getDisabled()
       The key status.
       
      bool disabled = 11;
      Returns:
      The disabled.