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 type
istio.mcp.v1alpha1.RequestResources| 限定符和类型 | 方法和说明 |
|---|---|
Mcp.RequestResources.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Mcp.RequestResources |
build() |
Mcp.RequestResources |
buildPartial() |
Mcp.RequestResources.Builder |
clear() |
Mcp.RequestResources.Builder |
clearCollection()
Type of resource collection that is being requested, e.g.
|
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.
|
Mcp.RequestResources.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Mcp.RequestResources.Builder |
clearIncremental()
Request an incremental update for the specified collection.
|
Mcp.RequestResources.Builder |
clearInitialResourceVersions() |
Mcp.RequestResources.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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.
|
Mcp.RequestResources.Builder |
clearSinkNode()
The sink node making the request.
|
Mcp.RequestResources.Builder |
clone() |
boolean |
containsInitialResourceVersions(String key)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
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.RequestResources |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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.
|
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.
|
boolean |
getIncremental()
Request an incremental update for the specified collection.
|
Map<String,String> |
getInitialResourceVersions()
已过时。
|
int |
getInitialResourceVersionsCount()
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
Map<String,String> |
getInitialResourceVersionsMap()
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
String |
getInitialResourceVersionsOrDefault(String key,
String defaultValue)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
String |
getInitialResourceVersionsOrThrow(String key)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
Map<String,String> |
getMutableInitialResourceVersions()
已过时。
|
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.
|
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.
|
Mcp.SinkNode |
getSinkNode()
The sink node making the request.
|
Mcp.SinkNode.Builder |
getSinkNodeBuilder()
The sink node making the request.
|
Mcp.SinkNodeOrBuilder |
getSinkNodeOrBuilder()
The sink node making the request.
|
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.
|
boolean |
hasSinkNode()
The sink node making the request.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
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.
|
Mcp.RequestResources.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Mcp.RequestResources.Builder |
mergeFrom(Mcp.RequestResources other) |
Mcp.RequestResources.Builder |
mergeFrom(com.google.protobuf.Message other) |
Mcp.RequestResources.Builder |
mergeSinkNode(Mcp.SinkNode value)
The sink node making the request.
|
Mcp.RequestResources.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Mcp.RequestResources.Builder |
putAllInitialResourceVersions(Map<String,String> values)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
Mcp.RequestResources.Builder |
putInitialResourceVersions(String key,
String value)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
Mcp.RequestResources.Builder |
removeInitialResourceVersions(String key)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
Mcp.RequestResources.Builder |
setCollection(String value)
Type of resource collection that is being requested, e.g.
|
Mcp.RequestResources.Builder |
setCollectionBytes(com.google.protobuf.ByteString value)
Type of resource collection that is being requested, e.g.
|
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.
|
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.
|
Mcp.RequestResources.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Mcp.RequestResources.Builder |
setIncremental(boolean value)
Request an incremental update for the specified collection.
|
Mcp.RequestResources.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Mcp.RequestResources.Builder |
setResponseNonce(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.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.
|
Mcp.RequestResources.Builder |
setSinkNode(Mcp.SinkNode.Builder builderForValue)
The sink node making the request.
|
Mcp.RequestResources.Builder |
setSinkNode(Mcp.SinkNode value)
The sink node making the request.
|
Mcp.RequestResources.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic Mcp.RequestResources build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic Mcp.RequestResources buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic Mcp.RequestResources.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources.Builder mergeFrom(Mcp.RequestResources other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public Mcp.RequestResources.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.RequestResources.Builder>IOExceptionpublic boolean hasSinkNode()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;hasSinkNode 在接口中 Mcp.RequestResourcesOrBuilderpublic Mcp.SinkNode getSinkNode()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;getSinkNode 在接口中 Mcp.RequestResourcesOrBuilderpublic Mcp.RequestResources.Builder setSinkNode(Mcp.SinkNode value)
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;public Mcp.RequestResources.Builder setSinkNode(Mcp.SinkNode.Builder builderForValue)
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;public Mcp.RequestResources.Builder mergeSinkNode(Mcp.SinkNode value)
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;public Mcp.RequestResources.Builder clearSinkNode()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;public Mcp.SinkNode.Builder getSinkNodeBuilder()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;public Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;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.RequestResourcesOrBuilderpublic 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.RequestResourcesOrBuilderpublic Mcp.RequestResources.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.RequestResources.Builder clearCollection()
Type of resource collection that is being requested, e.g. istio/networking/v1alpha3/VirtualService k8s/<apiVersion>/<kind>
string collection = 2;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.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;public boolean containsInitialResourceVersions(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;@Deprecated public Map<String,String> getInitialResourceVersions()
getInitialResourceVersionsMap() instead.public Map<String,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;public String getInitialResourceVersionsOrDefault(String key, 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;public String getInitialResourceVersionsOrThrow(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;public Mcp.RequestResources.Builder clearInitialResourceVersions()
public Mcp.RequestResources.Builder removeInitialResourceVersions(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;@Deprecated public Map<String,String> getMutableInitialResourceVersions()
public Mcp.RequestResources.Builder putInitialResourceVersions(String key, 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;public Mcp.RequestResources.Builder putAllInitialResourceVersions(Map<String,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;public 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.RequestResourcesOrBuilderpublic 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.RequestResourcesOrBuilderpublic Mcp.RequestResources.Builder setResponseNonce(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.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;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.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.RequestResourcesOrBuilderpublic 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.RequestResourcesOrBuilderpublic 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;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;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;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;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;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;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.RequestResourcesOrBuilderpublic 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.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;public final Mcp.RequestResources.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>public final Mcp.RequestResources.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.RequestResources.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.