Class 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.GeneratedMessageV3.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • clear

        public ResourceName.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • getDefaultInstanceForType

        public ResourceName getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ResourceName build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ResourceName buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ResourceName.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • setField

        public ResourceName.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • clearField

        public ResourceName.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • clearOneof

        public ResourceName.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • setRepeatedField

        public ResourceName.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • addRepeatedField

        public ResourceName.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • mergeFrom

        public ResourceName.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceName.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • mergeFrom

        public ResourceName.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceName.Builder>
        Throws:
        IOException
      • 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:
        getId in interface ResourceNameOrBuilder
        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 interface ResourceNameOrBuilder
        Returns:
        The bytes for id.
      • setId

        public ResourceName.Builder setId​(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 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:
        getAuthority in interface ResourceNameOrBuilder
        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 interface ResourceNameOrBuilder
        Returns:
        The bytes for authority.
      • setAuthority

        public ResourceName.Builder setAuthority​(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 String getResourceType()
         Fully qualified resource type (as in type URL without types.googleapis.com/
         prefix).
         
        string resource_type = 3 [(.validate.rules) = { ... }
        Specified by:
        getResourceType in interface ResourceNameOrBuilder
        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 interface ResourceNameOrBuilder
        Returns:
        The bytes for resourceType.
      • setResourceType

        public ResourceName.Builder setResourceType​(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:
        hasContext in interface ResourceNameOrBuilder
        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:
        getContext in interface ResourceNameOrBuilder
        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;
      • 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;
      • setUnknownFields

        public final ResourceName.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>
      • mergeUnknownFields

        public final ResourceName.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceName.Builder>