Package namespace.cloud.registry.v1beta
Interface Registry.GetDefaultPolicyResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Registry.GetDefaultPolicyResponse,Registry.GetDefaultPolicyResponse.Builder
- Enclosing class:
Registry
public static interface Registry.GetDefaultPolicyResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.DurationThe default expiration duration that is applied to newly created images.com.google.protobuf.DurationOrBuilderThe default expiration duration that is applied to newly created images.Controls whether expiration is enforced.intControls whether expiration is enforced.longThe current revision.booleanThe default expiration duration that is applied to newly created images.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getRevision
long getRevision()The current revision.
int64 revision = 1;- Returns:
- The revision.
-
hasDefaultExpiration
boolean hasDefaultExpiration()The default expiration duration that is applied to newly created images. After this duration the image becomes inaccessible and the underlying blobs are deleted. Not set means no default policy is configured. Note: In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds.
.google.protobuf.Duration default_expiration = 2;- Returns:
- Whether the defaultExpiration field is set.
-
getDefaultExpiration
com.google.protobuf.Duration getDefaultExpiration()The default expiration duration that is applied to newly created images. After this duration the image becomes inaccessible and the underlying blobs are deleted. Not set means no default policy is configured. Note: In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds.
.google.protobuf.Duration default_expiration = 2;- Returns:
- The defaultExpiration.
-
getDefaultExpirationOrBuilder
com.google.protobuf.DurationOrBuilder getDefaultExpirationOrBuilder()The default expiration duration that is applied to newly created images. After this duration the image becomes inaccessible and the underlying blobs are deleted. Not set means no default policy is configured. Note: In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds.
.google.protobuf.Duration default_expiration = 2; -
getExpirationEnforcementValue
int getExpirationEnforcementValue()Controls whether expiration is enforced.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 3;- Returns:
- The enum numeric value on the wire for expirationEnforcement.
-
getExpirationEnforcement
Registry.ExpirationEnforcement getExpirationEnforcement()Controls whether expiration is enforced.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 3;- Returns:
- The expirationEnforcement.
-