类 Mcp.Resources

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
istio.mcp.v1alpha1.Mcp.Resources
所有已实现的接口:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Mcp.ResourcesOrBuilder, Serializable
封闭类:
Mcp

public static final class Mcp.Resources extends com.google.protobuf.GeneratedMessageV3 implements Mcp.ResourcesOrBuilder
 Resources do not need to include a full snapshot of the tracked
 resources. Instead they are a diff to the state of a MCP client.
 Per resource versions allow sources and sinks to track state at
 the resource granularity. An MCP incremental session is always
 in the context of a gRPC bidirectional stream. This allows the
 MCP source to keep track of the state of MCP sink connected to
 it.

 In Incremental MCP the nonce field is required and used to pair
 Resources to an RequestResources ACK or NACK.
 
Protobuf type istio.mcp.v1alpha1.Resources
另请参阅:
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static final class 
    Resources do not need to include a full snapshot of the tracked resources.

    从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    从类继承的嵌套类/接口 com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    从类继承的字段 com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    从类继承的字段 com.google.protobuf.AbstractMessage

    memoizedSize

    从类继承的字段 com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
     
    Type of resource collection that is being requested, e.g.
    com.google.protobuf.ByteString
    Type of resource collection that is being requested, e.g.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    boolean
    This resource response is an incremental update.
    Required.
    com.google.protobuf.ByteString
    Required.
    com.google.protobuf.Parser<Mcp.Resources>
     
    Names of resources that have been deleted and to be removed from the MCP sink node.
    com.google.protobuf.ByteString
    Names of resources that have been deleted and to be removed from the MCP sink node.
    int
    Names of resources that have been deleted and to be removed from the MCP sink node.
    com.google.protobuf.ProtocolStringList
    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.
    int
    The response resources wrapped in the common MCP *Resource* message.
    The response resources wrapped in the common MCP *Resource* message.
    The response resources wrapped in the common MCP *Resource* message.
    The response resources wrapped in the common MCP *Resource* message.
    int
     
    The version of the response data (used for debugging).
    com.google.protobuf.ByteString
    The version of the response data (used for debugging).
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Mcp.Resources>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    从类继承的方法 com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    从类继承的方法 com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    从类继承的方法 com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    从接口继承的方法 com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    从接口继承的方法 com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 字段详细资料

    • SYSTEM_VERSION_INFO_FIELD_NUMBER

      public static final int SYSTEM_VERSION_INFO_FIELD_NUMBER
      另请参阅:
    • COLLECTION_FIELD_NUMBER

      public static final int COLLECTION_FIELD_NUMBER
      另请参阅:
    • RESOURCES_FIELD_NUMBER

      public static final int RESOURCES_FIELD_NUMBER
      另请参阅:
    • REMOVED_RESOURCES_FIELD_NUMBER

      public static final int REMOVED_RESOURCES_FIELD_NUMBER
      另请参阅:
    • NONCE_FIELD_NUMBER

      public static final int NONCE_FIELD_NUMBER
      另请参阅:
    • INCREMENTAL_FIELD_NUMBER

      public static final int INCREMENTAL_FIELD_NUMBER
      另请参阅:
  • 方法详细资料

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      覆盖:
      newInstance 在类中 com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
    • getSystemVersionInfo

      public String getSystemVersionInfo()
       The version of the response data (used for debugging).
       
      string system_version_info = 1;
      指定者:
      getSystemVersionInfo 在接口中 Mcp.ResourcesOrBuilder
      返回:
      The systemVersionInfo.
    • getSystemVersionInfoBytes

      public com.google.protobuf.ByteString getSystemVersionInfoBytes()
       The version of the response data (used for debugging).
       
      string system_version_info = 1;
      指定者:
      getSystemVersionInfoBytes 在接口中 Mcp.ResourcesOrBuilder
      返回:
      The bytes for systemVersionInfo.
    • getCollection

      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.ResourcesOrBuilder
      返回:
      The collection.
    • getCollectionBytes

      public 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.ResourcesOrBuilder
      返回:
      The bytes for collection.
    • getResourcesList

      public 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];
      指定者:
      getResourcesList 在接口中 Mcp.ResourcesOrBuilder
    • getResourcesOrBuilderList

      public 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];
      指定者:
      getResourcesOrBuilderList 在接口中 Mcp.ResourcesOrBuilder
    • getResourcesCount

      public 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];
      指定者:
      getResourcesCount 在接口中 Mcp.ResourcesOrBuilder
    • getResources

      public 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];
      指定者:
      getResources 在接口中 Mcp.ResourcesOrBuilder
    • getResourcesOrBuilder

      public 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];
      指定者:
      getResourcesOrBuilder 在接口中 Mcp.ResourcesOrBuilder
    • getRemovedResourcesList

      public com.google.protobuf.ProtocolStringList 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;
      指定者:
      getRemovedResourcesList 在接口中 Mcp.ResourcesOrBuilder
      返回:
      A list containing the removedResources.
    • getRemovedResourcesCount

      public 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;
      指定者:
      getRemovedResourcesCount 在接口中 Mcp.ResourcesOrBuilder
      返回:
      The count of removedResources.
    • getRemovedResources

      public 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;
      指定者:
      getRemovedResources 在接口中 Mcp.ResourcesOrBuilder
      参数:
      index - The index of the element to return.
      返回:
      The removedResources at the given index.
    • getRemovedResourcesBytes

      public 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;
      指定者:
      getRemovedResourcesBytes 在接口中 Mcp.ResourcesOrBuilder
      参数:
      index - The index of the value to return.
      返回:
      The bytes of the removedResources at the given index.
    • getNonce

      public String getNonce()
       Required. The nonce provides a way for RequestChange to uniquely
       reference a RequestResources.
       
      string nonce = 5;
      指定者:
      getNonce 在接口中 Mcp.ResourcesOrBuilder
      返回:
      The nonce.
    • getNonceBytes

      public com.google.protobuf.ByteString getNonceBytes()
       Required. The nonce provides a way for RequestChange to uniquely
       reference a RequestResources.
       
      string nonce = 5;
      指定者:
      getNonceBytes 在接口中 Mcp.ResourcesOrBuilder
      返回:
      The bytes for nonce.
    • getIncremental

      public boolean getIncremental()
       This resource response is an incremental update. The source should only send
       incremental updates if the sink requested them.
       
      bool incremental = 6;
      指定者:
      getIncremental 在接口中 Mcp.ResourcesOrBuilder
      返回:
      The incremental.
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      指定者:
      writeTo 在接口中 com.google.protobuf.MessageLite
      覆盖:
      writeTo 在类中 com.google.protobuf.GeneratedMessageV3
      抛出:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      指定者:
      getSerializedSize 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      指定者:
      equals 在接口中 com.google.protobuf.Message
      覆盖:
      equals 在类中 com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      指定者:
      hashCode 在接口中 com.google.protobuf.Message
      覆盖:
      hashCode 在类中 com.google.protobuf.AbstractMessage
    • parseFrom

      public static Mcp.Resources parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Mcp.Resources parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Mcp.Resources parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Mcp.Resources parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Mcp.Resources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Mcp.Resources parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Mcp.Resources parseFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static Mcp.Resources parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static Mcp.Resources parseDelimitedFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static Mcp.Resources parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseFrom

      public static Mcp.Resources parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static Mcp.Resources parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • newBuilderForType

      public Mcp.Resources.Builder newBuilderForType()
      指定者:
      newBuilderForType 在接口中 com.google.protobuf.Message
      指定者:
      newBuilderForType 在接口中 com.google.protobuf.MessageLite
    • newBuilder

      public static Mcp.Resources.Builder newBuilder()
    • newBuilder

      public static Mcp.Resources.Builder newBuilder(Mcp.Resources prototype)
    • toBuilder

      public Mcp.Resources.Builder toBuilder()
      指定者:
      toBuilder 在接口中 com.google.protobuf.Message
      指定者:
      toBuilder 在接口中 com.google.protobuf.MessageLite
    • newBuilderForType

      protected Mcp.Resources.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      指定者:
      newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Mcp.Resources getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Mcp.Resources> parser()
    • getParserForType

      public com.google.protobuf.Parser<Mcp.Resources> getParserForType()
      指定者:
      getParserForType 在接口中 com.google.protobuf.Message
      指定者:
      getParserForType 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Mcp.Resources getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder