类 Mcp.IncrementalMeshConfigResponse.Builder

  • 所有已实现的接口:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Mcp.IncrementalMeshConfigResponseOrBuilder, java.lang.Cloneable
    封闭类:
    Mcp.IncrementalMeshConfigResponse

    public static final class Mcp.IncrementalMeshConfigResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Mcp.IncrementalMeshConfigResponse.Builder>
    implements Mcp.IncrementalMeshConfigResponseOrBuilder
     IncrementalMeshConfigResponses 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 servers and
     clients 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 server to keep track of
     the state of MCP clients connected to it.
     In Incremental MCP the nonce field is required and used to pair
     IncrementalMeshConfigResponse to an IncrementalMeshConfigRequest
     ACK or NACK.  Optionally, a response message level
     system_version_info is present for debugging purposes only.
     
    Protobuf type istio.mcp.v1alpha1.IncrementalMeshConfigResponse
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 方法详细资料

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.IncrementalMeshConfigResponse.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        指定者:
        getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
        指定者:
        getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.IncrementalMeshConfigResponse.Builder>
      • getDefaultInstanceForType

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

        public Mcp.IncrementalMeshConfigResponse build()
        指定者:
        build 在接口中 com.google.protobuf.Message.Builder
        指定者:
        build 在接口中 com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Mcp.IncrementalMeshConfigResponse buildPartial()
        指定者:
        buildPartial 在接口中 com.google.protobuf.Message.Builder
        指定者:
        buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.IncrementalMeshConfigResponse.Builder>
      • mergeFrom

        public Mcp.IncrementalMeshConfigResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws java.io.IOException
        指定者:
        mergeFrom 在接口中 com.google.protobuf.Message.Builder
        指定者:
        mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
        覆盖:
        mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Mcp.IncrementalMeshConfigResponse.Builder>
        抛出:
        java.io.IOException
      • setSystemVersionInfo

        public Mcp.IncrementalMeshConfigResponse.Builder setSystemVersionInfo​(java.lang.String value)
         The version of the response data (used for debugging).
         
        string system_version_info = 1;
        参数:
        value - The systemVersionInfo to set.
        返回:
        This builder for chaining.
      • clearSystemVersionInfo

        public Mcp.IncrementalMeshConfigResponse.Builder clearSystemVersionInfo()
         The version of the response data (used for debugging).
         
        string system_version_info = 1;
        返回:
        This builder for chaining.
      • setSystemVersionInfoBytes

        public Mcp.IncrementalMeshConfigResponse.Builder setSystemVersionInfoBytes​(com.google.protobuf.ByteString value)
         The version of the response data (used for debugging).
         
        string system_version_info = 1;
        参数:
        value - The bytes for systemVersionInfo to set.
        返回:
        This builder for chaining.
      • ensureResourcesIsMutable

        private void ensureResourcesIsMutable()
      • 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
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
        指定者:
        getResourcesCount 在接口中 Mcp.IncrementalMeshConfigResponseOrBuilder
      • setResources

        public Mcp.IncrementalMeshConfigResponse.Builder setResources​(int index,
                                                                      ResourceOuterClass.Resource value)
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • setResources

        public Mcp.IncrementalMeshConfigResponse.Builder setResources​(int index,
                                                                      ResourceOuterClass.Resource.Builder builderForValue)
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • addResources

        public Mcp.IncrementalMeshConfigResponse.Builder addResources​(ResourceOuterClass.Resource value)
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • addResources

        public Mcp.IncrementalMeshConfigResponse.Builder addResources​(int index,
                                                                      ResourceOuterClass.Resource value)
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • addResources

        public Mcp.IncrementalMeshConfigResponse.Builder addResources​(int index,
                                                                      ResourceOuterClass.Resource.Builder builderForValue)
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • addAllResources

        public Mcp.IncrementalMeshConfigResponse.Builder addAllResources​(java.lang.Iterable<? extends ResourceOuterClass.Resource> values)
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • clearResources

        public Mcp.IncrementalMeshConfigResponse.Builder clearResources()
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • removeResources

        public Mcp.IncrementalMeshConfigResponse.Builder removeResources​(int index)
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • getResourcesBuilder

        public ResourceOuterClass.Resource.Builder getResourcesBuilder​(int index)
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • addResourcesBuilder

        public ResourceOuterClass.Resource.Builder addResourcesBuilder()
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • addResourcesBuilder

        public ResourceOuterClass.Resource.Builder addResourcesBuilder​(int index)
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • getResourcesBuilderList

        public java.util.List<ResourceOuterClass.Resource.Builder> getResourcesBuilderList()
         The response resources wrapped in the common MCP *Resource*
         message. These are typed resources that match the type url in the
         IncrementalMeshConfigRequest.
         
        repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
      • ensureRemovedResourcesIsMutable

        private void ensureRemovedResourcesIsMutable()
      • getRemovedResourcesList

        public com.google.protobuf.ProtocolStringList getRemovedResourcesList()
         Resources names of resources that have be deleted and to be
         removed from the MCP Client.  Removed resources for missing
         resources can be ignored.
         
        repeated string removed_resources = 3;
        指定者:
        getRemovedResourcesList 在接口中 Mcp.IncrementalMeshConfigResponseOrBuilder
        返回:
        A list containing the removedResources.
      • getRemovedResourcesCount

        public int getRemovedResourcesCount()
         Resources names of resources that have be deleted and to be
         removed from the MCP Client.  Removed resources for missing
         resources can be ignored.
         
        repeated string removed_resources = 3;
        指定者:
        getRemovedResourcesCount 在接口中 Mcp.IncrementalMeshConfigResponseOrBuilder
        返回:
        The count of removedResources.
      • getRemovedResources

        public java.lang.String getRemovedResources​(int index)
         Resources names of resources that have be deleted and to be
         removed from the MCP Client.  Removed resources for missing
         resources can be ignored.
         
        repeated string removed_resources = 3;
        指定者:
        getRemovedResources 在接口中 Mcp.IncrementalMeshConfigResponseOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The removedResources at the given index.
      • getRemovedResourcesBytes

        public com.google.protobuf.ByteString getRemovedResourcesBytes​(int index)
         Resources names of resources that have be deleted and to be
         removed from the MCP Client.  Removed resources for missing
         resources can be ignored.
         
        repeated string removed_resources = 3;
        指定者:
        getRemovedResourcesBytes 在接口中 Mcp.IncrementalMeshConfigResponseOrBuilder
        参数:
        index - The index of the value to return.
        返回:
        The bytes of the removedResources at the given index.
      • setRemovedResources

        public Mcp.IncrementalMeshConfigResponse.Builder setRemovedResources​(int index,
                                                                             java.lang.String value)
         Resources names of resources that have be deleted and to be
         removed from the MCP Client.  Removed resources for missing
         resources can be ignored.
         
        repeated string removed_resources = 3;
        参数:
        index - The index to set the value at.
        value - The removedResources to set.
        返回:
        This builder for chaining.
      • addRemovedResources

        public Mcp.IncrementalMeshConfigResponse.Builder addRemovedResources​(java.lang.String value)
         Resources names of resources that have be deleted and to be
         removed from the MCP Client.  Removed resources for missing
         resources can be ignored.
         
        repeated string removed_resources = 3;
        参数:
        value - The removedResources to add.
        返回:
        This builder for chaining.
      • addAllRemovedResources

        public Mcp.IncrementalMeshConfigResponse.Builder addAllRemovedResources​(java.lang.Iterable<java.lang.String> values)
         Resources names of resources that have be deleted and to be
         removed from the MCP Client.  Removed resources for missing
         resources can be ignored.
         
        repeated string removed_resources = 3;
        参数:
        values - The removedResources to add.
        返回:
        This builder for chaining.
      • clearRemovedResources

        public Mcp.IncrementalMeshConfigResponse.Builder clearRemovedResources()
         Resources names of resources that have be deleted and to be
         removed from the MCP Client.  Removed resources for missing
         resources can be ignored.
         
        repeated string removed_resources = 3;
        返回:
        This builder for chaining.
      • addRemovedResourcesBytes

        public Mcp.IncrementalMeshConfigResponse.Builder addRemovedResourcesBytes​(com.google.protobuf.ByteString value)
         Resources names of resources that have be deleted and to be
         removed from the MCP Client.  Removed resources for missing
         resources can be ignored.
         
        repeated string removed_resources = 3;
        参数:
        value - The bytes of the removedResources to add.
        返回:
        This builder for chaining.
      • getNonce

        public java.lang.String getNonce()
         The nonce provides a way for IncrementalMeshConfigRequests to
         uniquely reference an IncrementalMeshConfigResponse. The nonce is
         required.
         
        string nonce = 4;
        指定者:
        getNonce 在接口中 Mcp.IncrementalMeshConfigResponseOrBuilder
        返回:
        The nonce.
      • getNonceBytes

        public com.google.protobuf.ByteString getNonceBytes()
         The nonce provides a way for IncrementalMeshConfigRequests to
         uniquely reference an IncrementalMeshConfigResponse. The nonce is
         required.
         
        string nonce = 4;
        指定者:
        getNonceBytes 在接口中 Mcp.IncrementalMeshConfigResponseOrBuilder
        返回:
        The bytes for nonce.
      • setNonce

        public Mcp.IncrementalMeshConfigResponse.Builder setNonce​(java.lang.String value)
         The nonce provides a way for IncrementalMeshConfigRequests to
         uniquely reference an IncrementalMeshConfigResponse. The nonce is
         required.
         
        string nonce = 4;
        参数:
        value - The nonce to set.
        返回:
        This builder for chaining.
      • clearNonce

        public Mcp.IncrementalMeshConfigResponse.Builder clearNonce()
         The nonce provides a way for IncrementalMeshConfigRequests to
         uniquely reference an IncrementalMeshConfigResponse. The nonce is
         required.
         
        string nonce = 4;
        返回:
        This builder for chaining.
      • setNonceBytes

        public Mcp.IncrementalMeshConfigResponse.Builder setNonceBytes​(com.google.protobuf.ByteString value)
         The nonce provides a way for IncrementalMeshConfigRequests to
         uniquely reference an IncrementalMeshConfigResponse. The nonce is
         required.
         
        string nonce = 4;
        参数:
        value - The bytes for nonce to set.
        返回:
        This builder for chaining.