接口 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
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.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.java.util.List<java.lang.String>getRemovedResourcesList()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.intgetResourcesCount()The response resources wrapped in the common MCP *Resource* message.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).
-
-
-
方法详细资料
-
getSystemVersionInfo
java.lang.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
java.lang.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
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];
-
getResources
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];
-
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
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];
-
getResourcesOrBuilder
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];
-
getRemovedResourcesList
java.util.List<java.lang.String> 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
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;- 参数:
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
java.lang.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.
-
-