Interface CreateSecretRequestOrBuilder

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

    public interface CreateSecretRequestOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getParent()
      Required.
      com.google.protobuf.ByteString getParentBytes()
      Required.
      Secret getSecret()
      Required.
      String getSecretId()
      Required.
      com.google.protobuf.ByteString getSecretIdBytes()
      Required.
      SecretOrBuilder getSecretOrBuilder()
      Required.
      boolean hasSecret()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getParent

        String getParent()
         Required. The resource name of the project to associate with the
         [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        The parent.
      • getParentBytes

        com.google.protobuf.ByteString getParentBytes()
         Required. The resource name of the project to associate with the
         [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        The bytes for parent.
      • getSecretId

        String getSecretId()
         Required. This must be unique within the project.
        
         A secret ID is a string with a maximum length of 255 characters and can
         contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and
         underscore (`_`) characters.
         
        string secret_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The secretId.
      • getSecretIdBytes

        com.google.protobuf.ByteString getSecretIdBytes()
         Required. This must be unique within the project.
        
         A secret ID is a string with a maximum length of 255 characters and can
         contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and
         underscore (`_`) characters.
         
        string secret_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for secretId.
      • hasSecret

        boolean hasSecret()
         Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
         
        .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        Whether the secret field is set.
      • getSecret

        Secret getSecret()
         Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
         
        .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The secret.
      • getSecretOrBuilder

        SecretOrBuilder getSecretOrBuilder()
         Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
         
        .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED];