接口 Mcp.ResourcesOrBuilder
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 所有已知实现类:
Mcp.Resources,Mcp.Resources.Builder
- 封闭类:
Mcp
public static interface Mcp.ResourcesOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
修饰符和类型方法说明Type of resource collection that is being requested, e.g.com.google.protobuf.ByteStringType of resource collection that is being requested, e.g.booleanThis resource response is an incremental update.getNonce()Required.com.google.protobuf.ByteStringRequired.getRemovedResources(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.intNames of resources that have been deleted and to be removed from the MCP sink node.Names of resources that have been deleted and to be removed from the MCP sink node.getResources(int index) The response resources wrapped in the common MCP *Resource* message.intThe response resources wrapped in the common MCP *Resource* message.The response resources wrapped in the common MCP *Resource* message.getResourcesOrBuilder(int index) The response resources wrapped in the common MCP *Resource* message.List<? extends ResourceOuterClass.ResourceOrBuilder> The response resources wrapped in the common MCP *Resource* message.The version of the response data (used for debugging).com.google.protobuf.ByteStringThe version of the response data (used for debugging).从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder
isInitialized从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getSystemVersionInfo
String getSystemVersionInfo()The version of the response data (used for debugging).
string system_version_info = 1;- 返回:
- The systemVersionInfo.
-
getSystemVersionInfoBytes
com.google.protobuf.ByteString getSystemVersionInfoBytes()The version of the response data (used for debugging).
string system_version_info = 1;- 返回:
- The bytes for systemVersionInfo.
-
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.
-
getResourcesList
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]; -
getResources
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
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]; -
getResourcesOrBuilderList
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]; -
getResourcesOrBuilder
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]; -
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;- 返回:
- A list containing the removedResources.
-
getRemovedResourcesCount
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;- 返回:
- The count of removedResources.
-
getRemovedResources
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 of the element to return.- 返回:
- The removedResources at the given index.
-
getRemovedResourcesBytes
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;- 参数:
index- The index of the value to return.- 返回:
- The bytes of the removedResources at the given index.
-
getNonce
String getNonce()Required. The nonce provides a way for RequestChange to uniquely reference a RequestResources.
string nonce = 5;- 返回:
- The nonce.
-
getNonceBytes
com.google.protobuf.ByteString getNonceBytes()Required. The nonce provides a way for RequestChange to uniquely reference a RequestResources.
string nonce = 5;- 返回:
- The bytes for nonce.
-
getIncremental
boolean getIncremental()This resource response is an incremental update. The source should only send incremental updates if the sink requested them.
bool incremental = 6;- 返回:
- The incremental.
-