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| Modifier and Type | Method and Description |
|---|---|
Resource.Builder |
addAliases(String value)
The aliases are a list of other names that this resource can go by.
|
Resource.Builder |
addAliasesBytes(com.google.protobuf.ByteString value)
The aliases are a list of other names that this resource can go by.
|
Resource.Builder |
addAllAliases(Iterable<String> values)
The aliases are a list of other names that this resource can go by.
|
Resource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Resource |
build() |
Resource |
buildPartial() |
Resource.Builder |
clear() |
Resource.Builder |
clearAliases()
The aliases are a list of other names that this resource can go by.
|
Resource.Builder |
clearCacheControl()
Cache control properties for the resource.
|
Resource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Resource.Builder |
clearName()
The resource's name, to distinguish it from others of the same type of resource.
|
Resource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Resource.Builder |
clearResource()
The resource being tracked.
|
Resource.Builder |
clearTtl()
Time-to-live value for the resource.
|
Resource.Builder |
clearVersion()
The resource level version.
|
Resource.Builder |
clone() |
String |
getAliases(int index)
The aliases are a list of other names that this resource can go by.
|
com.google.protobuf.ByteString |
getAliasesBytes(int index)
The aliases are a list of other names that this resource can go by.
|
int |
getAliasesCount()
The aliases are a list of other names that this resource can go by.
|
com.google.protobuf.ProtocolStringList |
getAliasesList()
The aliases are a list of other names that this resource can go by.
|
Resource.CacheControl |
getCacheControl()
Cache control properties for the resource.
|
Resource.CacheControl.Builder |
getCacheControlBuilder()
Cache control properties for the resource.
|
Resource.CacheControlOrBuilder |
getCacheControlOrBuilder()
Cache control properties for the resource.
|
Resource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
The resource's name, to distinguish it from others of the same type of resource.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource's name, to distinguish it from others of the same type of resource.
|
com.google.protobuf.Any |
getResource()
The resource being tracked.
|
com.google.protobuf.Any.Builder |
getResourceBuilder()
The resource being tracked.
|
com.google.protobuf.AnyOrBuilder |
getResourceOrBuilder()
The resource being tracked.
|
com.google.protobuf.Duration |
getTtl()
Time-to-live value for the resource.
|
com.google.protobuf.Duration.Builder |
getTtlBuilder()
Time-to-live value for the resource.
|
com.google.protobuf.DurationOrBuilder |
getTtlOrBuilder()
Time-to-live value for the resource.
|
String |
getVersion()
The resource level version.
|
com.google.protobuf.ByteString |
getVersionBytes()
The resource level version.
|
boolean |
hasCacheControl()
Cache control properties for the resource.
|
boolean |
hasResource()
The resource being tracked.
|
boolean |
hasTtl()
Time-to-live value for the resource.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Resource.Builder |
mergeCacheControl(Resource.CacheControl value)
Cache control properties for the resource.
|
Resource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Resource.Builder |
mergeFrom(com.google.protobuf.Message other) |
Resource.Builder |
mergeFrom(Resource other) |
Resource.Builder |
mergeResource(com.google.protobuf.Any value)
The resource being tracked.
|
Resource.Builder |
mergeTtl(com.google.protobuf.Duration value)
Time-to-live value for the resource.
|
Resource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Resource.Builder |
setAliases(int index,
String value)
The aliases are a list of other names that this resource can go by.
|
Resource.Builder |
setCacheControl(Resource.CacheControl.Builder builderForValue)
Cache control properties for the resource.
|
Resource.Builder |
setCacheControl(Resource.CacheControl value)
Cache control properties for the resource.
|
Resource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Resource.Builder |
setName(String value)
The resource's name, to distinguish it from others of the same type of resource.
|
Resource.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The resource's name, to distinguish it from others of the same type of resource.
|
Resource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Resource.Builder |
setResource(com.google.protobuf.Any.Builder builderForValue)
The resource being tracked.
|
Resource.Builder |
setResource(com.google.protobuf.Any value)
The resource being tracked.
|
Resource.Builder |
setTtl(com.google.protobuf.Duration.Builder builderForValue)
Time-to-live value for the resource.
|
Resource.Builder |
setTtl(com.google.protobuf.Duration value)
Time-to-live value for the resource.
|
Resource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Resource.Builder |
setVersion(String value)
The resource level version.
|
Resource.Builder |
setVersionBytes(com.google.protobuf.ByteString value)
The resource level version.
|
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<Resource.Builder>public Resource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.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<Resource.Builder>public Resource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Resource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Resource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Resource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.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<Resource.Builder>public Resource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.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<Resource.Builder>public Resource.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<Resource.Builder>public Resource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Resource.Builder>public Resource.Builder mergeFrom(Resource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.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<Resource.Builder>IOExceptionpublic String getName()
The resource's name, to distinguish it from others of the same type of resource.
string name = 3;getName in interface ResourceOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource's name, to distinguish it from others of the same type of resource.
string name = 3;getNameBytes in interface ResourceOrBuilderpublic Resource.Builder setName(String value)
The resource's name, to distinguish it from others of the same type of resource.
string name = 3;public Resource.Builder clearName()
The resource's name, to distinguish it from others of the same type of resource.
string name = 3;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;public com.google.protobuf.ProtocolStringList getAliasesList()
The aliases are a list of other names that this resource can go by.
repeated string aliases = 4;getAliasesList in interface ResourceOrBuilderpublic int getAliasesCount()
The aliases are a list of other names that this resource can go by.
repeated string aliases = 4;getAliasesCount in interface ResourceOrBuilderpublic String getAliases(int index)
The aliases are a list of other names that this resource can go by.
repeated string aliases = 4;getAliases in interface ResourceOrBuilderpublic 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;getAliasesBytes in interface ResourceOrBuilderpublic 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;public Resource.Builder addAliases(String value)
The aliases are a list of other names that this resource can go by.
repeated string aliases = 4;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;public Resource.Builder clearAliases()
The aliases are a list of other names that this resource can go by.
repeated string aliases = 4;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;public String getVersion()
The resource level version. It allows xDS to track the state of individual resources.
string version = 1;getVersion in interface ResourceOrBuilderpublic com.google.protobuf.ByteString getVersionBytes()
The resource level version. It allows xDS to track the state of individual resources.
string version = 1;getVersionBytes in interface ResourceOrBuilderpublic Resource.Builder setVersion(String value)
The resource level version. It allows xDS to track the state of individual resources.
string version = 1;public Resource.Builder clearVersion()
The resource level version. It allows xDS to track the state of individual resources.
string version = 1;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;public boolean hasResource()
The resource being tracked.
.google.protobuf.Any resource = 2;hasResource in interface ResourceOrBuilderpublic com.google.protobuf.Any getResource()
The resource being tracked.
.google.protobuf.Any resource = 2;getResource in interface ResourceOrBuilderpublic Resource.Builder setResource(com.google.protobuf.Any value)
The resource being tracked.
.google.protobuf.Any resource = 2;public Resource.Builder setResource(com.google.protobuf.Any.Builder builderForValue)
The resource being tracked.
.google.protobuf.Any resource = 2;public Resource.Builder mergeResource(com.google.protobuf.Any value)
The resource being tracked.
.google.protobuf.Any resource = 2;public Resource.Builder clearResource()
The resource being tracked.
.google.protobuf.Any resource = 2;public com.google.protobuf.Any.Builder getResourceBuilder()
The resource being tracked.
.google.protobuf.Any resource = 2;public com.google.protobuf.AnyOrBuilder getResourceOrBuilder()
The resource being tracked.
.google.protobuf.Any resource = 2;getResourceOrBuilder in interface ResourceOrBuilderpublic 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;hasTtl in interface ResourceOrBuilderpublic 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;getTtl in interface ResourceOrBuilderpublic 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;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;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;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;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;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;getTtlOrBuilder in interface ResourceOrBuilderpublic boolean hasCacheControl()
Cache control properties for the resource. [#not-implemented-hide:]
.envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;hasCacheControl in interface ResourceOrBuilderpublic Resource.CacheControl getCacheControl()
Cache control properties for the resource. [#not-implemented-hide:]
.envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;getCacheControl in interface ResourceOrBuilderpublic Resource.Builder setCacheControl(Resource.CacheControl value)
Cache control properties for the resource. [#not-implemented-hide:]
.envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;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;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;public Resource.Builder clearCacheControl()
Cache control properties for the resource. [#not-implemented-hide:]
.envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;public Resource.CacheControl.Builder getCacheControlBuilder()
Cache control properties for the resource. [#not-implemented-hide:]
.envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;public Resource.CacheControlOrBuilder getCacheControlOrBuilder()
Cache control properties for the resource. [#not-implemented-hide:]
.envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;getCacheControlOrBuilder in interface ResourceOrBuilderpublic final Resource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public final Resource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.