类 Mcp.RequestResources

  • 所有已实现的接口:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Mcp.RequestResourcesOrBuilder, java.io.Serializable
    封闭类:
    Mcp

    public static final class Mcp.RequestResources
    extends com.google.protobuf.GeneratedMessageV3
    implements Mcp.RequestResourcesOrBuilder
     A RequestResource can be sent in two situations:
     Initial message in an MCP bidirectional change stream
     as an ACK or NACK response to a previous Resources. In
     this case the response_nonce is set to the nonce value
     in the Resources. ACK/NACK is determined by the presence
     of error_detail.
     * ACK  (nonce!="",error_details==nil)
     * NACK (nonce!="",error_details!=nil)
     * New/Update request (nonce=="",error_details ignored)
     
    Protobuf type istio.mcp.v1alpha1.RequestResources
    另请参阅:
    序列化表格
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      static class  Mcp.RequestResources.Builder
      A RequestResource can be sent in two situations: Initial message in an MCP bidirectional change stream as an ACK or NACK response to a previous Resources.
      private static class  Mcp.RequestResources.InitialResourceVersionsDefaultEntryHolder  
      • 从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • 从类继承的嵌套类/接口 com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 构造器概要

      构造器 
      限定符 构造器 说明
      private RequestResources()  
      private RequestResources​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)  
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 已过时的方法 
      修饰符和类型 方法 说明
      boolean containsInitialResourceVersions​(java.lang.String key)
      When the RequestResources is the first in a stream, the initial_resource_versions must be populated.
      boolean equals​(java.lang.Object obj)  
      java.lang.String getCollection()
      Type of resource collection that is being requested, e.g.
      com.google.protobuf.ByteString getCollectionBytes()
      Type of resource collection that is being requested, e.g.
      static Mcp.RequestResources getDefaultInstance()  
      Mcp.RequestResources getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      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.
      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.
      boolean getIncremental()
      Request an incremental update for the specified collection.
      java.util.Map<java.lang.String,​java.lang.String> getInitialResourceVersions()
      已过时。
      int getInitialResourceVersionsCount()
      When the RequestResources is the first in a stream, the initial_resource_versions must be populated.
      java.util.Map<java.lang.String,​java.lang.String> getInitialResourceVersionsMap()
      When the RequestResources is the first in a stream, the initial_resource_versions must be populated.
      java.lang.String getInitialResourceVersionsOrDefault​(java.lang.String key, java.lang.String defaultValue)
      When the RequestResources is the first in a stream, the initial_resource_versions must be populated.
      java.lang.String getInitialResourceVersionsOrThrow​(java.lang.String key)
      When the RequestResources is the first in a stream, the initial_resource_versions must be populated.
      com.google.protobuf.Parser<Mcp.RequestResources> getParserForType()  
      java.lang.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.
      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.
      int getSerializedSize()  
      Mcp.SinkNode getSinkNode()
      The sink node making the request.
      Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder()
      The sink node making the request.
      com.google.protobuf.UnknownFieldSet getUnknownFields()  
      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.
      int hashCode()  
      boolean hasSinkNode()
      The sink node making the request.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetInitialResourceVersions()  
      protected com.google.protobuf.MapField internalGetMapField​(int number)  
      boolean isInitialized()  
      static Mcp.RequestResources.Builder newBuilder()  
      static Mcp.RequestResources.Builder newBuilder​(Mcp.RequestResources prototype)  
      Mcp.RequestResources.Builder newBuilderForType()  
      protected Mcp.RequestResources.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static Mcp.RequestResources parseDelimitedFrom​(java.io.InputStream input)  
      static Mcp.RequestResources parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Mcp.RequestResources parseFrom​(byte[] data)  
      static Mcp.RequestResources parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Mcp.RequestResources parseFrom​(com.google.protobuf.ByteString data)  
      static Mcp.RequestResources parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Mcp.RequestResources parseFrom​(com.google.protobuf.CodedInputStream input)  
      static Mcp.RequestResources parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Mcp.RequestResources parseFrom​(java.io.InputStream input)  
      static Mcp.RequestResources parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static Mcp.RequestResources parseFrom​(java.nio.ByteBuffer data)  
      static Mcp.RequestResources parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<Mcp.RequestResources> parser()  
      Mcp.RequestResources.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • 从类继承的方法 com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, hasField, hasOneof
    • 字段详细资料

      • serialVersionUID

        private static final long serialVersionUID
        另请参阅:
        常量字段值
      • SINK_NODE_FIELD_NUMBER

        public static final int SINK_NODE_FIELD_NUMBER
        另请参阅:
        常量字段值
      • COLLECTION_FIELD_NUMBER

        public static final int COLLECTION_FIELD_NUMBER
        另请参阅:
        常量字段值
      • collection_

        private volatile java.lang.Object collection_
      • INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER

        public static final int INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • initialResourceVersions_

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> initialResourceVersions_
      • RESPONSE_NONCE_FIELD_NUMBER

        public static final int RESPONSE_NONCE_FIELD_NUMBER
        另请参阅:
        常量字段值
      • responseNonce_

        private volatile java.lang.Object responseNonce_
      • ERROR_DETAIL_FIELD_NUMBER

        public static final int ERROR_DETAIL_FIELD_NUMBER
        另请参阅:
        常量字段值
      • errorDetail_

        private com.google.rpc.Status errorDetail_
      • INCREMENTAL_FIELD_NUMBER

        public static final int INCREMENTAL_FIELD_NUMBER
        另请参阅:
        常量字段值
      • incremental_

        private boolean incremental_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
    • 构造器详细资料

      • RequestResources

        private RequestResources​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • RequestResources

        private RequestResources()
    • 方法详细资料

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        覆盖:
        newInstance 在类中 com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        指定者:
        getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        覆盖:
        internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

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

        public boolean hasSinkNode()
         The sink node making the request.
         
        .istio.mcp.v1alpha1.SinkNode sink_node = 1;
        指定者:
        hasSinkNode 在接口中 Mcp.RequestResourcesOrBuilder
        返回:
        Whether the sinkNode field is set.
      • getCollection

        public java.lang.String getCollection()
         Type of resource collection that is being requested, e.g.
         istio/networking/v1alpha3/VirtualService
         k8s/<apiVersion>/<kind>
         
        string collection = 2;
        指定者:
        getCollection 在接口中 Mcp.RequestResourcesOrBuilder
        返回:
        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.RequestResourcesOrBuilder
        返回:
        The bytes for collection.
      • internalGetInitialResourceVersions

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetInitialResourceVersions()
      • getInitialResourceVersionsCount

        public int getInitialResourceVersionsCount()
        从接口复制的说明: Mcp.RequestResourcesOrBuilder
         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;
        指定者:
        getInitialResourceVersionsCount 在接口中 Mcp.RequestResourcesOrBuilder
      • containsInitialResourceVersions

        public boolean containsInitialResourceVersions​(java.lang.String key)
         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 在接口中 Mcp.RequestResourcesOrBuilder
      • getInitialResourceVersionsMap

        public java.util.Map<java.lang.String,​java.lang.String> 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;
        指定者:
        getInitialResourceVersionsMap 在接口中 Mcp.RequestResourcesOrBuilder
      • getInitialResourceVersionsOrDefault

        public java.lang.String getInitialResourceVersionsOrDefault​(java.lang.String key,
                                                                    java.lang.String defaultValue)
         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 在接口中 Mcp.RequestResourcesOrBuilder
      • getInitialResourceVersionsOrThrow

        public java.lang.String getInitialResourceVersionsOrThrow​(java.lang.String key)
         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 在接口中 Mcp.RequestResourcesOrBuilder
      • getResponseNonce

        public java.lang.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;
        指定者:
        getResponseNonce 在接口中 Mcp.RequestResourcesOrBuilder
        返回:
        The responseNonce.
      • getResponseNonceBytes

        public 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;
        指定者:
        getResponseNonceBytes 在接口中 Mcp.RequestResourcesOrBuilder
        返回:
        The bytes for responseNonce.
      • hasErrorDetail

        public 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;
        指定者:
        hasErrorDetail 在接口中 Mcp.RequestResourcesOrBuilder
        返回:
        Whether the errorDetail field is set.
      • getErrorDetail

        public 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;
        指定者:
        getErrorDetail 在接口中 Mcp.RequestResourcesOrBuilder
        返回:
        The errorDetail.
      • getErrorDetailOrBuilder

        public 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;
        指定者:
        getErrorDetailOrBuilder 在接口中 Mcp.RequestResourcesOrBuilder
      • getIncremental

        public 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;
        指定者:
        getIncremental 在接口中 Mcp.RequestResourcesOrBuilder
        返回:
        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 java.io.IOException
        指定者:
        writeTo 在接口中 com.google.protobuf.MessageLite
        覆盖:
        writeTo 在类中 com.google.protobuf.GeneratedMessageV3
        抛出:
        java.io.IOException
      • getSerializedSize

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

        public boolean equals​(java.lang.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.RequestResources parseFrom​(java.nio.ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static Mcp.RequestResources parseFrom​(java.io.InputStream input)
                                              throws java.io.IOException
        抛出:
        java.io.IOException
      • parseFrom

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

        public static Mcp.RequestResources parseDelimitedFrom​(java.io.InputStream input)
                                                       throws java.io.IOException
        抛出:
        java.io.IOException
      • parseDelimitedFrom

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

        public static Mcp.RequestResources parseFrom​(com.google.protobuf.CodedInputStream input)
                                              throws java.io.IOException
        抛出:
        java.io.IOException
      • parseFrom

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

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

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

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

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

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