public static final class ExpirationPolicy.Builder extends GeneratedMessage.Builder<ExpirationPolicy.Builder> implements ExpirationPolicyOrBuilder
A policy that specifies the conditions for resource expiration (i.e.,
automatic resource deletion).
Protobuf type google.pubsub.v1.ExpirationPolicy
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public ExpirationPolicy build()
buildPartial()
public ExpirationPolicy buildPartial()
clear()
public ExpirationPolicy.Builder clear()
Overrides
clearTtl()
public ExpirationPolicy.Builder clearTtl()
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
.google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public ExpirationPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTtl()
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
.google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Duration |
The ttl.
|
getTtlBuilder()
public Duration.Builder getTtlBuilder()
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
.google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
getTtlOrBuilder()
public DurationOrBuilder getTtlOrBuilder()
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
.google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
hasTtl()
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
.google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the ttl field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public ExpirationPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ExpirationPolicy.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeFrom(ExpirationPolicy other)
public ExpirationPolicy.Builder mergeFrom(ExpirationPolicy other)
mergeTtl(Duration value)
public ExpirationPolicy.Builder mergeTtl(Duration value)
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
.google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
value |
Duration
|
setTtl(Duration value)
public ExpirationPolicy.Builder setTtl(Duration value)
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
.google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
value |
Duration
|
setTtl(Duration.Builder builderForValue)
public ExpirationPolicy.Builder setTtl(Duration.Builder builderForValue)
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
.google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
builderForValue |
Builder
|