public static final class ExpirationPolicy.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
ExpirationPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExpirationPolicy |
build() |
ExpirationPolicy |
buildPartial() |
ExpirationPolicy.Builder |
clear() |
ExpirationPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ExpirationPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ExpirationPolicy.Builder |
clearTtl()
Specifies the "time-to-live" duration for an associated resource.
|
ExpirationPolicy.Builder |
clone() |
ExpirationPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getTtl()
Specifies the "time-to-live" duration for an associated resource.
|
com.google.protobuf.Duration.Builder |
getTtlBuilder()
Specifies the "time-to-live" duration for an associated resource.
|
com.google.protobuf.DurationOrBuilder |
getTtlOrBuilder()
Specifies the "time-to-live" duration for an associated resource.
|
boolean |
hasTtl()
Specifies the "time-to-live" duration for an associated resource.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ExpirationPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ExpirationPolicy.Builder |
mergeFrom(ExpirationPolicy other) |
ExpirationPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
ExpirationPolicy.Builder |
mergeTtl(com.google.protobuf.Duration value)
Specifies the "time-to-live" duration for an associated resource.
|
ExpirationPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ExpirationPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExpirationPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ExpirationPolicy.Builder |
setTtl(com.google.protobuf.Duration.Builder builderForValue)
Specifies the "time-to-live" duration for an associated resource.
|
ExpirationPolicy.Builder |
setTtl(com.google.protobuf.Duration value)
Specifies the "time-to-live" duration for an associated resource.
|
ExpirationPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public ExpirationPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public ExpirationPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ExpirationPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ExpirationPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ExpirationPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public ExpirationPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public ExpirationPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public ExpirationPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public ExpirationPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public ExpirationPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public ExpirationPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExpirationPolicy.Builder>public ExpirationPolicy.Builder mergeFrom(ExpirationPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public ExpirationPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExpirationPolicy.Builder>IOExceptionpublic boolean 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;hasTtl in interface ExpirationPolicyOrBuilderpublic com.google.protobuf.Duration 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;getTtl in interface ExpirationPolicyOrBuilderpublic ExpirationPolicy.Builder setTtl(com.google.protobuf.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;public ExpirationPolicy.Builder setTtl(com.google.protobuf.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;public ExpirationPolicy.Builder mergeTtl(com.google.protobuf.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;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;public com.google.protobuf.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;public com.google.protobuf.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;getTtlOrBuilder in interface ExpirationPolicyOrBuilderpublic final ExpirationPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>public final ExpirationPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>Copyright © 2020 Google LLC. All rights reserved.