类 Mcp.Resources.Builder

  • 所有已实现的接口:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Mcp.ResourcesOrBuilder, java.lang.Cloneable
    封闭类:
    Mcp.Resources

    public static final class Mcp.Resources.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
    implements Mcp.ResourcesOrBuilder
     Resources do not need to include a full snapshot of the tracked
     resources. Instead they are a diff to the state of a MCP client.
     Per resource versions allow sources and sinks to track state at
     the resource granularity. An MCP incremental session is always
     in the context of a gRPC bidirectional stream. This allows the
     MCP source to keep track of the state of MCP sink connected to
     it.
     In Incremental MCP the nonce field is required and used to pair
     Resources to an RequestResources ACK or NACK.
     
    Protobuf type istio.mcp.v1alpha1.Resources
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 方法详细资料

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • clear

        public Mcp.Resources.Builder clear()
        指定者:
        clear 在接口中 com.google.protobuf.Message.Builder
        指定者:
        clear 在接口中 com.google.protobuf.MessageLite.Builder
        覆盖:
        clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        指定者:
        getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
        指定者:
        getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • getDefaultInstanceForType

        public Mcp.Resources getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
      • build

        public Mcp.Resources build()
        指定者:
        build 在接口中 com.google.protobuf.Message.Builder
        指定者:
        build 在接口中 com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Mcp.Resources buildPartial()
        指定者:
        buildPartial 在接口中 com.google.protobuf.Message.Builder
        指定者:
        buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
      • clone

        public Mcp.Resources.Builder clone()
        指定者:
        clone 在接口中 com.google.protobuf.Message.Builder
        指定者:
        clone 在接口中 com.google.protobuf.MessageLite.Builder
        覆盖:
        clone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • setField

        public Mcp.Resources.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              java.lang.Object value)
        指定者:
        setField 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        setField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • clearField

        public Mcp.Resources.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        指定者:
        clearField 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        clearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • clearOneof

        public Mcp.Resources.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        指定者:
        clearOneof 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        clearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • setRepeatedField

        public Mcp.Resources.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      java.lang.Object value)
        指定者:
        setRepeatedField 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        setRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • addRepeatedField

        public Mcp.Resources.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      java.lang.Object value)
        指定者:
        addRepeatedField 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        addRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • mergeFrom

        public Mcp.Resources.Builder mergeFrom​(com.google.protobuf.Message other)
        指定者:
        mergeFrom 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Mcp.Resources.Builder>
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • mergeFrom

        public Mcp.Resources.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.IOException
        指定者:
        mergeFrom 在接口中 com.google.protobuf.Message.Builder
        指定者:
        mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
        覆盖:
        mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Mcp.Resources.Builder>
        抛出:
        java.io.IOException
      • getSystemVersionInfo

        public java.lang.String getSystemVersionInfo()
         The version of the response data (used for debugging).
         
        string system_version_info = 1;
        指定者:
        getSystemVersionInfo 在接口中 Mcp.ResourcesOrBuilder
        返回:
        The systemVersionInfo.
      • getSystemVersionInfoBytes

        public com.google.protobuf.ByteString getSystemVersionInfoBytes()
         The version of the response data (used for debugging).
         
        string system_version_info = 1;
        指定者:
        getSystemVersionInfoBytes 在接口中 Mcp.ResourcesOrBuilder
        返回:
        The bytes for systemVersionInfo.
      • setSystemVersionInfo

        public Mcp.Resources.Builder setSystemVersionInfo​(java.lang.String value)
         The version of the response data (used for debugging).
         
        string system_version_info = 1;
        参数:
        value - The systemVersionInfo to set.
        返回:
        This builder for chaining.
      • clearSystemVersionInfo

        public Mcp.Resources.Builder clearSystemVersionInfo()
         The version of the response data (used for debugging).
         
        string system_version_info = 1;
        返回:
        This builder for chaining.
      • setSystemVersionInfoBytes

        public Mcp.Resources.Builder setSystemVersionInfoBytes​(com.google.protobuf.ByteString value)
         The version of the response data (used for debugging).
         
        string system_version_info = 1;
        参数:
        value - The bytes for systemVersionInfo to set.
        返回:
        This builder for chaining.
      • getCollection

        public java.lang.String getCollection()
         Type of resource collection that is being requested, e.g.
         istio/networking/v1alpha3/VirtualService
         k8s/<apiVersion>/<kind>
         
        string collection = 2;
        指定者:
        getCollection 在接口中 Mcp.ResourcesOrBuilder
        返回:
        The collection.
      • getCollectionBytes

        public com.google.protobuf.ByteString getCollectionBytes()
         Type of resource collection that is being requested, e.g.
         istio/networking/v1alpha3/VirtualService
         k8s/<apiVersion>/<kind>
         
        string collection = 2;
        指定者:
        getCollectionBytes 在接口中 Mcp.ResourcesOrBuilder
        返回:
        The bytes for collection.
      • setCollection

        public Mcp.Resources.Builder setCollection​(java.lang.String value)
         Type of resource collection that is being requested, e.g.
         istio/networking/v1alpha3/VirtualService
         k8s/<apiVersion>/<kind>
         
        string collection = 2;
        参数:
        value - The collection to set.
        返回:
        This builder for chaining.
      • clearCollection

        public Mcp.Resources.Builder clearCollection()
         Type of resource collection that is being requested, e.g.
         istio/networking/v1alpha3/VirtualService
         k8s/<apiVersion>/<kind>
         
        string collection = 2;
        返回:
        This builder for chaining.
      • setCollectionBytes

        public Mcp.Resources.Builder setCollectionBytes​(com.google.protobuf.ByteString value)
         Type of resource collection that is being requested, e.g.
         istio/networking/v1alpha3/VirtualService
         k8s/<apiVersion>/<kind>
         
        string collection = 2;
        参数:
        value - The bytes for collection to set.
        返回:
        This builder for chaining.
      • ensureResourcesIsMutable

        private void ensureResourcesIsMutable()
      • getResourcesList

        public java.util.List<ResourceOuterClass.Resource> getResourcesList()
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
        指定者:
        getResourcesList 在接口中 Mcp.ResourcesOrBuilder
      • getResourcesCount

        public int getResourcesCount()
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
        指定者:
        getResourcesCount 在接口中 Mcp.ResourcesOrBuilder
      • getResources

        public ResourceOuterClass.Resource getResources​(int index)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
        指定者:
        getResources 在接口中 Mcp.ResourcesOrBuilder
      • setResources

        public Mcp.Resources.Builder setResources​(int index,
                                                  ResourceOuterClass.Resource value)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • setResources

        public Mcp.Resources.Builder setResources​(int index,
                                                  ResourceOuterClass.Resource.Builder builderForValue)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • addResources

        public Mcp.Resources.Builder addResources​(ResourceOuterClass.Resource value)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • addResources

        public Mcp.Resources.Builder addResources​(int index,
                                                  ResourceOuterClass.Resource value)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • addResources

        public Mcp.Resources.Builder addResources​(ResourceOuterClass.Resource.Builder builderForValue)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • addResources

        public Mcp.Resources.Builder addResources​(int index,
                                                  ResourceOuterClass.Resource.Builder builderForValue)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • addAllResources

        public Mcp.Resources.Builder addAllResources​(java.lang.Iterable<? extends ResourceOuterClass.Resource> values)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • clearResources

        public Mcp.Resources.Builder clearResources()
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • removeResources

        public Mcp.Resources.Builder removeResources​(int index)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • getResourcesBuilder

        public ResourceOuterClass.Resource.Builder getResourcesBuilder​(int index)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • getResourcesOrBuilder

        public ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder​(int index)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
        指定者:
        getResourcesOrBuilder 在接口中 Mcp.ResourcesOrBuilder
      • getResourcesOrBuilderList

        public java.util.List<? extends ResourceOuterClass.ResourceOrBuilder> getResourcesOrBuilderList()
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
        指定者:
        getResourcesOrBuilderList 在接口中 Mcp.ResourcesOrBuilder
      • addResourcesBuilder

        public ResourceOuterClass.Resource.Builder addResourcesBuilder()
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • addResourcesBuilder

        public ResourceOuterClass.Resource.Builder addResourcesBuilder​(int index)
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • getResourcesBuilderList

        public java.util.List<ResourceOuterClass.Resource.Builder> getResourcesBuilderList()
         The response resources wrapped in the common MCP *Resource* message.
         These are typed resources that match the type url in the
         RequestResources message.
         When `incremental` is true, this contains an array of resources to add/update
         for the specified collection. This modifies the existing collection at the sink
         When `incremental` is false, this contains the full set of resources for the
         specified collection. This replaces any previously delivered resources.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
      • ensureRemovedResourcesIsMutable

        private void ensureRemovedResourcesIsMutable()
      • getRemovedResourcesList

        public com.google.protobuf.ProtocolStringList getRemovedResourcesList()
         Names of resources that have been deleted and to be
         removed from the MCP sink node. Removed resources for missing
         resources can be ignored.
         When `incremental` is true, this contains an array of resource names to remove
         for the specified collection. This modifies the existing resource collection at
         the sink.
         When `incremental` is false, this field should be ignored.
         
        repeated string removed_resources = 4;
        指定者:
        getRemovedResourcesList 在接口中 Mcp.ResourcesOrBuilder
        返回:
        A list containing the removedResources.
      • getRemovedResourcesCount

        public int getRemovedResourcesCount()
         Names of resources that have been deleted and to be
         removed from the MCP sink node. Removed resources for missing
         resources can be ignored.
         When `incremental` is true, this contains an array of resource names to remove
         for the specified collection. This modifies the existing resource collection at
         the sink.
         When `incremental` is false, this field should be ignored.
         
        repeated string removed_resources = 4;
        指定者:
        getRemovedResourcesCount 在接口中 Mcp.ResourcesOrBuilder
        返回:
        The count of removedResources.
      • getRemovedResources

        public java.lang.String getRemovedResources​(int index)
         Names of resources that have been deleted and to be
         removed from the MCP sink node. Removed resources for missing
         resources can be ignored.
         When `incremental` is true, this contains an array of resource names to remove
         for the specified collection. This modifies the existing resource collection at
         the sink.
         When `incremental` is false, this field should be ignored.
         
        repeated string removed_resources = 4;
        指定者:
        getRemovedResources 在接口中 Mcp.ResourcesOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The removedResources at the given index.
      • getRemovedResourcesBytes

        public com.google.protobuf.ByteString getRemovedResourcesBytes​(int index)
         Names of resources that have been deleted and to be
         removed from the MCP sink node. Removed resources for missing
         resources can be ignored.
         When `incremental` is true, this contains an array of resource names to remove
         for the specified collection. This modifies the existing resource collection at
         the sink.
         When `incremental` is false, this field should be ignored.
         
        repeated string removed_resources = 4;
        指定者:
        getRemovedResourcesBytes 在接口中 Mcp.ResourcesOrBuilder
        参数:
        index - The index of the value to return.
        返回:
        The bytes of the removedResources at the given index.
      • setRemovedResources

        public Mcp.Resources.Builder setRemovedResources​(int index,
                                                         java.lang.String value)
         Names of resources that have been deleted and to be
         removed from the MCP sink node. Removed resources for missing
         resources can be ignored.
         When `incremental` is true, this contains an array of resource names to remove
         for the specified collection. This modifies the existing resource collection at
         the sink.
         When `incremental` is false, this field should be ignored.
         
        repeated string removed_resources = 4;
        参数:
        index - The index to set the value at.
        value - The removedResources to set.
        返回:
        This builder for chaining.
      • addRemovedResources

        public Mcp.Resources.Builder addRemovedResources​(java.lang.String value)
         Names of resources that have been deleted and to be
         removed from the MCP sink node. Removed resources for missing
         resources can be ignored.
         When `incremental` is true, this contains an array of resource names to remove
         for the specified collection. This modifies the existing resource collection at
         the sink.
         When `incremental` is false, this field should be ignored.
         
        repeated string removed_resources = 4;
        参数:
        value - The removedResources to add.
        返回:
        This builder for chaining.
      • addAllRemovedResources

        public Mcp.Resources.Builder addAllRemovedResources​(java.lang.Iterable<java.lang.String> values)
         Names of resources that have been deleted and to be
         removed from the MCP sink node. Removed resources for missing
         resources can be ignored.
         When `incremental` is true, this contains an array of resource names to remove
         for the specified collection. This modifies the existing resource collection at
         the sink.
         When `incremental` is false, this field should be ignored.
         
        repeated string removed_resources = 4;
        参数:
        values - The removedResources to add.
        返回:
        This builder for chaining.
      • clearRemovedResources

        public Mcp.Resources.Builder clearRemovedResources()
         Names of resources that have been deleted and to be
         removed from the MCP sink node. Removed resources for missing
         resources can be ignored.
         When `incremental` is true, this contains an array of resource names to remove
         for the specified collection. This modifies the existing resource collection at
         the sink.
         When `incremental` is false, this field should be ignored.
         
        repeated string removed_resources = 4;
        返回:
        This builder for chaining.
      • addRemovedResourcesBytes

        public Mcp.Resources.Builder addRemovedResourcesBytes​(com.google.protobuf.ByteString value)
         Names of resources that have been deleted and to be
         removed from the MCP sink node. Removed resources for missing
         resources can be ignored.
         When `incremental` is true, this contains an array of resource names to remove
         for the specified collection. This modifies the existing resource collection at
         the sink.
         When `incremental` is false, this field should be ignored.
         
        repeated string removed_resources = 4;
        参数:
        value - The bytes of the removedResources to add.
        返回:
        This builder for chaining.
      • getNonce

        public java.lang.String getNonce()
         Required. The nonce provides a way for RequestChange to uniquely
         reference a RequestResources.
         
        string nonce = 5;
        指定者:
        getNonce 在接口中 Mcp.ResourcesOrBuilder
        返回:
        The nonce.
      • getNonceBytes

        public com.google.protobuf.ByteString getNonceBytes()
         Required. The nonce provides a way for RequestChange to uniquely
         reference a RequestResources.
         
        string nonce = 5;
        指定者:
        getNonceBytes 在接口中 Mcp.ResourcesOrBuilder
        返回:
        The bytes for nonce.
      • setNonce

        public Mcp.Resources.Builder setNonce​(java.lang.String value)
         Required. The nonce provides a way for RequestChange to uniquely
         reference a RequestResources.
         
        string nonce = 5;
        参数:
        value - The nonce to set.
        返回:
        This builder for chaining.
      • clearNonce

        public Mcp.Resources.Builder clearNonce()
         Required. The nonce provides a way for RequestChange to uniquely
         reference a RequestResources.
         
        string nonce = 5;
        返回:
        This builder for chaining.
      • setNonceBytes

        public Mcp.Resources.Builder setNonceBytes​(com.google.protobuf.ByteString value)
         Required. The nonce provides a way for RequestChange to uniquely
         reference a RequestResources.
         
        string nonce = 5;
        参数:
        value - The bytes for nonce to set.
        返回:
        This builder for chaining.
      • getIncremental

        public boolean getIncremental()
         This resource response is an incremental update. The source should only send
         incremental updates if the sink requested them.
         
        bool incremental = 6;
        指定者:
        getIncremental 在接口中 Mcp.ResourcesOrBuilder
        返回:
        The incremental.
      • setIncremental

        public Mcp.Resources.Builder setIncremental​(boolean value)
         This resource response is an incremental update. The source should only send
         incremental updates if the sink requested them.
         
        bool incremental = 6;
        参数:
        value - The incremental to set.
        返回:
        This builder for chaining.
      • clearIncremental

        public Mcp.Resources.Builder clearIncremental()
         This resource response is an incremental update. The source should only send
         incremental updates if the sink requested them.
         
        bool incremental = 6;
        返回:
        This builder for chaining.
      • setUnknownFields

        public final Mcp.Resources.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        指定者:
        setUnknownFields 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        setUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
      • mergeUnknownFields

        public final Mcp.Resources.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        指定者:
        mergeUnknownFields 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        mergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>