Class Resource
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.service.discovery.v3.Resource
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ResourceOrBuilder,Serializable
public final class Resource extends com.google.protobuf.GeneratedMessageV3 implements ResourceOrBuilder
[#next-free-field: 9]
Protobuf typeenvoy.service.discovery.v3.Resource- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResource.Builder[#next-free-field: 9]static classResource.CacheControlCache control properties for the resource.static interfaceResource.CacheControlOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intALIASES_FIELD_NUMBERstatic intCACHE_CONTROL_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intRESOURCE_FIELD_NUMBERstatic intRESOURCE_NAME_FIELD_NUMBERstatic intTTL_FIELD_NUMBERstatic intVERSION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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.CacheControlOrBuildergetCacheControlOrBuilder()Cache control properties for the resource.static ResourcegetDefaultInstance()ResourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.Parser<Resource>getParserForType()com.google.protobuf.AnygetResource()The resource being tracked.ResourceNamegetResourceName()Alternative to the ``name`` field, to be used when the server supports multiple variants of the named resource that are differentiated by dynamic parameter constraints.ResourceNameOrBuildergetResourceNameOrBuilder()Alternative to the ``name`` field, to be used when the server supports multiple variants of the named resource that are differentiated by dynamic parameter constraints.com.google.protobuf.AnyOrBuildergetResourceOrBuilder()The resource being tracked.intgetSerializedSize()com.google.protobuf.DurationgetTtl()Time-to-live value for the resource.com.google.protobuf.DurationOrBuildergetTtlOrBuilder()Time-to-live value for the resource.com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetVersion()The resource level version.com.google.protobuf.ByteStringgetVersionBytes()The resource level version.booleanhasCacheControl()Cache control properties for the resource.inthashCode()booleanhasResource()The resource being tracked.booleanhasResourceName()Alternative to the ``name`` field, to be used when the server supports multiple variants of the named resource that are differentiated by dynamic parameter constraints.booleanhasTtl()Time-to-live value for the resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Resource.BuildernewBuilder()static Resource.BuildernewBuilder(Resource prototype)Resource.BuildernewBuilderForType()protected Resource.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ResourceparseDelimitedFrom(InputStream input)static ResourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceparseFrom(byte[] data)static ResourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceparseFrom(com.google.protobuf.ByteString data)static ResourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceparseFrom(com.google.protobuf.CodedInputStream input)static ResourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceparseFrom(InputStream input)static ResourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceparseFrom(ByteBuffer data)static ResourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Resource>parser()Resource.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALIASES_FIELD_NUMBER
public static final int ALIASES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TTL_FIELD_NUMBER
public static final int TTL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CACHE_CONTROL_FIELD_NUMBER
public static final int CACHE_CONTROL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getName
public String getName()
The resource's name, to distinguish it from others of the same type of resource. Only one of ``name`` or ``resource_name`` may be set.
string name = 3;- Specified by:
getNamein interfaceResourceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource's name, to distinguish it from others of the same type of resource. Only one of ``name`` or ``resource_name`` may be set.
string name = 3;- Specified by:
getNameBytesin interfaceResourceOrBuilder- Returns:
- The bytes for name.
-
hasResourceName
public boolean hasResourceName()
Alternative to the ``name`` field, to be used when the server supports multiple variants of the named resource that are differentiated by dynamic parameter constraints. Only one of ``name`` or ``resource_name`` may be set.
.envoy.service.discovery.v3.ResourceName resource_name = 8;- Specified by:
hasResourceNamein interfaceResourceOrBuilder- Returns:
- Whether the resourceName field is set.
-
getResourceName
public ResourceName getResourceName()
Alternative to the ``name`` field, to be used when the server supports multiple variants of the named resource that are differentiated by dynamic parameter constraints. Only one of ``name`` or ``resource_name`` may be set.
.envoy.service.discovery.v3.ResourceName resource_name = 8;- Specified by:
getResourceNamein interfaceResourceOrBuilder- Returns:
- The resourceName.
-
getResourceNameOrBuilder
public ResourceNameOrBuilder getResourceNameOrBuilder()
Alternative to the ``name`` field, to be used when the server supports multiple variants of the named resource that are differentiated by dynamic parameter constraints. Only one of ``name`` or ``resource_name`` may be set.
.envoy.service.discovery.v3.ResourceName resource_name = 8;- Specified by:
getResourceNameOrBuilderin interfaceResourceOrBuilder
-
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- Returns:
- A list containing the aliases.
-
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- Returns:
- The count of aliases.
-
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- Parameters:
index- The index of the element to return.- Returns:
- The aliases at the given index.
-
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- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the aliases at the given index.
-
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- Returns:
- The version.
-
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- Returns:
- The bytes for version.
-
hasResource
public boolean hasResource()
The resource being tracked.
.google.protobuf.Any resource = 2;- Specified by:
hasResourcein interfaceResourceOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
public com.google.protobuf.Any getResource()
The resource being tracked.
.google.protobuf.Any resource = 2;- Specified by:
getResourcein interfaceResourceOrBuilder- Returns:
- The resource.
-
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- Returns:
- Whether the ttl field is set.
-
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- Returns:
- The ttl.
-
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- Returns:
- Whether the cacheControl field is set.
-
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- Returns:
- The cacheControl.
-
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
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Resource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resource parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Resource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Resource parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Resource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Resource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Resource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Resource.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Resource.Builder newBuilder()
-
newBuilder
public static Resource.Builder newBuilder(Resource prototype)
-
toBuilder
public Resource.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Resource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Resource getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Resource> parser()
-
getParserForType
public com.google.protobuf.Parser<Resource> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Resource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-