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| 限定符和类型 | 方法和说明 |
|---|---|
Mcp.Resources.Builder |
addAllRemovedResources(Iterable<String> values)
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
Mcp.Resources.Builder |
addAllResources(Iterable<? extends ResourceOuterClass.Resource> values)
The response resources wrapped in the common MCP *Resource* message.
|
Mcp.Resources.Builder |
addRemovedResources(String value)
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
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.
|
Mcp.Resources.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Mcp.Resources.Builder |
addResources(int index,
ResourceOuterClass.Resource.Builder builderForValue)
The response resources wrapped in the common MCP *Resource* message.
|
Mcp.Resources.Builder |
addResources(int index,
ResourceOuterClass.Resource value)
The response resources wrapped in the common MCP *Resource* message.
|
Mcp.Resources.Builder |
addResources(ResourceOuterClass.Resource.Builder builderForValue)
The response resources wrapped in the common MCP *Resource* message.
|
Mcp.Resources.Builder |
addResources(ResourceOuterClass.Resource value)
The response resources wrapped in the common MCP *Resource* message.
|
ResourceOuterClass.Resource.Builder |
addResourcesBuilder()
The response resources wrapped in the common MCP *Resource* message.
|
ResourceOuterClass.Resource.Builder |
addResourcesBuilder(int index)
The response resources wrapped in the common MCP *Resource* message.
|
Mcp.Resources |
build() |
Mcp.Resources |
buildPartial() |
Mcp.Resources.Builder |
clear() |
Mcp.Resources.Builder |
clearCollection()
Type of resource collection that is being requested, e.g.
|
Mcp.Resources.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Mcp.Resources.Builder |
clearIncremental()
This resource response is an incremental update.
|
Mcp.Resources.Builder |
clearNonce()
Required.
|
Mcp.Resources.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Mcp.Resources.Builder |
clearRemovedResources()
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
Mcp.Resources.Builder |
clearResources()
The response resources wrapped in the common MCP *Resource* message.
|
Mcp.Resources.Builder |
clearSystemVersionInfo()
The version of the response data (used for debugging).
|
Mcp.Resources.Builder |
clone() |
String |
getCollection()
Type of resource collection that is being requested, e.g.
|
com.google.protobuf.ByteString |
getCollectionBytes()
Type of resource collection that is being requested, e.g.
|
Mcp.Resources |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIncremental()
This resource response is an incremental update.
|
String |
getNonce()
Required.
|
com.google.protobuf.ByteString |
getNonceBytes()
Required.
|
String |
getRemovedResources(int index)
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
com.google.protobuf.ByteString |
getRemovedResourcesBytes(int index)
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
int |
getRemovedResourcesCount()
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
com.google.protobuf.ProtocolStringList |
getRemovedResourcesList()
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
ResourceOuterClass.Resource |
getResources(int index)
The response resources wrapped in the common MCP *Resource* message.
|
ResourceOuterClass.Resource.Builder |
getResourcesBuilder(int index)
The response resources wrapped in the common MCP *Resource* message.
|
List<ResourceOuterClass.Resource.Builder> |
getResourcesBuilderList()
The response resources wrapped in the common MCP *Resource* message.
|
int |
getResourcesCount()
The response resources wrapped in the common MCP *Resource* message.
|
List<ResourceOuterClass.Resource> |
getResourcesList()
The response resources wrapped in the common MCP *Resource* message.
|
ResourceOuterClass.ResourceOrBuilder |
getResourcesOrBuilder(int index)
The response resources wrapped in the common MCP *Resource* message.
|
List<? extends ResourceOuterClass.ResourceOrBuilder> |
getResourcesOrBuilderList()
The response resources wrapped in the common MCP *Resource* message.
|
String |
getSystemVersionInfo()
The version of the response data (used for debugging).
|
com.google.protobuf.ByteString |
getSystemVersionInfoBytes()
The version of the response data (used for debugging).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Mcp.Resources.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Mcp.Resources.Builder |
mergeFrom(Mcp.Resources other) |
Mcp.Resources.Builder |
mergeFrom(com.google.protobuf.Message other) |
Mcp.Resources.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Mcp.Resources.Builder |
removeResources(int index)
The response resources wrapped in the common MCP *Resource* message.
|
Mcp.Resources.Builder |
setCollection(String value)
Type of resource collection that is being requested, e.g.
|
Mcp.Resources.Builder |
setCollectionBytes(com.google.protobuf.ByteString value)
Type of resource collection that is being requested, e.g.
|
Mcp.Resources.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Mcp.Resources.Builder |
setIncremental(boolean value)
This resource response is an incremental update.
|
Mcp.Resources.Builder |
setNonce(String value)
Required.
|
Mcp.Resources.Builder |
setNonceBytes(com.google.protobuf.ByteString value)
Required.
|
Mcp.Resources.Builder |
setRemovedResources(int index,
String value)
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
Mcp.Resources.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Mcp.Resources.Builder |
setResources(int index,
ResourceOuterClass.Resource.Builder builderForValue)
The response resources wrapped in the common MCP *Resource* message.
|
Mcp.Resources.Builder |
setResources(int index,
ResourceOuterClass.Resource value)
The response resources wrapped in the common MCP *Resource* message.
|
Mcp.Resources.Builder |
setSystemVersionInfo(String value)
The version of the response data (used for debugging).
|
Mcp.Resources.Builder |
setSystemVersionInfoBytes(com.google.protobuf.ByteString value)
The version of the response data (used for debugging).
|
Mcp.Resources.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public Mcp.Resources.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public Mcp.Resources getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic Mcp.Resources build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic Mcp.Resources buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic Mcp.Resources.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public Mcp.Resources.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public Mcp.Resources.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public Mcp.Resources.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public Mcp.Resources.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public Mcp.Resources.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public Mcp.Resources.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Mcp.Resources.Builder>public Mcp.Resources.Builder mergeFrom(Mcp.Resources other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public Mcp.Resources.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Mcp.Resources.Builder>IOExceptionpublic String getSystemVersionInfo()
The version of the response data (used for debugging).
string system_version_info = 1;getSystemVersionInfo 在接口中 Mcp.ResourcesOrBuilderpublic com.google.protobuf.ByteString getSystemVersionInfoBytes()
The version of the response data (used for debugging).
string system_version_info = 1;getSystemVersionInfoBytes 在接口中 Mcp.ResourcesOrBuilderpublic Mcp.Resources.Builder setSystemVersionInfo(String value)
The version of the response data (used for debugging).
string system_version_info = 1;value - The systemVersionInfo to set.public Mcp.Resources.Builder clearSystemVersionInfo()
The version of the response data (used for debugging).
string system_version_info = 1;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.public String getCollection()
Type of resource collection that is being requested, e.g. istio/networking/v1alpha3/VirtualService k8s/<apiVersion>/<kind>
string collection = 2;getCollection 在接口中 Mcp.ResourcesOrBuilderpublic 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.ResourcesOrBuilderpublic Mcp.Resources.Builder setCollection(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.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;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.public 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.ResourcesOrBuilderpublic 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.ResourcesOrBuilderpublic 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.ResourcesOrBuilderpublic 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];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];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];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];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];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];public Mcp.Resources.Builder addAllResources(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];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];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];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];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.ResourcesOrBuilderpublic 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];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];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];public 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];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.ResourcesOrBuilderpublic 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.ResourcesOrBuilderpublic 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.ResourcesOrBuilderindex - The index of the element to return.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.ResourcesOrBuilderindex - The index of the value to return.public Mcp.Resources.Builder setRemovedResources(int index, 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.public Mcp.Resources.Builder addRemovedResources(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.public Mcp.Resources.Builder addAllRemovedResources(Iterable<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.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;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.public String getNonce()
Required. The nonce provides a way for RequestChange to uniquely reference a RequestResources.
string nonce = 5;getNonce 在接口中 Mcp.ResourcesOrBuilderpublic com.google.protobuf.ByteString getNonceBytes()
Required. The nonce provides a way for RequestChange to uniquely reference a RequestResources.
string nonce = 5;getNonceBytes 在接口中 Mcp.ResourcesOrBuilderpublic Mcp.Resources.Builder setNonce(String value)
Required. The nonce provides a way for RequestChange to uniquely reference a RequestResources.
string nonce = 5;value - The nonce to set.public Mcp.Resources.Builder clearNonce()
Required. The nonce provides a way for RequestChange to uniquely reference a RequestResources.
string nonce = 5;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.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.ResourcesOrBuilderpublic 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.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;public final Mcp.Resources.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>public final Mcp.Resources.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.