接口 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
  • 方法详细资料

    • 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

      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

      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

      List<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

      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

      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.