Class Resource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
- io.envoyproxy.envoy.service.discovery.v3.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 typeenvoy.service.discovery.v3.Resource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource.BuilderaddAliases(String value)The aliases are a list of other names that this resource can go by.Resource.BuilderaddAliasesBytes(com.google.protobuf.ByteString value)The aliases are a list of other names that this resource can go by.Resource.BuilderaddAllAliases(Iterable<String> values)The aliases are a list of other names that this resource can go by.Resource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Resourcebuild()ResourcebuildPartial()Resource.Builderclear()Resource.BuilderclearAliases()The aliases are a list of other names that this resource can go by.Resource.BuilderclearCacheControl()Cache control properties for the resource.Resource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Resource.BuilderclearName()The resource's name, to distinguish it from others of the same type of resource.Resource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Resource.BuilderclearResource()The resource being tracked.Resource.BuilderclearTtl()Time-to-live value for the resource.Resource.BuilderclearVersion()The resource level version.Resource.Builderclone()StringgetAliases(int index)The aliases are a list of other names that this resource can go by.com.google.protobuf.ByteStringgetAliasesBytes(int index)The aliases are a list of other names that this resource can go by.intgetAliasesCount()The aliases are a list of other names that this resource can go by.com.google.protobuf.ProtocolStringListgetAliasesList()The aliases are a list of other names that this resource can go by.Resource.CacheControlgetCacheControl()Cache control properties for the resource.Resource.CacheControl.BuildergetCacheControlBuilder()Cache control properties for the resource.Resource.CacheControlOrBuildergetCacheControlOrBuilder()Cache control properties for the resource.ResourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()The resource's name, to distinguish it from others of the same type of resource.com.google.protobuf.ByteStringgetNameBytes()The resource's name, to distinguish it from others of the same type of resource.com.google.protobuf.AnygetResource()The resource being tracked.com.google.protobuf.Any.BuildergetResourceBuilder()The resource being tracked.com.google.protobuf.AnyOrBuildergetResourceOrBuilder()The resource being tracked.com.google.protobuf.DurationgetTtl()Time-to-live value for the resource.com.google.protobuf.Duration.BuildergetTtlBuilder()Time-to-live value for the resource.com.google.protobuf.DurationOrBuildergetTtlOrBuilder()Time-to-live value for the resource.StringgetVersion()The resource level version.com.google.protobuf.ByteStringgetVersionBytes()The resource level version.booleanhasCacheControl()Cache control properties for the resource.booleanhasResource()The resource being tracked.booleanhasTtl()Time-to-live value for the resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Resource.BuildermergeCacheControl(Resource.CacheControl value)Cache control properties for the resource.Resource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Resource.BuildermergeFrom(com.google.protobuf.Message other)Resource.BuildermergeFrom(Resource other)Resource.BuildermergeResource(com.google.protobuf.Any value)The resource being tracked.Resource.BuildermergeTtl(com.google.protobuf.Duration value)Time-to-live value for the resource.Resource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Resource.BuildersetAliases(int index, String value)The aliases are a list of other names that this resource can go by.Resource.BuildersetCacheControl(Resource.CacheControl value)Cache control properties for the resource.Resource.BuildersetCacheControl(Resource.CacheControl.Builder builderForValue)Cache control properties for the resource.Resource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Resource.BuildersetName(String value)The resource's name, to distinguish it from others of the same type of resource.Resource.BuildersetNameBytes(com.google.protobuf.ByteString value)The resource's name, to distinguish it from others of the same type of resource.Resource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Resource.BuildersetResource(com.google.protobuf.Any value)The resource being tracked.Resource.BuildersetResource(com.google.protobuf.Any.Builder builderForValue)The resource being tracked.Resource.BuildersetTtl(com.google.protobuf.Duration value)Time-to-live value for the resource.Resource.BuildersetTtl(com.google.protobuf.Duration.Builder builderForValue)Time-to-live value for the resource.Resource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Resource.BuildersetVersion(String value)The resource level version.Resource.BuildersetVersionBytes(com.google.protobuf.ByteString value)The resource level version.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clear
public Resource.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
getDefaultInstanceForType
public Resource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Resource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Resource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Resource.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
setField
public Resource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clearField
public Resource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clearOneof
public Resource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
setRepeatedField
public Resource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
addRepeatedField
public Resource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
mergeFrom
public Resource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resource.Builder>
-
mergeFrom
public Resource.Builder mergeFrom(Resource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getNamein interfaceResourceOrBuilder
-
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:
getNameBytesin interfaceResourceOrBuilder
-
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:
getAliasesListin interfaceResourceOrBuilder
-
getAliasesCount
public int getAliasesCount()
The aliases are a list of other names that this resource can go by.
repeated string aliases = 4;- Specified by:
getAliasesCountin interfaceResourceOrBuilder
-
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:
getAliasesin interfaceResourceOrBuilder
-
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:
getAliasesBytesin interfaceResourceOrBuilder
-
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:
getVersionin interfaceResourceOrBuilder
-
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:
getVersionBytesin interfaceResourceOrBuilder
-
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:
hasResourcein interfaceResourceOrBuilder
-
getResource
public com.google.protobuf.Any getResource()
The resource being tracked.
.google.protobuf.Any resource = 2;- Specified by:
getResourcein interfaceResourceOrBuilder
-
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:
getResourceOrBuilderin interfaceResourceOrBuilder
-
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:
hasTtlin interfaceResourceOrBuilder
-
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:
getTtlin interfaceResourceOrBuilder
-
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:
getTtlOrBuilderin interfaceResourceOrBuilder
-
hasCacheControl
public boolean hasCacheControl()
Cache control properties for the resource. [#not-implemented-hide:]
.envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;- Specified by:
hasCacheControlin interfaceResourceOrBuilder
-
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:
getCacheControlin interfaceResourceOrBuilder
-
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;
-
getCacheControlOrBuilder
public Resource.CacheControlOrBuilder getCacheControlOrBuilder()
Cache control properties for the resource. [#not-implemented-hide:]
.envoy.service.discovery.v3.Resource.CacheControl cache_control = 7;- Specified by:
getCacheControlOrBuilderin interfaceResourceOrBuilder
-
setUnknownFields
public final Resource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
mergeUnknownFields
public final Resource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
-