类 Mcp.RequestResources.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
- istio.mcp.v1alpha1.Mcp.RequestResources.Builder
-
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Mcp.RequestResourcesOrBuilder,java.lang.Cloneable
- 封闭类:
- Mcp.RequestResources
public static final class Mcp.RequestResources.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder> implements Mcp.RequestResourcesOrBuilder
A RequestResource can be sent in two situations: Initial message in an MCP bidirectional change stream as an ACK or NACK response to a previous Resources. In this case the response_nonce is set to the nonce value in the Resources. ACK/NACK is determined by the presence of error_detail. * ACK (nonce!="",error_details==nil) * NACK (nonce!="",error_details!=nil) * New/Update request (nonce=="",error_details ignored)
Protobuf typeistio.mcp.v1alpha1.RequestResources
-
-
字段概要
字段 修饰符和类型 字段 说明 private intbitField0_private java.lang.Objectcollection_private com.google.rpc.StatuserrorDetail_private com.google.protobuf.SingleFieldBuilderV3<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder>errorDetailBuilder_private booleanincremental_private com.google.protobuf.MapField<java.lang.String,java.lang.String>initialResourceVersions_private java.lang.ObjectresponseNonce_private Mcp.SinkNodesinkNode_private com.google.protobuf.SingleFieldBuilderV3<Mcp.SinkNode,Mcp.SinkNode.Builder,Mcp.SinkNodeOrBuilder>sinkNodeBuilder_
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 Mcp.RequestResources.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Mcp.RequestResourcesbuild()Mcp.RequestResourcesbuildPartial()private voidbuildPartial0(Mcp.RequestResources result)Mcp.RequestResources.Builderclear()Mcp.RequestResources.BuilderclearCollection()Type of resource collection that is being requested, e.g.Mcp.RequestResources.BuilderclearErrorDetail()This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.Mcp.RequestResources.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Mcp.RequestResources.BuilderclearIncremental()Request an incremental update for the specified collection.Mcp.RequestResources.BuilderclearInitialResourceVersions()Mcp.RequestResources.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Mcp.RequestResources.BuilderclearResponseNonce()When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources.Mcp.RequestResources.BuilderclearSinkNode()The sink node making the request.Mcp.RequestResources.Builderclone()booleancontainsInitialResourceVersions(java.lang.String key)When the RequestResources is the first in a stream, the initial_resource_versions must be populated.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.RequestResourcesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.rpc.StatusgetErrorDetail()This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.com.google.rpc.Status.BuildergetErrorDetailBuilder()This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.private com.google.protobuf.SingleFieldBuilderV3<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder>getErrorDetailFieldBuilder()This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.com.google.rpc.StatusOrBuildergetErrorDetailOrBuilder()This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.booleangetIncremental()Request an incremental update for the specified collection.java.util.Map<java.lang.String,java.lang.String>getInitialResourceVersions()已过时。intgetInitialResourceVersionsCount()When the RequestResources is the first in a stream, the initial_resource_versions must be populated.java.util.Map<java.lang.String,java.lang.String>getInitialResourceVersionsMap()When the RequestResources is the first in a stream, the initial_resource_versions must be populated.java.lang.StringgetInitialResourceVersionsOrDefault(java.lang.String key, java.lang.String defaultValue)When the RequestResources is the first in a stream, the initial_resource_versions must be populated.java.lang.StringgetInitialResourceVersionsOrThrow(java.lang.String key)When the RequestResources is the first in a stream, the initial_resource_versions must be populated.java.util.Map<java.lang.String,java.lang.String>getMutableInitialResourceVersions()已过时。java.lang.StringgetResponseNonce()When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources.com.google.protobuf.ByteStringgetResponseNonceBytes()When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources.Mcp.SinkNodegetSinkNode()The sink node making the request.Mcp.SinkNode.BuildergetSinkNodeBuilder()The sink node making the request.private com.google.protobuf.SingleFieldBuilderV3<Mcp.SinkNode,Mcp.SinkNode.Builder,Mcp.SinkNodeOrBuilder>getSinkNodeFieldBuilder()The sink node making the request.Mcp.SinkNodeOrBuildergetSinkNodeOrBuilder()The sink node making the request.booleanhasErrorDetail()This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.booleanhasSinkNode()The sink node making the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetInitialResourceVersions()protected com.google.protobuf.MapFieldinternalGetMapField(int number)private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetMutableInitialResourceVersions()protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Mcp.RequestResources.BuildermergeErrorDetail(com.google.rpc.Status value)This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.Mcp.RequestResources.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Mcp.RequestResources.BuildermergeFrom(com.google.protobuf.Message other)Mcp.RequestResources.BuildermergeFrom(Mcp.RequestResources other)Mcp.RequestResources.BuildermergeSinkNode(Mcp.SinkNode value)The sink node making the request.Mcp.RequestResources.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Mcp.RequestResources.BuilderputAllInitialResourceVersions(java.util.Map<java.lang.String,java.lang.String> values)When the RequestResources is the first in a stream, the initial_resource_versions must be populated.Mcp.RequestResources.BuilderputInitialResourceVersions(java.lang.String key, java.lang.String value)When the RequestResources is the first in a stream, the initial_resource_versions must be populated.Mcp.RequestResources.BuilderremoveInitialResourceVersions(java.lang.String key)When the RequestResources is the first in a stream, the initial_resource_versions must be populated.Mcp.RequestResources.BuildersetCollection(java.lang.String value)Type of resource collection that is being requested, e.g.Mcp.RequestResources.BuildersetCollectionBytes(com.google.protobuf.ByteString value)Type of resource collection that is being requested, e.g.Mcp.RequestResources.BuildersetErrorDetail(com.google.rpc.Status value)This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.Mcp.RequestResources.BuildersetErrorDetail(com.google.rpc.Status.Builder builderForValue)This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.Mcp.RequestResources.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Mcp.RequestResources.BuildersetIncremental(boolean value)Request an incremental update for the specified collection.Mcp.RequestResources.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Mcp.RequestResources.BuildersetResponseNonce(java.lang.String value)When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources.Mcp.RequestResources.BuildersetResponseNonceBytes(com.google.protobuf.ByteString value)When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources.Mcp.RequestResources.BuildersetSinkNode(Mcp.SinkNode value)The sink node making the request.Mcp.RequestResources.BuildersetSinkNode(Mcp.SinkNode.Builder builderForValue)The sink node making the request.Mcp.RequestResources.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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_
-
sinkNode_
private Mcp.SinkNode sinkNode_
-
sinkNodeBuilder_
private com.google.protobuf.SingleFieldBuilderV3<Mcp.SinkNode,Mcp.SinkNode.Builder,Mcp.SinkNodeOrBuilder> sinkNodeBuilder_
-
collection_
private java.lang.Object collection_
-
initialResourceVersions_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> initialResourceVersions_
-
responseNonce_
private java.lang.Object responseNonce_
-
errorDetail_
private com.google.rpc.Status errorDetail_
-
errorDetailBuilder_
private com.google.protobuf.SingleFieldBuilderV3<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder> errorDetailBuilder_
-
incremental_
private boolean incremental_
-
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- 覆盖:
internalGetMapField在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- 覆盖:
internalGetMutableMapField在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
clear
public Mcp.RequestResources.Builder clear()
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.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.RequestResources.Builder>
-
getDefaultInstanceForType
public Mcp.RequestResources getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public Mcp.RequestResources build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public Mcp.RequestResources buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Mcp.RequestResources result)
-
clone
public Mcp.RequestResources.Builder clone()
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
setField
public Mcp.RequestResources.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.RequestResources.Builder>
-
clearField
public Mcp.RequestResources.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
clearOneof
public Mcp.RequestResources.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
setRepeatedField
public Mcp.RequestResources.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.RequestResources.Builder>
-
addRepeatedField
public Mcp.RequestResources.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.RequestResources.Builder>
-
mergeFrom
public Mcp.RequestResources.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<Mcp.RequestResources.Builder>
-
mergeFrom
public Mcp.RequestResources.Builder mergeFrom(Mcp.RequestResources other)
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
mergeFrom
public Mcp.RequestResources.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.RequestResources.Builder>- 抛出:
java.io.IOException
-
hasSinkNode
public boolean hasSinkNode()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;- 指定者:
hasSinkNode在接口中Mcp.RequestResourcesOrBuilder- 返回:
- Whether the sinkNode field is set.
-
getSinkNode
public Mcp.SinkNode getSinkNode()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;- 指定者:
getSinkNode在接口中Mcp.RequestResourcesOrBuilder- 返回:
- The sinkNode.
-
setSinkNode
public Mcp.RequestResources.Builder setSinkNode(Mcp.SinkNode value)
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;
-
setSinkNode
public Mcp.RequestResources.Builder setSinkNode(Mcp.SinkNode.Builder builderForValue)
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;
-
mergeSinkNode
public Mcp.RequestResources.Builder mergeSinkNode(Mcp.SinkNode value)
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;
-
clearSinkNode
public Mcp.RequestResources.Builder clearSinkNode()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;
-
getSinkNodeBuilder
public Mcp.SinkNode.Builder getSinkNodeBuilder()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;
-
getSinkNodeOrBuilder
public Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;
-
getSinkNodeFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<Mcp.SinkNode,Mcp.SinkNode.Builder,Mcp.SinkNodeOrBuilder> getSinkNodeFieldBuilder()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;
-
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.RequestResourcesOrBuilder- 返回:
- 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.RequestResourcesOrBuilder- 返回:
- The bytes for collection.
-
setCollection
public Mcp.RequestResources.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.RequestResources.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.RequestResources.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.
-
internalGetInitialResourceVersions
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetInitialResourceVersions()
-
internalGetMutableInitialResourceVersions
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetMutableInitialResourceVersions()
-
getInitialResourceVersionsCount
public int getInitialResourceVersionsCount()
从接口复制的说明:Mcp.RequestResourcesOrBuilderWhen the RequestResources is the first in a stream, the initial_resource_versions must be populated. Otherwise, initial_resource_versions must be omitted. The keys are the resources names of the MCP resources known to the MCP client. The values in the map are the associated resource level version info.
map<string, string> initial_resource_versions = 3;
-
containsInitialResourceVersions
public boolean containsInitialResourceVersions(java.lang.String key)
When the RequestResources is the first in a stream, the initial_resource_versions must be populated. Otherwise, initial_resource_versions must be omitted. The keys are the resources names of the MCP resources known to the MCP client. The values in the map are the associated resource level version info.
map<string, string> initial_resource_versions = 3;
-
getInitialResourceVersions
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getInitialResourceVersions()
已过时。UsegetInitialResourceVersionsMap()instead.
-
getInitialResourceVersionsMap
public java.util.Map<java.lang.String,java.lang.String> getInitialResourceVersionsMap()
When the RequestResources is the first in a stream, the initial_resource_versions must be populated. Otherwise, initial_resource_versions must be omitted. The keys are the resources names of the MCP resources known to the MCP client. The values in the map are the associated resource level version info.
map<string, string> initial_resource_versions = 3;
-
getInitialResourceVersionsOrDefault
public java.lang.String getInitialResourceVersionsOrDefault(java.lang.String key, java.lang.String defaultValue)When the RequestResources is the first in a stream, the initial_resource_versions must be populated. Otherwise, initial_resource_versions must be omitted. The keys are the resources names of the MCP resources known to the MCP client. The values in the map are the associated resource level version info.
map<string, string> initial_resource_versions = 3;
-
getInitialResourceVersionsOrThrow
public java.lang.String getInitialResourceVersionsOrThrow(java.lang.String key)
When the RequestResources is the first in a stream, the initial_resource_versions must be populated. Otherwise, initial_resource_versions must be omitted. The keys are the resources names of the MCP resources known to the MCP client. The values in the map are the associated resource level version info.
map<string, string> initial_resource_versions = 3;
-
clearInitialResourceVersions
public Mcp.RequestResources.Builder clearInitialResourceVersions()
-
removeInitialResourceVersions
public Mcp.RequestResources.Builder removeInitialResourceVersions(java.lang.String key)
When the RequestResources is the first in a stream, the initial_resource_versions must be populated. Otherwise, initial_resource_versions must be omitted. The keys are the resources names of the MCP resources known to the MCP client. The values in the map are the associated resource level version info.
map<string, string> initial_resource_versions = 3;
-
getMutableInitialResourceVersions
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableInitialResourceVersions()
已过时。Use alternate mutation accessors instead.
-
putInitialResourceVersions
public Mcp.RequestResources.Builder putInitialResourceVersions(java.lang.String key, java.lang.String value)
When the RequestResources is the first in a stream, the initial_resource_versions must be populated. Otherwise, initial_resource_versions must be omitted. The keys are the resources names of the MCP resources known to the MCP client. The values in the map are the associated resource level version info.
map<string, string> initial_resource_versions = 3;
-
putAllInitialResourceVersions
public Mcp.RequestResources.Builder putAllInitialResourceVersions(java.util.Map<java.lang.String,java.lang.String> values)
When the RequestResources is the first in a stream, the initial_resource_versions must be populated. Otherwise, initial_resource_versions must be omitted. The keys are the resources names of the MCP resources known to the MCP client. The values in the map are the associated resource level version info.
map<string, string> initial_resource_versions = 3;
-
getResponseNonce
public java.lang.String getResponseNonce()
When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must be omitted.
string response_nonce = 4;- 指定者:
getResponseNonce在接口中Mcp.RequestResourcesOrBuilder- 返回:
- The responseNonce.
-
getResponseNonceBytes
public com.google.protobuf.ByteString getResponseNonceBytes()
When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must be omitted.
string response_nonce = 4;- 指定者:
getResponseNonceBytes在接口中Mcp.RequestResourcesOrBuilder- 返回:
- The bytes for responseNonce.
-
setResponseNonce
public Mcp.RequestResources.Builder setResponseNonce(java.lang.String value)
When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must be omitted.
string response_nonce = 4;- 参数:
value- The responseNonce to set.- 返回:
- This builder for chaining.
-
clearResponseNonce
public Mcp.RequestResources.Builder clearResponseNonce()
When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must be omitted.
string response_nonce = 4;- 返回:
- This builder for chaining.
-
setResponseNonceBytes
public Mcp.RequestResources.Builder setResponseNonceBytes(com.google.protobuf.ByteString value)
When the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must be omitted.
string response_nonce = 4;- 参数:
value- The bytes for responseNonce to set.- 返回:
- This builder for chaining.
-
hasErrorDetail
public boolean hasErrorDetail()
This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.
.google.rpc.Status error_detail = 5;- 指定者:
hasErrorDetail在接口中Mcp.RequestResourcesOrBuilder- 返回:
- Whether the errorDetail field is set.
-
getErrorDetail
public com.google.rpc.Status getErrorDetail()
This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.
.google.rpc.Status error_detail = 5;- 指定者:
getErrorDetail在接口中Mcp.RequestResourcesOrBuilder- 返回:
- The errorDetail.
-
setErrorDetail
public Mcp.RequestResources.Builder setErrorDetail(com.google.rpc.Status value)
This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.
.google.rpc.Status error_detail = 5;
-
setErrorDetail
public Mcp.RequestResources.Builder setErrorDetail(com.google.rpc.Status.Builder builderForValue)
This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.
.google.rpc.Status error_detail = 5;
-
mergeErrorDetail
public Mcp.RequestResources.Builder mergeErrorDetail(com.google.rpc.Status value)
This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.
.google.rpc.Status error_detail = 5;
-
clearErrorDetail
public Mcp.RequestResources.Builder clearErrorDetail()
This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.
.google.rpc.Status error_detail = 5;
-
getErrorDetailBuilder
public com.google.rpc.Status.Builder getErrorDetailBuilder()
This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.
.google.rpc.Status error_detail = 5;
-
getErrorDetailOrBuilder
public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder()
This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.
.google.rpc.Status error_detail = 5;
-
getErrorDetailFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder> getErrorDetailFieldBuilder()
This is populated when the previously received resources could not be applied The *message* field in *error_details* provides the source internal error related to the failure.
.google.rpc.Status error_detail = 5;
-
getIncremental
public boolean getIncremental()
Request an incremental update for the specified collection. The source may choose to honor this request or ignore and and provide a full-state update in the corresponding `Resource` response.
bool incremental = 6;- 指定者:
getIncremental在接口中Mcp.RequestResourcesOrBuilder- 返回:
- The incremental.
-
setIncremental
public Mcp.RequestResources.Builder setIncremental(boolean value)
Request an incremental update for the specified collection. The source may choose to honor this request or ignore and and provide a full-state update in the corresponding `Resource` response.
bool incremental = 6;- 参数:
value- The incremental to set.- 返回:
- This builder for chaining.
-
clearIncremental
public Mcp.RequestResources.Builder clearIncremental()
Request an incremental update for the specified collection. The source may choose to honor this request or ignore and and provide a full-state update in the corresponding `Resource` response.
bool incremental = 6;- 返回:
- This builder for chaining.
-
setUnknownFields
public final Mcp.RequestResources.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
mergeUnknownFields
public final Mcp.RequestResources.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>
-
-