Package com.github.xds.core.v3
Class ResourceName.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResourceName.Builder>
com.google.protobuf.GeneratedMessage.Builder<ResourceName.Builder>
com.github.xds.core.v3.ResourceName.Builder
- All Implemented Interfaces:
ResourceNameOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
ResourceName
public static final class ResourceName.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourceName.Builder>
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 type
xds.core.v3.ResourceName
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object
private int
private ContextParams
private com.google.protobuf.SingleFieldBuilder
<ContextParams, ContextParams.Builder, ContextParamsOrBuilder> private Object
private Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(ResourceName result) clear()
Logical authority for resource (not necessarily transport network address).Additional parameters that can be used to select resource variants.clearId()
Opaque identifier for the resource.Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).Logical authority for resource (not necessarily transport network address).com.google.protobuf.ByteString
Logical authority for resource (not necessarily transport network address).Additional parameters that can be used to select resource variants.Additional parameters that can be used to select resource variants.Additional parameters that can be used to select resource variants.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getId()
Opaque identifier for the resource.com.google.protobuf.ByteString
Opaque identifier for the resource.Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).com.google.protobuf.ByteString
Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).boolean
Additional parameters that can be used to select resource variants.private com.google.protobuf.SingleFieldBuilder
<ContextParams, ContextParams.Builder, ContextParamsOrBuilder> Additional parameters that can be used to select resource variants.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeContext
(ContextParams value) Additional parameters that can be used to select resource variants.mergeFrom
(ResourceName other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) setAuthority
(String value) Logical authority for resource (not necessarily transport network address).setAuthorityBytes
(com.google.protobuf.ByteString value) Logical authority for resource (not necessarily transport network address).setContext
(ContextParams value) Additional parameters that can be used to select resource variants.setContext
(ContextParams.Builder builderForValue) Additional parameters that can be used to select resource variants.Opaque identifier for the resource.setIdBytes
(com.google.protobuf.ByteString value) Opaque identifier for the resource.setResourceType
(String value) Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).setResourceTypeBytes
(com.google.protobuf.ByteString value) Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
id_
-
authority_
-
resourceType_
-
context_
-
contextBuilder_
private com.google.protobuf.SingleFieldBuilder<ContextParams,ContextParams.Builder, contextBuilder_ContextParamsOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<ResourceName.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<ResourceName.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<ResourceName.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResourceName.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ResourceName.Builder>
-
mergeFrom
public ResourceName.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResourceName.Builder>
- Throws:
IOException
-
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:
getId
in 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:
getIdBytes
in interfaceResourceNameOrBuilder
- Returns:
- The bytes for id.
-
setId
Opaque identifier for the resource. Any '/' will not be escaped during URI encoding and will form part of the URI path.
string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
Opaque identifier for the resource. Any '/' will not be escaped during URI encoding and will form part of the URI path.
string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
Opaque identifier for the resource. Any '/' will not be escaped during URI encoding and will form part of the URI path.
string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
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:
getAuthority
in 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:
getAuthorityBytes
in interfaceResourceNameOrBuilder
- Returns:
- The bytes for authority.
-
setAuthority
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;
- Parameters:
value
- The authority to set.- Returns:
- This builder for chaining.
-
clearAuthority
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;
- Returns:
- This builder for chaining.
-
setAuthorityBytes
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;
- Parameters:
value
- The bytes for authority to set.- Returns:
- This builder for chaining.
-
getResourceType
Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).
string resource_type = 3 [(.validate.rules) = { ... }
- Specified by:
getResourceType
in 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:
getResourceTypeBytes
in interfaceResourceNameOrBuilder
- Returns:
- The bytes for resourceType.
-
setResourceType
Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).
string resource_type = 3 [(.validate.rules) = { ... }
- Parameters:
value
- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).
string resource_type = 3 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
setResourceTypeBytes
Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).
string resource_type = 3 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
hasContext
public boolean hasContext()Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
- Specified by:
hasContext
in interfaceResourceNameOrBuilder
- Returns:
- Whether the context field is set.
-
getContext
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
- Specified by:
getContext
in interfaceResourceNameOrBuilder
- Returns:
- The context.
-
setContext
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
setContext
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
mergeContext
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
clearContext
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
getContextBuilder
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
getContextOrBuilder
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
- Specified by:
getContextOrBuilder
in interfaceResourceNameOrBuilder
-
internalGetContextFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ContextParams,ContextParams.Builder, internalGetContextFieldBuilder()ContextParamsOrBuilder> Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-