Package namespace.cloud.registry.v1beta
Class Registry.UpdateRepositoryPolicyRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Registry.UpdateRepositoryPolicyRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<Registry.UpdateRepositoryPolicyRequest.Builder>
namespace.cloud.registry.v1beta.Registry.UpdateRepositoryPolicyRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Registry.UpdateRepositoryPolicyRequestOrBuilder
- Enclosing class:
Registry.UpdateRepositoryPolicyRequest
public static final class Registry.UpdateRepositoryPolicyRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Registry.UpdateRepositoryPolicyRequest.Builder>
implements Registry.UpdateRepositoryPolicyRequestOrBuilder
Protobuf type
namespace.cloud.registry.v1beta.UpdateRepositoryPolicyRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The expiration duration for newly created images in this repository.Controls whether expiration is enforced for this repository.The repository to configure.Only update if revision matches.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationThe expiration duration for newly created images in this repository.com.google.protobuf.Duration.BuilderThe 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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeExpiration(com.google.protobuf.Duration value) The expiration duration for newly created images in this repository.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExpiration(com.google.protobuf.Duration value) The expiration duration for newly created images in this repository.setExpiration(com.google.protobuf.Duration.Builder builderForValue) The expiration duration for newly created images in this repository.Controls whether expiration is enforced for this repository.setExpirationEnforcementValue(int value) Controls whether expiration is enforced for this repository.setRepository(String value) The repository to configure.setRepositoryBytes(com.google.protobuf.ByteString value) The repository to configure.setRevision(long value) Only update if revision matches.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Registry.UpdateRepositoryPolicyRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Registry.UpdateRepositoryPolicyRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Registry.UpdateRepositoryPolicyRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Registry.UpdateRepositoryPolicyRequest.Builder>
-
mergeFrom
public Registry.UpdateRepositoryPolicyRequest.Builder mergeFrom(Registry.UpdateRepositoryPolicyRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Registry.UpdateRepositoryPolicyRequest.Builder>
-
mergeFrom
public Registry.UpdateRepositoryPolicyRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Registry.UpdateRepositoryPolicyRequest.Builder>- Throws:
IOException
-
getRepository
The repository to configure.
string repository = 1;- Specified by:
getRepositoryin interfaceRegistry.UpdateRepositoryPolicyRequestOrBuilder- Returns:
- The repository.
-
getRepositoryBytes
public com.google.protobuf.ByteString getRepositoryBytes()The repository to configure.
string repository = 1;- Specified by:
getRepositoryBytesin interfaceRegistry.UpdateRepositoryPolicyRequestOrBuilder- Returns:
- The bytes for repository.
-
setRepository
The repository to configure.
string repository = 1;- Parameters:
value- The repository to set.- Returns:
- This builder for chaining.
-
clearRepository
The repository to configure.
string repository = 1;- Returns:
- This builder for chaining.
-
setRepositoryBytes
public Registry.UpdateRepositoryPolicyRequest.Builder setRepositoryBytes(com.google.protobuf.ByteString value) The repository to configure.
string repository = 1;- Parameters:
value- The bytes for repository to set.- Returns:
- This builder for chaining.
-
getRevision
public long getRevision()Only update if revision matches.
int64 revision = 2;- Specified by:
getRevisionin interfaceRegistry.UpdateRepositoryPolicyRequestOrBuilder- Returns:
- The revision.
-
setRevision
Only update if revision matches.
int64 revision = 2;- Parameters:
value- The revision to set.- Returns:
- This builder for chaining.
-
clearRevision
Only update if revision matches.
int64 revision = 2;- Returns:
- This builder for chaining.
-
hasExpiration
public 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;- Specified by:
hasExpirationin interfaceRegistry.UpdateRepositoryPolicyRequestOrBuilder- Returns:
- Whether the expiration field is set.
-
getExpiration
public 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;- Specified by:
getExpirationin interfaceRegistry.UpdateRepositoryPolicyRequestOrBuilder- Returns:
- The expiration.
-
setExpiration
public Registry.UpdateRepositoryPolicyRequest.Builder setExpiration(com.google.protobuf.Duration value) 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; -
setExpiration
public Registry.UpdateRepositoryPolicyRequest.Builder setExpiration(com.google.protobuf.Duration.Builder builderForValue) 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; -
mergeExpiration
public Registry.UpdateRepositoryPolicyRequest.Builder mergeExpiration(com.google.protobuf.Duration value) 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; -
clearExpiration
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; -
getExpirationBuilder
public com.google.protobuf.Duration.Builder getExpirationBuilder()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; -
getExpirationOrBuilder
public 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;- Specified by:
getExpirationOrBuilderin interfaceRegistry.UpdateRepositoryPolicyRequestOrBuilder
-
getExpirationEnforcementValue
public int getExpirationEnforcementValue()Controls whether expiration is enforced for this repository.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;- Specified by:
getExpirationEnforcementValuein interfaceRegistry.UpdateRepositoryPolicyRequestOrBuilder- Returns:
- The enum numeric value on the wire for expirationEnforcement.
-
setExpirationEnforcementValue
Controls whether expiration is enforced for this repository.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;- Parameters:
value- The enum numeric value on the wire for expirationEnforcement to set.- Returns:
- This builder for chaining.
-
getExpirationEnforcement
Controls whether expiration is enforced for this repository.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;- Specified by:
getExpirationEnforcementin interfaceRegistry.UpdateRepositoryPolicyRequestOrBuilder- Returns:
- The expirationEnforcement.
-
setExpirationEnforcement
public Registry.UpdateRepositoryPolicyRequest.Builder setExpirationEnforcement(Registry.ExpirationEnforcement value) Controls whether expiration is enforced for this repository.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;- Parameters:
value- The expirationEnforcement to set.- Returns:
- This builder for chaining.
-
clearExpirationEnforcement
Controls whether expiration is enforced for this repository.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;- Returns:
- This builder for chaining.
-