Class Resource.Builder

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

    public static final class Resource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
    implements ResourceOrBuilder
     [#next-free-field: 8]
     
    Protobuf type envoy.service.discovery.v3.Resource
    • 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<Resource.Builder>
      • clear

        public Resource.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<Resource.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<Resource.Builder>
      • getDefaultInstanceForType

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

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

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

        public Resource.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<Resource.Builder>
      • setField

        public Resource.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<Resource.Builder>
      • clearField

        public Resource.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<Resource.Builder>
      • clearOneof

        public Resource.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<Resource.Builder>
      • setRepeatedField

        public Resource.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<Resource.Builder>
      • addRepeatedField

        public Resource.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<Resource.Builder>
      • mergeFrom

        public Resource.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<Resource.Builder>
      • isInitialized

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

        public Resource.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<Resource.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The resource's name, to distinguish it from others of the same type of resource.
         
        string name = 3;
        Specified by:
        getName in interface ResourceOrBuilder
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource's name, to distinguish it from others of the same type of resource.
         
        string name = 3;
        Specified by:
        getNameBytes in interface ResourceOrBuilder
      • setName

        public Resource.Builder setName​(String value)
         The resource's name, to distinguish it from others of the same type of resource.
         
        string name = 3;
      • clearName

        public Resource.Builder clearName()
         The resource's name, to distinguish it from others of the same type of resource.
         
        string name = 3;
      • setNameBytes

        public Resource.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource's name, to distinguish it from others of the same type of resource.
         
        string name = 3;
      • getAliasesList

        public com.google.protobuf.ProtocolStringList getAliasesList()
         The aliases are a list of other names that this resource can go by.
         
        repeated string aliases = 4;
        Specified by:
        getAliasesList in interface ResourceOrBuilder
      • getAliasesCount

        public int getAliasesCount()
         The aliases are a list of other names that this resource can go by.
         
        repeated string aliases = 4;
        Specified by:
        getAliasesCount in interface ResourceOrBuilder
      • getAliases

        public String getAliases​(int index)
         The aliases are a list of other names that this resource can go by.
         
        repeated string aliases = 4;
        Specified by:
        getAliases in interface ResourceOrBuilder
      • getAliasesBytes

        public com.google.protobuf.ByteString getAliasesBytes​(int index)
         The aliases are a list of other names that this resource can go by.
         
        repeated string aliases = 4;
        Specified by:
        getAliasesBytes in interface ResourceOrBuilder
      • setAliases

        public Resource.Builder setAliases​(int index,
                                           String value)
         The aliases are a list of other names that this resource can go by.
         
        repeated string aliases = 4;
      • addAliases

        public Resource.Builder addAliases​(String value)
         The aliases are a list of other names that this resource can go by.
         
        repeated string aliases = 4;
      • addAllAliases

        public Resource.Builder addAllAliases​(Iterable<String> values)
         The aliases are a list of other names that this resource can go by.
         
        repeated string aliases = 4;
      • clearAliases

        public Resource.Builder clearAliases()
         The aliases are a list of other names that this resource can go by.
         
        repeated string aliases = 4;
      • addAliasesBytes

        public Resource.Builder addAliasesBytes​(com.google.protobuf.ByteString value)
         The aliases are a list of other names that this resource can go by.
         
        repeated string aliases = 4;
      • getVersion

        public String getVersion()
         The resource level version. It allows xDS to track the state of individual
         resources.
         
        string version = 1;
        Specified by:
        getVersion in interface ResourceOrBuilder
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         The resource level version. It allows xDS to track the state of individual
         resources.
         
        string version = 1;
        Specified by:
        getVersionBytes in interface ResourceOrBuilder
      • setVersion

        public Resource.Builder setVersion​(String value)
         The resource level version. It allows xDS to track the state of individual
         resources.
         
        string version = 1;
      • clearVersion

        public Resource.Builder clearVersion()
         The resource level version. It allows xDS to track the state of individual
         resources.
         
        string version = 1;
      • setVersionBytes

        public Resource.Builder setVersionBytes​(com.google.protobuf.ByteString value)
         The resource level version. It allows xDS to track the state of individual
         resources.
         
        string version = 1;
      • hasResource

        public boolean hasResource()
         The resource being tracked.
         
        .google.protobuf.Any resource = 2;
        Specified by:
        hasResource in interface ResourceOrBuilder
      • getResource

        public com.google.protobuf.Any getResource()
         The resource being tracked.
         
        .google.protobuf.Any resource = 2;
        Specified by:
        getResource in interface ResourceOrBuilder
      • setResource

        public Resource.Builder setResource​(com.google.protobuf.Any value)
         The resource being tracked.
         
        .google.protobuf.Any resource = 2;
      • setResource

        public Resource.Builder setResource​(com.google.protobuf.Any.Builder builderForValue)
         The resource being tracked.
         
        .google.protobuf.Any resource = 2;
      • mergeResource

        public Resource.Builder mergeResource​(com.google.protobuf.Any value)
         The resource being tracked.
         
        .google.protobuf.Any resource = 2;
      • clearResource

        public Resource.Builder clearResource()
         The resource being tracked.
         
        .google.protobuf.Any resource = 2;
      • getResourceBuilder

        public com.google.protobuf.Any.Builder getResourceBuilder()
         The resource being tracked.
         
        .google.protobuf.Any resource = 2;
      • getResourceOrBuilder

        public com.google.protobuf.AnyOrBuilder getResourceOrBuilder()
         The resource being tracked.
         
        .google.protobuf.Any resource = 2;
        Specified by:
        getResourceOrBuilder in interface ResourceOrBuilder
      • hasTtl

        public boolean hasTtl()
         Time-to-live value for the resource. For each resource, a timer is started. The timer is
         reset each time the resource is received with a new TTL. If the resource is received with
         no TTL set, the timer is removed for the resource. Upon expiration of the timer, the
         configuration for the resource will be removed.
         The TTL can be refreshed or changed by sending a response that doesn't change the resource
         version. In this case the resource field does not need to be populated, which allows for
         light-weight "heartbeat" updates to keep a resource with a TTL alive.
         The TTL feature is meant to support configurations that should be removed in the event of
         a management server failure. For example, the feature may be used for fault injection
         testing where the fault injection should be terminated in the event that Envoy loses contact
         with the management server.
         
        .google.protobuf.Duration ttl = 6;
        Specified by:
        hasTtl in interface ResourceOrBuilder
      • getTtl

        public com.google.protobuf.Duration getTtl()
         Time-to-live value for the resource. For each resource, a timer is started. The timer is
         reset each time the resource is received with a new TTL. If the resource is received with
         no TTL set, the timer is removed for the resource. Upon expiration of the timer, the
         configuration for the resource will be removed.
         The TTL can be refreshed or changed by sending a response that doesn't change the resource
         version. In this case the resource field does not need to be populated, which allows for
         light-weight "heartbeat" updates to keep a resource with a TTL alive.
         The TTL feature is meant to support configurations that should be removed in the event of
         a management server failure. For example, the feature may be used for fault injection
         testing where the fault injection should be terminated in the event that Envoy loses contact
         with the management server.
         
        .google.protobuf.Duration ttl = 6;
        Specified by:
        getTtl in interface ResourceOrBuilder
      • setTtl

        public Resource.Builder setTtl​(com.google.protobuf.Duration value)
         Time-to-live value for the resource. For each resource, a timer is started. The timer is
         reset each time the resource is received with a new TTL. If the resource is received with
         no TTL set, the timer is removed for the resource. Upon expiration of the timer, the
         configuration for the resource will be removed.
         The TTL can be refreshed or changed by sending a response that doesn't change the resource
         version. In this case the resource field does not need to be populated, which allows for
         light-weight "heartbeat" updates to keep a resource with a TTL alive.
         The TTL feature is meant to support configurations that should be removed in the event of
         a management server failure. For example, the feature may be used for fault injection
         testing where the fault injection should be terminated in the event that Envoy loses contact
         with the management server.
         
        .google.protobuf.Duration ttl = 6;
      • setTtl

        public Resource.Builder setTtl​(com.google.protobuf.Duration.Builder builderForValue)
         Time-to-live value for the resource. For each resource, a timer is started. The timer is
         reset each time the resource is received with a new TTL. If the resource is received with
         no TTL set, the timer is removed for the resource. Upon expiration of the timer, the
         configuration for the resource will be removed.
         The TTL can be refreshed or changed by sending a response that doesn't change the resource
         version. In this case the resource field does not need to be populated, which allows for
         light-weight "heartbeat" updates to keep a resource with a TTL alive.
         The TTL feature is meant to support configurations that should be removed in the event of
         a management server failure. For example, the feature may be used for fault injection
         testing where the fault injection should be terminated in the event that Envoy loses contact
         with the management server.
         
        .google.protobuf.Duration ttl = 6;
      • mergeTtl

        public Resource.Builder mergeTtl​(com.google.protobuf.Duration value)
         Time-to-live value for the resource. For each resource, a timer is started. The timer is
         reset each time the resource is received with a new TTL. If the resource is received with
         no TTL set, the timer is removed for the resource. Upon expiration of the timer, the
         configuration for the resource will be removed.
         The TTL can be refreshed or changed by sending a response that doesn't change the resource
         version. In this case the resource field does not need to be populated, which allows for
         light-weight "heartbeat" updates to keep a resource with a TTL alive.
         The TTL feature is meant to support configurations that should be removed in the event of
         a management server failure. For example, the feature may be used for fault injection
         testing where the fault injection should be terminated in the event that Envoy loses contact
         with the management server.
         
        .google.protobuf.Duration ttl = 6;
      • clearTtl

        public Resource.Builder clearTtl()
         Time-to-live value for the resource. For each resource, a timer is started. The timer is
         reset each time the resource is received with a new TTL. If the resource is received with
         no TTL set, the timer is removed for the resource. Upon expiration of the timer, the
         configuration for the resource will be removed.
         The TTL can be refreshed or changed by sending a response that doesn't change the resource
         version. In this case the resource field does not need to be populated, which allows for
         light-weight "heartbeat" updates to keep a resource with a TTL alive.
         The TTL feature is meant to support configurations that should be removed in the event of
         a management server failure. For example, the feature may be used for fault injection
         testing where the fault injection should be terminated in the event that Envoy loses contact
         with the management server.
         
        .google.protobuf.Duration ttl = 6;
      • getTtlBuilder

        public com.google.protobuf.Duration.Builder getTtlBuilder()
         Time-to-live value for the resource. For each resource, a timer is started. The timer is
         reset each time the resource is received with a new TTL. If the resource is received with
         no TTL set, the timer is removed for the resource. Upon expiration of the timer, the
         configuration for the resource will be removed.
         The TTL can be refreshed or changed by sending a response that doesn't change the resource
         version. In this case the resource field does not need to be populated, which allows for
         light-weight "heartbeat" updates to keep a resource with a TTL alive.
         The TTL feature is meant to support configurations that should be removed in the event of
         a management server failure. For example, the feature may be used for fault injection
         testing where the fault injection should be terminated in the event that Envoy loses contact
         with the management server.
         
        .google.protobuf.Duration ttl = 6;
      • getTtlOrBuilder

        public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
         Time-to-live value for the resource. For each resource, a timer is started. The timer is
         reset each time the resource is received with a new TTL. If the resource is received with
         no TTL set, the timer is removed for the resource. Upon expiration of the timer, the
         configuration for the resource will be removed.
         The TTL can be refreshed or changed by sending a response that doesn't change the resource
         version. In this case the resource field does not need to be populated, which allows for
         light-weight "heartbeat" updates to keep a resource with a TTL alive.
         The TTL feature is meant to support configurations that should be removed in the event of
         a management server failure. For example, the feature may be used for fault injection
         testing where the fault injection should be terminated in the event that Envoy loses contact
         with the management server.
         
        .google.protobuf.Duration ttl = 6;
        Specified by:
        getTtlOrBuilder in interface ResourceOrBuilder
      • hasCacheControl

        public boolean hasCacheControl()
         Cache control properties for the resource.
         [#not-implemented-hide:]
         
        .envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;
        Specified by:
        hasCacheControl in interface ResourceOrBuilder
      • getCacheControl

        public Resource.CacheControl getCacheControl()
         Cache control properties for the resource.
         [#not-implemented-hide:]
         
        .envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;
        Specified by:
        getCacheControl in interface ResourceOrBuilder
      • setCacheControl

        public Resource.Builder setCacheControl​(Resource.CacheControl value)
         Cache control properties for the resource.
         [#not-implemented-hide:]
         
        .envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;
      • setCacheControl

        public Resource.Builder setCacheControl​(Resource.CacheControl.Builder builderForValue)
         Cache control properties for the resource.
         [#not-implemented-hide:]
         
        .envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;
      • mergeCacheControl

        public Resource.Builder mergeCacheControl​(Resource.CacheControl value)
         Cache control properties for the resource.
         [#not-implemented-hide:]
         
        .envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;
      • clearCacheControl

        public Resource.Builder clearCacheControl()
         Cache control properties for the resource.
         [#not-implemented-hide:]
         
        .envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;
      • getCacheControlBuilder

        public Resource.CacheControl.Builder getCacheControlBuilder()
         Cache control properties for the resource.
         [#not-implemented-hide:]
         
        .envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;
      • setUnknownFields

        public final Resource.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<Resource.Builder>
      • mergeUnknownFields

        public final Resource.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<Resource.Builder>