Package com.github.xds.core.v3
Class ResourceName.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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 typexds.core.v3.ResourceName
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Objectauthority_private intbitField0_private ContextParamscontext_private com.google.protobuf.SingleFieldBuilder<ContextParams,ContextParams.Builder,ContextParamsOrBuilder>contextBuilder_private java.lang.Objectid_private java.lang.ObjectresourceType_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceNamebuild()ResourceNamebuildPartial()private voidbuildPartial0(ResourceName result)ResourceName.Builderclear()ResourceName.BuilderclearAuthority()Logical authority for resource (not necessarily transport network address).ResourceName.BuilderclearContext()Additional parameters that can be used to select resource variants.ResourceName.BuilderclearId()Opaque identifier for the resource.ResourceName.BuilderclearResourceType()Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).java.lang.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.ContextParams.BuildergetContextBuilder()Additional parameters that can be used to select resource variants.private com.google.protobuf.SingleFieldBuilder<ContextParams,ContextParams.Builder,ContextParamsOrBuilder>getContextFieldBuilder()Additional parameters that can be used to select resource variants.ContextParamsOrBuildergetContextOrBuilder()Additional parameters that can be used to select resource variants.ResourceNamegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetId()Opaque identifier for the resource.com.google.protobuf.ByteStringgetIdBytes()Opaque identifier for the resource.java.lang.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).booleanhasContext()Additional parameters that can be used to select resource variants.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()ResourceName.BuildermergeContext(ContextParams value)Additional parameters that can be used to select resource variants.ResourceName.BuildermergeFrom(ResourceName other)ResourceName.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ResourceName.BuildermergeFrom(com.google.protobuf.Message other)ResourceName.BuildersetAuthority(java.lang.String value)Logical authority for resource (not necessarily transport network address).ResourceName.BuildersetAuthorityBytes(com.google.protobuf.ByteString value)Logical authority for resource (not necessarily transport network address).ResourceName.BuildersetContext(ContextParams value)Additional parameters that can be used to select resource variants.ResourceName.BuildersetContext(ContextParams.Builder builderForValue)Additional parameters that can be used to select resource variants.ResourceName.BuildersetId(java.lang.String value)Opaque identifier for the resource.ResourceName.BuildersetIdBytes(com.google.protobuf.ByteString value)Opaque identifier for the resource.ResourceName.BuildersetResourceType(java.lang.String value)Fully qualified resource type (as in type URL without types.googleapis.com/ prefix).ResourceName.BuildersetResourceTypeBytes(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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
id_
private java.lang.Object id_
-
authority_
private java.lang.Object authority_
-
resourceType_
private java.lang.Object resourceType_
-
context_
private ContextParams context_
-
contextBuilder_
private com.google.protobuf.SingleFieldBuilder<ContextParams,ContextParams.Builder,ContextParamsOrBuilder> contextBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResourceName.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public ResourceName.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ResourceName.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.GeneratedMessage.Builder<ResourceName.Builder>
-
getDefaultInstanceForType
public ResourceName getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ResourceName build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ResourceName buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(ResourceName result)
-
mergeFrom
public ResourceName.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceName.Builder>
-
mergeFrom
public ResourceName.Builder mergeFrom(ResourceName other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourceName.Builder>
-
mergeFrom
public ResourceName.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceName.Builder>- Throws:
java.io.IOException
-
getId
public java.lang.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.
-
setId
public ResourceName.Builder setId(java.lang.String value)
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
public ResourceName.Builder 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
public ResourceName.Builder setIdBytes(com.google.protobuf.ByteString value)
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
public java.lang.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.
-
setAuthority
public ResourceName.Builder setAuthority(java.lang.String value)
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
public ResourceName.Builder 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
public ResourceName.Builder setAuthorityBytes(com.google.protobuf.ByteString value)
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
public java.lang.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.
-
setResourceType
public ResourceName.Builder setResourceType(java.lang.String value)
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
public ResourceName.Builder 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
public ResourceName.Builder setResourceTypeBytes(com.google.protobuf.ByteString value)
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:
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.
-
setContext
public ResourceName.Builder setContext(ContextParams value)
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
setContext
public ResourceName.Builder setContext(ContextParams.Builder builderForValue)
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
mergeContext
public ResourceName.Builder mergeContext(ContextParams value)
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
clearContext
public ResourceName.Builder clearContext()
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
getContextBuilder
public ContextParams.Builder getContextBuilder()
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
getContextOrBuilder
public ContextParamsOrBuilder getContextOrBuilder()
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;- Specified by:
getContextOrBuilderin interfaceResourceNameOrBuilder
-
getContextFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ContextParams,ContextParams.Builder,ContextParamsOrBuilder> getContextFieldBuilder()
Additional parameters that can be used to select resource variants.
.xds.core.v3.ContextParams context = 4;
-
-