Package com.github.xds.core.v3
Class ResourceName
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.github.xds.core.v3.ResourceName
-
- All Implemented Interfaces:
ResourceNameOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ResourceName extends com.google.protobuf.GeneratedMessageV3 implements ResourceNameOrBuilder
xDS resource name. This has a canonical xdstp:// URI representation: xdstp://{authority}/{type_url}/{id}?{context_params} where context_params take the form of URI query parameters. A xDS resource name fully identifies a network resource for transport purposes. xDS resource names in this form appear only in discovery request/response messages used with the xDS transport.Protobuf typexds.core.v3.ResourceName- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceName.BuilderxDS resource name.-
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 intAUTHORITY_FIELD_NUMBERstatic intCONTEXT_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intRESOURCE_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAuthority()Logical authority for resource (not necessarily transport network address).com.google.protobuf.ByteStringgetAuthorityBytes()Logical authority for resource (not necessarily transport network address).ContextParamsgetContext()Additional parameters that can be used to select resource variants.ContextParamsOrBuildergetContextOrBuilder()Additional parameters that can be used to select resource variants.static ResourceNamegetDefaultInstance()ResourceNamegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetId()Opaque identifier for the resource.com.google.protobuf.ByteStringgetIdBytes()Opaque identifier for the resource.com.google.protobuf.Parser<ResourceName>getParserForType()StringgetResourceType()Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).com.google.protobuf.ByteStringgetResourceTypeBytes()Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasContext()Additional parameters that can be used to select resource variants.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ResourceName.BuildernewBuilder()static ResourceName.BuildernewBuilder(ResourceName prototype)ResourceName.BuildernewBuilderForType()protected ResourceName.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ResourceNameparseDelimitedFrom(InputStream input)static ResourceNameparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceNameparseFrom(byte[] data)static ResourceNameparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceNameparseFrom(com.google.protobuf.ByteString data)static ResourceNameparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceNameparseFrom(com.google.protobuf.CodedInputStream input)static ResourceNameparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceNameparseFrom(InputStream input)static ResourceNameparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ResourceNameparseFrom(ByteBuffer data)static ResourceNameparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ResourceName>parser()ResourceName.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
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTHORITY_FIELD_NUMBER
public static final int AUTHORITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_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
-
getId
public String getId()
Opaque identifier for the resource. Any '/' will not be escaped during URI encoding and will form part of the URI path.
string id = 1;- Specified by:
getIdin interfaceResourceNameOrBuilder- Returns:
- The id.
-
getIdBytes
public 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.
string id = 1;- Specified by:
getIdBytesin interfaceResourceNameOrBuilder- Returns:
- The bytes for id.
-
getAuthority
public 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.
string authority = 2;- Specified by:
getAuthorityin interfaceResourceNameOrBuilder- Returns:
- The authority.
-
getAuthorityBytes
public 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.
string authority = 2;- Specified by:
getAuthorityBytesin interfaceResourceNameOrBuilder- Returns:
- The bytes for authority.
-
getResourceType
public String getResourceType()
Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).
string resource_type = 3 [(.validate.rules) = { ... }- Specified by:
getResourceTypein interfaceResourceNameOrBuilder- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()
Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).
string resource_type = 3 [(.validate.rules) = { ... }- Specified by:
getResourceTypeBytesin interfaceResourceNameOrBuilder- Returns:
- The bytes for resourceType.
-
hasContext
public boolean hasContext()
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;- Specified by:
hasContextin interfaceResourceNameOrBuilder- Returns:
- Whether the context field is set.
-
getContext
public ContextParams getContext()
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;- Specified by:
getContextin interfaceResourceNameOrBuilder- Returns:
- The context.
-
getContextOrBuilder
public ContextParamsOrBuilder getContextOrBuilder()
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;- Specified by:
getContextOrBuilderin interfaceResourceNameOrBuilder
-
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 ResourceName parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResourceName parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResourceName parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResourceName parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResourceName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResourceName parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResourceName parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ResourceName parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ResourceName parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ResourceName parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ResourceName parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ResourceName parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ResourceName.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ResourceName.Builder newBuilder()
-
newBuilder
public static ResourceName.Builder newBuilder(ResourceName prototype)
-
toBuilder
public ResourceName.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ResourceName.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ResourceName getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ResourceName> parser()
-
getParserForType
public com.google.protobuf.Parser<ResourceName> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ResourceName getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-