类 Mcp.Resources.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Mcp.Resources.Builder>
-
- istio.mcp.v1alpha1.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 typeistio.mcp.v1alpha1.Resources
-
-
字段概要
字段 修饰符和类型 字段 说明 private intbitField0_private java.lang.Objectcollection_private booleanincremental_private java.lang.Objectnonce_private com.google.protobuf.LazyStringListremovedResources_private java.util.List<ResourceOuterClass.Resource>resources_private com.google.protobuf.RepeatedFieldBuilderV3<ResourceOuterClass.Resource,ResourceOuterClass.Resource.Builder,ResourceOuterClass.ResourceOrBuilder>resourcesBuilder_private java.lang.ObjectsystemVersionInfo_
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 Mcp.Resources.BuilderaddAllRemovedResources(java.lang.Iterable<java.lang.String> values)Names of resources that have been deleted and to be removed from the MCP sink node.Mcp.Resources.BuilderaddAllResources(java.lang.Iterable<? extends ResourceOuterClass.Resource> values)The response resources wrapped in the common MCP *Resource* message.Mcp.Resources.BuilderaddRemovedResources(java.lang.String value)Names of resources that have been deleted and to be removed from the MCP sink node.Mcp.Resources.BuilderaddRemovedResourcesBytes(com.google.protobuf.ByteString value)Names of resources that have been deleted and to be removed from the MCP sink node.Mcp.Resources.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Mcp.Resources.BuilderaddResources(int index, ResourceOuterClass.Resource value)The response resources wrapped in the common MCP *Resource* message.Mcp.Resources.BuilderaddResources(int index, ResourceOuterClass.Resource.Builder builderForValue)The response resources wrapped in the common MCP *Resource* message.Mcp.Resources.BuilderaddResources(ResourceOuterClass.Resource value)The response resources wrapped in the common MCP *Resource* message.Mcp.Resources.BuilderaddResources(ResourceOuterClass.Resource.Builder builderForValue)The response resources wrapped in the common MCP *Resource* message.ResourceOuterClass.Resource.BuilderaddResourcesBuilder()The response resources wrapped in the common MCP *Resource* message.ResourceOuterClass.Resource.BuilderaddResourcesBuilder(int index)The response resources wrapped in the common MCP *Resource* message.Mcp.Resourcesbuild()Mcp.ResourcesbuildPartial()private voidbuildPartial0(Mcp.Resources result)private voidbuildPartialRepeatedFields(Mcp.Resources result)Mcp.Resources.Builderclear()Mcp.Resources.BuilderclearCollection()Type of resource collection that is being requested, e.g.Mcp.Resources.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Mcp.Resources.BuilderclearIncremental()This resource response is an incremental update.Mcp.Resources.BuilderclearNonce()Required.Mcp.Resources.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Mcp.Resources.BuilderclearRemovedResources()Names of resources that have been deleted and to be removed from the MCP sink node.Mcp.Resources.BuilderclearResources()The response resources wrapped in the common MCP *Resource* message.Mcp.Resources.BuilderclearSystemVersionInfo()The version of the response data (used for debugging).Mcp.Resources.Builderclone()private voidensureRemovedResourcesIsMutable()private voidensureResourcesIsMutable()java.lang.StringgetCollection()Type of resource collection that is being requested, e.g.com.google.protobuf.ByteStringgetCollectionBytes()Type of resource collection that is being requested, e.g.Mcp.ResourcesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetIncremental()This resource response is an incremental update.java.lang.StringgetNonce()Required.com.google.protobuf.ByteStringgetNonceBytes()Required.java.lang.StringgetRemovedResources(int index)Names of resources that have been deleted and to be removed from the MCP sink node.com.google.protobuf.ByteStringgetRemovedResourcesBytes(int index)Names of resources that have been deleted and to be removed from the MCP sink node.intgetRemovedResourcesCount()Names of resources that have been deleted and to be removed from the MCP sink node.com.google.protobuf.ProtocolStringListgetRemovedResourcesList()Names of resources that have been deleted and to be removed from the MCP sink node.ResourceOuterClass.ResourcegetResources(int index)The response resources wrapped in the common MCP *Resource* message.ResourceOuterClass.Resource.BuildergetResourcesBuilder(int index)The response resources wrapped in the common MCP *Resource* message.java.util.List<ResourceOuterClass.Resource.Builder>getResourcesBuilderList()The response resources wrapped in the common MCP *Resource* message.intgetResourcesCount()The response resources wrapped in the common MCP *Resource* message.private com.google.protobuf.RepeatedFieldBuilderV3<ResourceOuterClass.Resource,ResourceOuterClass.Resource.Builder,ResourceOuterClass.ResourceOrBuilder>getResourcesFieldBuilder()java.util.List<ResourceOuterClass.Resource>getResourcesList()The response resources wrapped in the common MCP *Resource* message.ResourceOuterClass.ResourceOrBuildergetResourcesOrBuilder(int index)The response resources wrapped in the common MCP *Resource* message.java.util.List<? extends ResourceOuterClass.ResourceOrBuilder>getResourcesOrBuilderList()The response resources wrapped in the common MCP *Resource* message.java.lang.StringgetSystemVersionInfo()The version of the response data (used for debugging).com.google.protobuf.ByteStringgetSystemVersionInfoBytes()The version of the response data (used for debugging).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Mcp.Resources.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Mcp.Resources.BuildermergeFrom(com.google.protobuf.Message other)Mcp.Resources.BuildermergeFrom(Mcp.Resources other)Mcp.Resources.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Mcp.Resources.BuilderremoveResources(int index)The response resources wrapped in the common MCP *Resource* message.Mcp.Resources.BuildersetCollection(java.lang.String value)Type of resource collection that is being requested, e.g.Mcp.Resources.BuildersetCollectionBytes(com.google.protobuf.ByteString value)Type of resource collection that is being requested, e.g.Mcp.Resources.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Mcp.Resources.BuildersetIncremental(boolean value)This resource response is an incremental update.Mcp.Resources.BuildersetNonce(java.lang.String value)Required.Mcp.Resources.BuildersetNonceBytes(com.google.protobuf.ByteString value)Required.Mcp.Resources.BuildersetRemovedResources(int index, java.lang.String value)Names of resources that have been deleted and to be removed from the MCP sink node.Mcp.Resources.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Mcp.Resources.BuildersetResources(int index, ResourceOuterClass.Resource value)The response resources wrapped in the common MCP *Resource* message.Mcp.Resources.BuildersetResources(int index, ResourceOuterClass.Resource.Builder builderForValue)The response resources wrapped in the common MCP *Resource* message.Mcp.Resources.BuildersetSystemVersionInfo(java.lang.String value)The version of the response data (used for debugging).Mcp.Resources.BuildersetSystemVersionInfoBytes(com.google.protobuf.ByteString value)The version of the response data (used for debugging).Mcp.Resources.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
-
-
-
字段详细资料
-
bitField0_
private int bitField0_
-
systemVersionInfo_
private java.lang.Object systemVersionInfo_
-
collection_
private java.lang.Object collection_
-
resources_
private java.util.List<ResourceOuterClass.Resource> resources_
-
resourcesBuilder_
private com.google.protobuf.RepeatedFieldBuilderV3<ResourceOuterClass.Resource,ResourceOuterClass.Resource.Builder,ResourceOuterClass.ResourceOrBuilder> resourcesBuilder_
-
removedResources_
private com.google.protobuf.LazyStringList removedResources_
-
nonce_
private java.lang.Object nonce_
-
incremental_
private boolean incremental_
-
-
方法详细资料
-
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
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(Mcp.Resources result)
-
buildPartial0
private void buildPartial0(Mcp.Resources result)
-
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>
-
mergeFrom
public Mcp.Resources.Builder mergeFrom(Mcp.Resources other)
-
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];
-
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];
-
getResourcesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilderV3<ResourceOuterClass.Resource,ResourceOuterClass.Resource.Builder,ResourceOuterClass.ResourceOrBuilder> getResourcesFieldBuilder()
-
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>
-
-