接口 Mcp.RequestResourcesOrBuilder
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 封闭类:
Mcp
public static interface Mcp.RequestResourcesOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
修饰符和类型方法说明booleanWhen the RequestResources is the first in a stream, the initial_resource_versions must be populated.Type of resource collection that is being requested, e.g.com.google.protobuf.ByteStringType of resource collection that is being requested, e.g.com.google.rpc.StatusThis 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.StatusOrBuilderThis 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.booleanRequest an incremental update for the specified collection.已过时。intWhen the RequestResources is the first in a stream, the initial_resource_versions must be populated.When the RequestResources is the first in a stream, the initial_resource_versions must be populated.getInitialResourceVersionsOrDefault(String key, String defaultValue) When the RequestResources is the first in a stream, the initial_resource_versions must be populated.When the RequestResources is the first in a stream, the initial_resource_versions must be populated.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.ByteStringWhen the RequestResources is an ACK or NACK message in response to a previous RequestResources, the response_nonce must be the nonce in the RequestResources.The sink node making the request.The sink node making the request.booleanThis 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.booleanThe sink node making the request.从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder
isInitialized从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
hasSinkNode
boolean hasSinkNode()The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;- 返回:
- Whether the sinkNode field is set.
-
getSinkNode
Mcp.SinkNode getSinkNode()The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;- 返回:
- The sinkNode.
-
getSinkNodeOrBuilder
Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder()The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1; -
getCollection
String getCollection()Type of resource collection that is being requested, e.g. istio/networking/v1alpha3/VirtualService k8s/<apiVersion>/<kind>
string collection = 2;- 返回:
- The collection.
-
getCollectionBytes
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;- 返回:
- The bytes for collection.
-
getInitialResourceVersionsCount
int getInitialResourceVersionsCount()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; -
containsInitialResourceVersions
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
已过时。UsegetInitialResourceVersionsMap()instead. -
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
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
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
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;- 返回:
- The responseNonce.
-
getResponseNonceBytes
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;- 返回:
- The bytes for responseNonce.
-
hasErrorDetail
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;- 返回:
- Whether the errorDetail field is set.
-
getErrorDetail
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;- 返回:
- The errorDetail.
-
getErrorDetailOrBuilder
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; -
getIncremental
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;- 返回:
- The incremental.
-