public static final class ExpirationPolicy.Builder extends GeneratedMessageV3.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.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExpirationPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ExpirationPolicy build()
Returns
buildPartial()
public ExpirationPolicy buildPartial()
Returns
clear()
public ExpirationPolicy.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ExpirationPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ExpirationPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTtl()
public ExpirationPolicy.Builder clearTtl()
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;
Returns
clone()
public ExpirationPolicy.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ExpirationPolicy getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getTtl()
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;
Returns
getTtlBuilder()
public Duration.Builder getTtlBuilder()
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;
Returns
getTtlOrBuilder()
public DurationOrBuilder getTtlOrBuilder()
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;
Returns
hasTtl()
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;
Returns
Type | Description |
boolean | Whether the ttl field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public ExpirationPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ExpirationPolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(ExpirationPolicy other)
public ExpirationPolicy.Builder mergeFrom(ExpirationPolicy other)
Parameter
Returns
mergeTtl(Duration value)
public ExpirationPolicy.Builder mergeTtl(Duration value)
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExpirationPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ExpirationPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExpirationPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTtl(Duration value)
public ExpirationPolicy.Builder setTtl(Duration value)
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;
Parameter
Returns
setTtl(Duration.Builder builderForValue)
public ExpirationPolicy.Builder setTtl(Duration.Builder builderForValue)
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;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ExpirationPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides