public interface SecretOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getRawValue()
public abstract String getRawValue()Optional. Input only. The actual raw value of the secret as plain text.
string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The rawValue. |
getRawValueBytes()
public abstract ByteString getRawValueBytes()Optional. Input only. The actual raw value of the secret as plain text.
string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for rawValue. |
getSecretVersion()
public abstract String getSecretVersion()Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats:
- projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
- projects/{project}/secrets/{secret}/versions/{version}
string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The secretVersion. |
getSecretVersionBytes()
public abstract ByteString getSecretVersionBytes()Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats:
- projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
- projects/{project}/secrets/{secret}/versions/{version}
string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for secretVersion. |
getValueCase()
public abstract Secret.ValueCase getValueCase()| Returns | |
|---|---|
| Type | Description |
Secret.ValueCase |
|
hasRawValue()
public abstract boolean hasRawValue()Optional. Input only. The actual raw value of the secret as plain text.
string raw_value = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the rawValue field is set. |
hasSecretVersion()
public abstract boolean hasSecretVersion()Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats:
- projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
- projects/{project}/secrets/{secret}/versions/{version}
string secret_version = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the secretVersion field is set. |