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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
public ExpirationPolicy getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ExpirationPolicy build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ExpirationPolicy buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ExpirationPolicy.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ExpirationPolicy.Builder>
IOException
public 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 ExpirationPolicyOrBuilder
public 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 ExpirationPolicyOrBuilder
public 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 ExpirationPolicyOrBuilder
public final ExpirationPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
Copyright © 2023 Google LLC. All rights reserved.