Class ExpirationPolicy.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ExpirationPolicyOrBuilder, Cloneable
    Enclosing class:
    ExpirationPolicy

    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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • clear

        public ExpirationPolicy.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • getDefaultInstanceForType

        public ExpirationPolicy getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ExpirationPolicy build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ExpirationPolicy buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ExpirationPolicy.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • setField

        public ExpirationPolicy.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • clearField

        public ExpirationPolicy.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • clearOneof

        public ExpirationPolicy.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • setRepeatedField

        public ExpirationPolicy.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • addRepeatedField

        public ExpirationPolicy.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • mergeFrom

        public ExpirationPolicy.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExpirationPolicy.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • mergeFrom

        public ExpirationPolicy.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExpirationPolicy.Builder>
        Throws:
        IOException
      • hasTtl

        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;
        Specified by:
        hasTtl in interface ExpirationPolicyOrBuilder
        Returns:
        Whether the ttl field is set.
      • getTtl

        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;
        Specified by:
        getTtl in interface ExpirationPolicyOrBuilder
        Returns:
        The ttl.
      • setTtl

        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;
      • setTtl

        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;
      • mergeTtl

        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;
      • 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;
      • getTtlBuilder

        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;
      • getTtlOrBuilder

        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;
        Specified by:
        getTtlOrBuilder in interface ExpirationPolicyOrBuilder
      • setUnknownFields

        public final ExpirationPolicy.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>
      • mergeUnknownFields

        public final ExpirationPolicy.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExpirationPolicy.Builder>