Package namespace.cloud.registry.v1beta
Interface Registry.UpdateRepositoryPolicyRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Registry.UpdateRepositoryPolicyRequest,Registry.UpdateRepositoryPolicyRequest.Builder
- Enclosing class:
Registry
public static interface Registry.UpdateRepositoryPolicyRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.DurationThe expiration duration for newly created images in this repository.Controls whether expiration is enforced for this repository.intControls whether expiration is enforced for this repository.com.google.protobuf.DurationOrBuilderThe expiration duration for newly created images in this repository.The repository to configure.com.google.protobuf.ByteStringThe repository to configure.longOnly update if revision matches.booleanThe expiration duration for newly created images in this repository.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
-
getRepository
String getRepository()The repository to configure.
string repository = 1;- Returns:
- The repository.
-
getRepositoryBytes
com.google.protobuf.ByteString getRepositoryBytes()The repository to configure.
string repository = 1;- Returns:
- The bytes for repository.
-
getRevision
long getRevision()Only update if revision matches.
int64 revision = 2;- Returns:
- The revision.
-
hasExpiration
boolean hasExpiration()The expiration duration for newly created images in this repository. A duration of at least 4h (=14400s) is required. If set, this overrides the default policy for images pushed to this repository. If not set, the default policy is used. 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 expiration = 3;- Returns:
- Whether the expiration field is set.
-
getExpiration
com.google.protobuf.Duration getExpiration()The expiration duration for newly created images in this repository. A duration of at least 4h (=14400s) is required. If set, this overrides the default policy for images pushed to this repository. If not set, the default policy is used. 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 expiration = 3;- Returns:
- The expiration.
-
getExpirationOrBuilder
com.google.protobuf.DurationOrBuilder getExpirationOrBuilder()The expiration duration for newly created images in this repository. A duration of at least 4h (=14400s) is required. If set, this overrides the default policy for images pushed to this repository. If not set, the default policy is used. 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 expiration = 3; -
getExpirationEnforcementValue
int getExpirationEnforcementValue()Controls whether expiration is enforced for this repository.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;- Returns:
- The enum numeric value on the wire for expirationEnforcement.
-
getExpirationEnforcement
Registry.ExpirationEnforcement getExpirationEnforcement()Controls whether expiration is enforced for this repository.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;- Returns:
- The expirationEnforcement.
-