Package namespace.cloud.registry.v1beta
Class Registry.GetRepositoryPolicyResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Registry.GetRepositoryPolicyResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<Registry.GetRepositoryPolicyResponse.Builder>
namespace.cloud.registry.v1beta.Registry.GetRepositoryPolicyResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Registry.GetRepositoryPolicyResponseOrBuilder
- Enclosing class:
Registry.GetRepositoryPolicyResponse
public static final class Registry.GetRepositoryPolicyResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Registry.GetRepositoryPolicyResponse.Builder>
implements Registry.GetRepositoryPolicyResponseOrBuilder
Protobuf type
namespace.cloud.registry.v1beta.GetRepositoryPolicyResponse-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The expiration duration that is applied to newly created images in this repository.Controls whether expiration is enforced for this repository.The current revision.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationThe expiration duration that is applied to newly created images in this repository.com.google.protobuf.Duration.BuilderThe expiration duration that is applied to 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 that is applied to newly created images in this repository.longThe current revision.booleanThe expiration duration that is applied to newly created images in this repository.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeExpiration(com.google.protobuf.Duration value) The expiration duration that is applied to 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 that is applied to newly created images in this repository.setExpiration(com.google.protobuf.Duration.Builder builderForValue) The expiration duration that is applied to 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.setRevision(long value) The current revision.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.GetRepositoryPolicyResponse.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.GetRepositoryPolicyResponse.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.GetRepositoryPolicyResponse.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.GetRepositoryPolicyResponse.Builder>
-
mergeFrom
public Registry.GetRepositoryPolicyResponse.Builder mergeFrom(Registry.GetRepositoryPolicyResponse other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Registry.GetRepositoryPolicyResponse.Builder>
-
mergeFrom
public Registry.GetRepositoryPolicyResponse.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.GetRepositoryPolicyResponse.Builder>- Throws:
IOException
-
getRevision
public long getRevision()The current revision.
int64 revision = 1;- Specified by:
getRevisionin interfaceRegistry.GetRepositoryPolicyResponseOrBuilder- Returns:
- The revision.
-
setRevision
The current revision.
int64 revision = 1;- Parameters:
value- The revision to set.- Returns:
- This builder for chaining.
-
clearRevision
The current revision.
int64 revision = 1;- Returns:
- This builder for chaining.
-
hasExpiration
public boolean hasExpiration()The expiration duration that is applied to newly created images in this repository. Not set means 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 = 2;- Specified by:
hasExpirationin interfaceRegistry.GetRepositoryPolicyResponseOrBuilder- Returns:
- Whether the expiration field is set.
-
getExpiration
public com.google.protobuf.Duration getExpiration()The expiration duration that is applied to newly created images in this repository. Not set means 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 = 2;- Specified by:
getExpirationin interfaceRegistry.GetRepositoryPolicyResponseOrBuilder- Returns:
- The expiration.
-
setExpiration
public Registry.GetRepositoryPolicyResponse.Builder setExpiration(com.google.protobuf.Duration value) The expiration duration that is applied to newly created images in this repository. Not set means 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 = 2; -
setExpiration
public Registry.GetRepositoryPolicyResponse.Builder setExpiration(com.google.protobuf.Duration.Builder builderForValue) The expiration duration that is applied to newly created images in this repository. Not set means 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 = 2; -
mergeExpiration
public Registry.GetRepositoryPolicyResponse.Builder mergeExpiration(com.google.protobuf.Duration value) The expiration duration that is applied to newly created images in this repository. Not set means 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 = 2; -
clearExpiration
The expiration duration that is applied to newly created images in this repository. Not set means 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 = 2; -
getExpirationBuilder
public com.google.protobuf.Duration.Builder getExpirationBuilder()The expiration duration that is applied to newly created images in this repository. Not set means 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 = 2; -
getExpirationOrBuilder
public com.google.protobuf.DurationOrBuilder getExpirationOrBuilder()The expiration duration that is applied to newly created images in this repository. Not set means 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 = 2;- Specified by:
getExpirationOrBuilderin interfaceRegistry.GetRepositoryPolicyResponseOrBuilder
-
getExpirationEnforcementValue
public int getExpirationEnforcementValue()Controls whether expiration is enforced for this repository.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 3;- Specified by:
getExpirationEnforcementValuein interfaceRegistry.GetRepositoryPolicyResponseOrBuilder- 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 = 3;- 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 = 3;- Specified by:
getExpirationEnforcementin interfaceRegistry.GetRepositoryPolicyResponseOrBuilder- Returns:
- The expirationEnforcement.
-
setExpirationEnforcement
public Registry.GetRepositoryPolicyResponse.Builder setExpirationEnforcement(Registry.ExpirationEnforcement value) Controls whether expiration is enforced for this repository.
.namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 3;- 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 = 3;- Returns:
- This builder for chaining.
-