public final class ResourceLocator extends com.google.protobuf.GeneratedMessageV3 implements ResourceLocatorOrBuilder
xDS resource locators identify a xDS resource name and instruct the
data-plane load balancer on how the resource may be located.
Resource locators have a canonical xdstp:// URI representation:
xdstp://{authority}/{type_url}/{id}?{context_params}{#directive,*}
where context_params take the form of URI query parameters.
Resource locators have a similar canonical http:// URI representation:
http://{authority}/{type_url}/{id}?{context_params}{#directive,*}
Resource locators also have a simplified file:// URI representation:
file:///{id}{#directive,*}
Protobuf type xds.core.v3.ResourceLocator| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceLocator.Builder
xDS resource locators identify a xDS resource name and instruct the
data-plane load balancer on how the resource may be located.
|
static class |
ResourceLocator.ContextParamSpecifierCase |
static class |
ResourceLocator.Directive
Directives provide information to data-plane load balancers on how xDS
resource names are to be interpreted and potentially further resolved.
|
static interface |
ResourceLocator.DirectiveOrBuilder |
static class |
ResourceLocator.Scheme
Protobuf enum
xds.core.v3.ResourceLocator.Scheme |
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| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHORITY_FIELD_NUMBER |
static int |
DIRECTIVES_FIELD_NUMBER |
static int |
EXACT_CONTEXT_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
RESOURCE_TYPE_FIELD_NUMBER |
static int |
SCHEME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAuthority()
Logical authority for resource (not necessarily transport network address).
|
com.google.protobuf.ByteString |
getAuthorityBytes()
Logical authority for resource (not necessarily transport network address).
|
ResourceLocator.ContextParamSpecifierCase |
getContextParamSpecifierCase() |
static ResourceLocator |
getDefaultInstance() |
ResourceLocator |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ResourceLocator.Directive |
getDirectives(int index)
A list of directives that appear in the xDS resource locator #fragment.
|
int |
getDirectivesCount()
A list of directives that appear in the xDS resource locator #fragment.
|
List<ResourceLocator.Directive> |
getDirectivesList()
A list of directives that appear in the xDS resource locator #fragment.
|
ResourceLocator.DirectiveOrBuilder |
getDirectivesOrBuilder(int index)
A list of directives that appear in the xDS resource locator #fragment.
|
List<? extends ResourceLocator.DirectiveOrBuilder> |
getDirectivesOrBuilderList()
A list of directives that appear in the xDS resource locator #fragment.
|
ContextParams |
getExactContext()
Additional parameters that can be used to select resource variants.
|
ContextParamsOrBuilder |
getExactContextOrBuilder()
Additional parameters that can be used to select resource variants.
|
String |
getId()
Opaque identifier for the resource.
|
com.google.protobuf.ByteString |
getIdBytes()
Opaque identifier for the resource.
|
com.google.protobuf.Parser<ResourceLocator> |
getParserForType() |
String |
getResourceType()
Fully qualified resource type (as in type URL without types.googleapis.com/
prefix).
|
com.google.protobuf.ByteString |
getResourceTypeBytes()
Fully qualified resource type (as in type URL without types.googleapis.com/
prefix).
|
ResourceLocator.Scheme |
getScheme()
URI scheme.
|
int |
getSchemeValue()
URI scheme.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasExactContext()
Additional parameters that can be used to select resource variants.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResourceLocator.Builder |
newBuilder() |
static ResourceLocator.Builder |
newBuilder(ResourceLocator prototype) |
ResourceLocator.Builder |
newBuilderForType() |
protected ResourceLocator.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ResourceLocator |
parseDelimitedFrom(InputStream input) |
static ResourceLocator |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceLocator |
parseFrom(byte[] data) |
static ResourceLocator |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceLocator |
parseFrom(ByteBuffer data) |
static ResourceLocator |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceLocator |
parseFrom(com.google.protobuf.ByteString data) |
static ResourceLocator |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceLocator |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ResourceLocator |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceLocator |
parseFrom(InputStream input) |
static ResourceLocator |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ResourceLocator> |
parser() |
ResourceLocator.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SCHEME_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int AUTHORITY_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER
public static final int EXACT_CONTEXT_FIELD_NUMBER
public static final int DIRECTIVES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ResourceLocator.ContextParamSpecifierCase getContextParamSpecifierCase()
getContextParamSpecifierCase in interface ResourceLocatorOrBuilderpublic int getSchemeValue()
URI scheme.
.xds.core.v3.ResourceLocator.Scheme scheme = 1 [(.validate.rules) = { ... }getSchemeValue in interface ResourceLocatorOrBuilderpublic ResourceLocator.Scheme getScheme()
URI scheme.
.xds.core.v3.ResourceLocator.Scheme scheme = 1 [(.validate.rules) = { ... }getScheme in interface ResourceLocatorOrBuilderpublic String getId()
Opaque identifier for the resource. Any '/' will not be escaped during URI encoding and will form part of the URI path. This may end with ‘*’ for glob collection references.
string id = 2;getId in interface ResourceLocatorOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Opaque identifier for the resource. Any '/' will not be escaped during URI encoding and will form part of the URI path. This may end with ‘*’ for glob collection references.
string id = 2;getIdBytes in interface ResourceLocatorOrBuilderpublic String getAuthority()
Logical authority for resource (not necessarily transport network address). Authorities are opaque in the xDS API, data-plane load balancers will map them to concrete network transports such as an xDS management server, e.g. via envoy.config.core.v3.ConfigSource.
string authority = 3;getAuthority in interface ResourceLocatorOrBuilderpublic com.google.protobuf.ByteString getAuthorityBytes()
Logical authority for resource (not necessarily transport network address). Authorities are opaque in the xDS API, data-plane load balancers will map them to concrete network transports such as an xDS management server, e.g. via envoy.config.core.v3.ConfigSource.
string authority = 3;getAuthorityBytes in interface ResourceLocatorOrBuilderpublic String getResourceType()
Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).
string resource_type = 4 [(.validate.rules) = { ... }getResourceType in interface ResourceLocatorOrBuilderpublic com.google.protobuf.ByteString getResourceTypeBytes()
Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).
string resource_type = 4 [(.validate.rules) = { ... }getResourceTypeBytes in interface ResourceLocatorOrBuilderpublic boolean hasExactContext()
Additional parameters that can be used to select resource variants. Matches must be exact, i.e. all context parameters must match exactly and there must be no additional context parameters set on the matched resource.
.xds.core.v3.ContextParams exact_context = 5;hasExactContext in interface ResourceLocatorOrBuilderpublic ContextParams getExactContext()
Additional parameters that can be used to select resource variants. Matches must be exact, i.e. all context parameters must match exactly and there must be no additional context parameters set on the matched resource.
.xds.core.v3.ContextParams exact_context = 5;getExactContext in interface ResourceLocatorOrBuilderpublic ContextParamsOrBuilder getExactContextOrBuilder()
Additional parameters that can be used to select resource variants. Matches must be exact, i.e. all context parameters must match exactly and there must be no additional context parameters set on the matched resource.
.xds.core.v3.ContextParams exact_context = 5;getExactContextOrBuilder in interface ResourceLocatorOrBuilderpublic List<ResourceLocator.Directive> getDirectivesList()
A list of directives that appear in the xDS resource locator #fragment. When encoding to URI form, directives are percent encoded with comma separation.
repeated .xds.core.v3.ResourceLocator.Directive directives = 6;getDirectivesList in interface ResourceLocatorOrBuilderpublic List<? extends ResourceLocator.DirectiveOrBuilder> getDirectivesOrBuilderList()
A list of directives that appear in the xDS resource locator #fragment. When encoding to URI form, directives are percent encoded with comma separation.
repeated .xds.core.v3.ResourceLocator.Directive directives = 6;getDirectivesOrBuilderList in interface ResourceLocatorOrBuilderpublic int getDirectivesCount()
A list of directives that appear in the xDS resource locator #fragment. When encoding to URI form, directives are percent encoded with comma separation.
repeated .xds.core.v3.ResourceLocator.Directive directives = 6;getDirectivesCount in interface ResourceLocatorOrBuilderpublic ResourceLocator.Directive getDirectives(int index)
A list of directives that appear in the xDS resource locator #fragment. When encoding to URI form, directives are percent encoded with comma separation.
repeated .xds.core.v3.ResourceLocator.Directive directives = 6;getDirectives in interface ResourceLocatorOrBuilderpublic ResourceLocator.DirectiveOrBuilder getDirectivesOrBuilder(int index)
A list of directives that appear in the xDS resource locator #fragment. When encoding to URI form, directives are percent encoded with comma separation.
repeated .xds.core.v3.ResourceLocator.Directive directives = 6;getDirectivesOrBuilder in interface ResourceLocatorOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ResourceLocator parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceLocator parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceLocator parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceLocator parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceLocator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceLocator parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceLocator parseFrom(InputStream input) throws IOException
IOExceptionpublic static ResourceLocator parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourceLocator parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ResourceLocator parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourceLocator parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ResourceLocator parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ResourceLocator.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ResourceLocator.Builder newBuilder()
public static ResourceLocator.Builder newBuilder(ResourceLocator prototype)
public ResourceLocator.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ResourceLocator.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ResourceLocator getDefaultInstance()
public static com.google.protobuf.Parser<ResourceLocator> parser()
public com.google.protobuf.Parser<ResourceLocator> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ResourceLocator getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.