类 Mcp.IncrementalMeshConfigRequest.Builder

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

    public static final class Mcp.IncrementalMeshConfigRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Mcp.IncrementalMeshConfigRequest.Builder>
    implements Mcp.IncrementalMeshConfigRequestOrBuilder
     IncrementalMeshConfigRequest are be sent in 2 situations:
       1. Initial message in a MCP bidirectional gRPC stream.
       2. As a ACK or NACK response to a previous IncrementalMeshConfigResponse.
          In this case the response_nonce is set to the nonce value in the Response.
          ACK or NACK is determined by the absence or presence of error_detail.
     
    Protobuf type istio.mcp.v1alpha1.IncrementalMeshConfigRequest
    • 字段详细资料

      • bitField0_

        private int bitField0_
      • typeUrl_

        private java.lang.Object typeUrl_
      • initialResourceVersions_

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

        private java.lang.Object responseNonce_
      • errorDetail_

        private com.google.rpc.Status errorDetail_
      • errorDetailBuilder_

        private com.google.protobuf.SingleFieldBuilderV3<com.google.rpc.Status,​com.google.rpc.Status.Builder,​com.google.rpc.StatusOrBuilder> errorDetailBuilder_
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

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

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        覆盖:
        internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.IncrementalMeshConfigRequest.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        覆盖:
        internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.IncrementalMeshConfigRequest.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Mcp.IncrementalMeshConfigRequest.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.IncrementalMeshConfigRequest.Builder>
      • getDefaultInstanceForType

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

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

        public Mcp.IncrementalMeshConfigRequest 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.IncrementalMeshConfigRequest.Builder>
      • mergeFrom

        public Mcp.IncrementalMeshConfigRequest.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.IncrementalMeshConfigRequest.Builder>
        抛出:
        java.io.IOException
      • getSinkNodeBuilder

        public Mcp.SinkNode.Builder getSinkNodeBuilder()
         The sink node making the request.
         
        .istio.mcp.v1alpha1.SinkNode sink_node = 1;
      • getTypeUrl

        public java.lang.String getTypeUrl()
         Type of the resource that is being requested, e.g.
         "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
         
        string type_url = 2;
        指定者:
        getTypeUrl 在接口中 Mcp.IncrementalMeshConfigRequestOrBuilder
        返回:
        The typeUrl.
      • getTypeUrlBytes

        public com.google.protobuf.ByteString getTypeUrlBytes()
         Type of the resource that is being requested, e.g.
         "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
         
        string type_url = 2;
        指定者:
        getTypeUrlBytes 在接口中 Mcp.IncrementalMeshConfigRequestOrBuilder
        返回:
        The bytes for typeUrl.
      • setTypeUrl

        public Mcp.IncrementalMeshConfigRequest.Builder setTypeUrl​(java.lang.String value)
         Type of the resource that is being requested, e.g.
         "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
         
        string type_url = 2;
        参数:
        value - The typeUrl to set.
        返回:
        This builder for chaining.
      • clearTypeUrl

        public Mcp.IncrementalMeshConfigRequest.Builder clearTypeUrl()
         Type of the resource that is being requested, e.g.
         "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
         
        string type_url = 2;
        返回:
        This builder for chaining.
      • setTypeUrlBytes

        public Mcp.IncrementalMeshConfigRequest.Builder setTypeUrlBytes​(com.google.protobuf.ByteString value)
         Type of the resource that is being requested, e.g.
         "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
         
        string type_url = 2;
        参数:
        value - The bytes for typeUrl to set.
        返回:
        This builder for chaining.
      • internalGetInitialResourceVersions

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

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

        public int getInitialResourceVersionsCount()
         When the IncrementalMeshConfigRequest 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.IncrementalMeshConfigRequestOrBuilder
      • containsInitialResourceVersions

        public boolean containsInitialResourceVersions​(java.lang.String key)
         When the IncrementalMeshConfigRequest 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.IncrementalMeshConfigRequestOrBuilder
      • getInitialResourceVersionsMap

        public java.util.Map<java.lang.String,​java.lang.String> getInitialResourceVersionsMap()
         When the IncrementalMeshConfigRequest 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.IncrementalMeshConfigRequestOrBuilder
      • getInitialResourceVersionsOrDefault

        public java.lang.String getInitialResourceVersionsOrDefault​(java.lang.String key,
                                                                    java.lang.String defaultValue)
         When the IncrementalMeshConfigRequest 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.IncrementalMeshConfigRequestOrBuilder
      • getInitialResourceVersionsOrThrow

        public java.lang.String getInitialResourceVersionsOrThrow​(java.lang.String key)
         When the IncrementalMeshConfigRequest 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.IncrementalMeshConfigRequestOrBuilder
      • removeInitialResourceVersions

        public Mcp.IncrementalMeshConfigRequest.Builder removeInitialResourceVersions​(java.lang.String key)
         When the IncrementalMeshConfigRequest 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;
      • getMutableInitialResourceVersions

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getMutableInitialResourceVersions()
        已过时。
        Use alternate mutation accessors instead.
      • putInitialResourceVersions

        public Mcp.IncrementalMeshConfigRequest.Builder putInitialResourceVersions​(java.lang.String key,
                                                                                   java.lang.String value)
         When the IncrementalMeshConfigRequest 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;
      • putAllInitialResourceVersions

        public Mcp.IncrementalMeshConfigRequest.Builder putAllInitialResourceVersions​(java.util.Map<java.lang.String,​java.lang.String> values)
         When the IncrementalMeshConfigRequest 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;
      • getResponseNonce

        public java.lang.String getResponseNonce()
         When the IncrementalMeshConfigRequest is a ACK or NACK message in response
         to a previous IncrementalMeshConfigResponse, the response_nonce must be the
         nonce in the IncrementalMeshConfigResponse.
         Otherwise response_nonce must be omitted.
         
        string response_nonce = 4;
        指定者:
        getResponseNonce 在接口中 Mcp.IncrementalMeshConfigRequestOrBuilder
        返回:
        The responseNonce.
      • getResponseNonceBytes

        public com.google.protobuf.ByteString getResponseNonceBytes()
         When the IncrementalMeshConfigRequest is a ACK or NACK message in response
         to a previous IncrementalMeshConfigResponse, the response_nonce must be the
         nonce in the IncrementalMeshConfigResponse.
         Otherwise response_nonce must be omitted.
         
        string response_nonce = 4;
        指定者:
        getResponseNonceBytes 在接口中 Mcp.IncrementalMeshConfigRequestOrBuilder
        返回:
        The bytes for responseNonce.
      • setResponseNonce

        public Mcp.IncrementalMeshConfigRequest.Builder setResponseNonce​(java.lang.String value)
         When the IncrementalMeshConfigRequest is a ACK or NACK message in response
         to a previous IncrementalMeshConfigResponse, the response_nonce must be the
         nonce in the IncrementalMeshConfigResponse.
         Otherwise response_nonce must be omitted.
         
        string response_nonce = 4;
        参数:
        value - The responseNonce to set.
        返回:
        This builder for chaining.
      • clearResponseNonce

        public Mcp.IncrementalMeshConfigRequest.Builder clearResponseNonce()
         When the IncrementalMeshConfigRequest is a ACK or NACK message in response
         to a previous IncrementalMeshConfigResponse, the response_nonce must be the
         nonce in the IncrementalMeshConfigResponse.
         Otherwise response_nonce must be omitted.
         
        string response_nonce = 4;
        返回:
        This builder for chaining.
      • setResponseNonceBytes

        public Mcp.IncrementalMeshConfigRequest.Builder setResponseNonceBytes​(com.google.protobuf.ByteString value)
         When the IncrementalMeshConfigRequest is a ACK or NACK message in response
         to a previous IncrementalMeshConfigResponse, the response_nonce must be the
         nonce in the IncrementalMeshConfigResponse.
         Otherwise response_nonce must be omitted.
         
        string response_nonce = 4;
        参数:
        value - The bytes for responseNonce to set.
        返回:
        This builder for chaining.
      • hasErrorDetail

        public boolean hasErrorDetail()
         This is populated when the previous IncrementalMeshConfigResponses
         failed to update configuration. The *message* field in *error_details*
         provides the client internal exception related to the failure.
         
        .google.rpc.Status error_detail = 5;
        指定者:
        hasErrorDetail 在接口中 Mcp.IncrementalMeshConfigRequestOrBuilder
        返回:
        Whether the errorDetail field is set.
      • getErrorDetail

        public com.google.rpc.Status getErrorDetail()
         This is populated when the previous IncrementalMeshConfigResponses
         failed to update configuration. The *message* field in *error_details*
         provides the client internal exception related to the failure.
         
        .google.rpc.Status error_detail = 5;
        指定者:
        getErrorDetail 在接口中 Mcp.IncrementalMeshConfigRequestOrBuilder
        返回:
        The errorDetail.
      • setErrorDetail

        public Mcp.IncrementalMeshConfigRequest.Builder setErrorDetail​(com.google.rpc.Status value)
         This is populated when the previous IncrementalMeshConfigResponses
         failed to update configuration. The *message* field in *error_details*
         provides the client internal exception related to the failure.
         
        .google.rpc.Status error_detail = 5;
      • setErrorDetail

        public Mcp.IncrementalMeshConfigRequest.Builder setErrorDetail​(com.google.rpc.Status.Builder builderForValue)
         This is populated when the previous IncrementalMeshConfigResponses
         failed to update configuration. The *message* field in *error_details*
         provides the client internal exception related to the failure.
         
        .google.rpc.Status error_detail = 5;
      • mergeErrorDetail

        public Mcp.IncrementalMeshConfigRequest.Builder mergeErrorDetail​(com.google.rpc.Status value)
         This is populated when the previous IncrementalMeshConfigResponses
         failed to update configuration. The *message* field in *error_details*
         provides the client internal exception related to the failure.
         
        .google.rpc.Status error_detail = 5;
      • clearErrorDetail

        public Mcp.IncrementalMeshConfigRequest.Builder clearErrorDetail()
         This is populated when the previous IncrementalMeshConfigResponses
         failed to update configuration. The *message* field in *error_details*
         provides the client internal exception related to the failure.
         
        .google.rpc.Status error_detail = 5;
      • getErrorDetailBuilder

        public com.google.rpc.Status.Builder getErrorDetailBuilder()
         This is populated when the previous IncrementalMeshConfigResponses
         failed to update configuration. The *message* field in *error_details*
         provides the client internal exception related to the failure.
         
        .google.rpc.Status error_detail = 5;
      • getErrorDetailOrBuilder

        public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder()
         This is populated when the previous IncrementalMeshConfigResponses
         failed to update configuration. The *message* field in *error_details*
         provides the client internal exception related to the failure.
         
        .google.rpc.Status error_detail = 5;
        指定者:
        getErrorDetailOrBuilder 在接口中 Mcp.IncrementalMeshConfigRequestOrBuilder
      • getErrorDetailFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.rpc.Status,​com.google.rpc.Status.Builder,​com.google.rpc.StatusOrBuilder> getErrorDetailFieldBuilder()
         This is populated when the previous IncrementalMeshConfigResponses
         failed to update configuration. The *message* field in *error_details*
         provides the client internal exception related to the failure.
         
        .google.rpc.Status error_detail = 5;