Class ExplainResponse.Builder

  • All Implemented Interfaces:
    ExplainResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ExplainResponse

    public static final class ExplainResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
    implements ExplainResponseOrBuilder
     Response message for
     [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
     
    Protobuf type google.cloud.aiplatform.v1beta1.ExplainResponse
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • clear

        public ExplainResponse.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • getDefaultInstanceForType

        public ExplainResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ExplainResponse build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ExplainResponse buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ExplainResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • setField

        public ExplainResponse.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • clearField

        public ExplainResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • clearOneof

        public ExplainResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • setRepeatedField

        public ExplainResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • addRepeatedField

        public ExplainResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • mergeFrom

        public ExplainResponse.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplainResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • mergeFrom

        public ExplainResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplainResponse.Builder>
        Throws:
        IOException
      • getExplanationsList

        public List<Explanation> getExplanationsList()
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
        Specified by:
        getExplanationsList in interface ExplainResponseOrBuilder
      • getExplanationsCount

        public int getExplanationsCount()
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
        Specified by:
        getExplanationsCount in interface ExplainResponseOrBuilder
      • getExplanations

        public Explanation getExplanations​(int index)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
        Specified by:
        getExplanations in interface ExplainResponseOrBuilder
      • setExplanations

        public ExplainResponse.Builder setExplanations​(int index,
                                                       Explanation value)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • setExplanations

        public ExplainResponse.Builder setExplanations​(int index,
                                                       Explanation.Builder builderForValue)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • addExplanations

        public ExplainResponse.Builder addExplanations​(Explanation value)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • addExplanations

        public ExplainResponse.Builder addExplanations​(int index,
                                                       Explanation value)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • addExplanations

        public ExplainResponse.Builder addExplanations​(Explanation.Builder builderForValue)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • addExplanations

        public ExplainResponse.Builder addExplanations​(int index,
                                                       Explanation.Builder builderForValue)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • addAllExplanations

        public ExplainResponse.Builder addAllExplanations​(Iterable<? extends Explanation> values)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • clearExplanations

        public ExplainResponse.Builder clearExplanations()
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • removeExplanations

        public ExplainResponse.Builder removeExplanations​(int index)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • getExplanationsBuilder

        public Explanation.Builder getExplanationsBuilder​(int index)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • getExplanationsOrBuilder

        public ExplanationOrBuilder getExplanationsOrBuilder​(int index)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
        Specified by:
        getExplanationsOrBuilder in interface ExplainResponseOrBuilder
      • getExplanationsOrBuilderList

        public List<? extends ExplanationOrBuilder> getExplanationsOrBuilderList()
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
        Specified by:
        getExplanationsOrBuilderList in interface ExplainResponseOrBuilder
      • addExplanationsBuilder

        public Explanation.Builder addExplanationsBuilder()
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • addExplanationsBuilder

        public Explanation.Builder addExplanationsBuilder​(int index)
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • getExplanationsBuilderList

        public List<Explanation.Builder> getExplanationsBuilderList()
         The explanations of the Model's
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
        
         It has the same number of elements as
         [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be
         explained.
         
        repeated .google.cloud.aiplatform.v1beta1.Explanation explanations = 1;
      • getDeployedModelId

        public String getDeployedModelId()
         ID of the Endpoint's DeployedModel that served this explanation.
         
        string deployed_model_id = 2;
        Specified by:
        getDeployedModelId in interface ExplainResponseOrBuilder
        Returns:
        The deployedModelId.
      • getDeployedModelIdBytes

        public com.google.protobuf.ByteString getDeployedModelIdBytes()
         ID of the Endpoint's DeployedModel that served this explanation.
         
        string deployed_model_id = 2;
        Specified by:
        getDeployedModelIdBytes in interface ExplainResponseOrBuilder
        Returns:
        The bytes for deployedModelId.
      • setDeployedModelId

        public ExplainResponse.Builder setDeployedModelId​(String value)
         ID of the Endpoint's DeployedModel that served this explanation.
         
        string deployed_model_id = 2;
        Parameters:
        value - The deployedModelId to set.
        Returns:
        This builder for chaining.
      • clearDeployedModelId

        public ExplainResponse.Builder clearDeployedModelId()
         ID of the Endpoint's DeployedModel that served this explanation.
         
        string deployed_model_id = 2;
        Returns:
        This builder for chaining.
      • setDeployedModelIdBytes

        public ExplainResponse.Builder setDeployedModelIdBytes​(com.google.protobuf.ByteString value)
         ID of the Endpoint's DeployedModel that served this explanation.
         
        string deployed_model_id = 2;
        Parameters:
        value - The bytes for deployedModelId to set.
        Returns:
        This builder for chaining.
      • getPredictionsList

        public List<com.google.protobuf.Value> getPredictionsList()
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
        Specified by:
        getPredictionsList in interface ExplainResponseOrBuilder
      • getPredictionsCount

        public int getPredictionsCount()
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
        Specified by:
        getPredictionsCount in interface ExplainResponseOrBuilder
      • getPredictions

        public com.google.protobuf.Value getPredictions​(int index)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
        Specified by:
        getPredictions in interface ExplainResponseOrBuilder
      • setPredictions

        public ExplainResponse.Builder setPredictions​(int index,
                                                      com.google.protobuf.Value value)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • setPredictions

        public ExplainResponse.Builder setPredictions​(int index,
                                                      com.google.protobuf.Value.Builder builderForValue)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • addPredictions

        public ExplainResponse.Builder addPredictions​(com.google.protobuf.Value value)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • addPredictions

        public ExplainResponse.Builder addPredictions​(int index,
                                                      com.google.protobuf.Value value)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • addPredictions

        public ExplainResponse.Builder addPredictions​(com.google.protobuf.Value.Builder builderForValue)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • addPredictions

        public ExplainResponse.Builder addPredictions​(int index,
                                                      com.google.protobuf.Value.Builder builderForValue)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • addAllPredictions

        public ExplainResponse.Builder addAllPredictions​(Iterable<? extends com.google.protobuf.Value> values)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • clearPredictions

        public ExplainResponse.Builder clearPredictions()
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • removePredictions

        public ExplainResponse.Builder removePredictions​(int index)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • getPredictionsBuilder

        public com.google.protobuf.Value.Builder getPredictionsBuilder​(int index)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • getPredictionsOrBuilder

        public com.google.protobuf.ValueOrBuilder getPredictionsOrBuilder​(int index)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
        Specified by:
        getPredictionsOrBuilder in interface ExplainResponseOrBuilder
      • getPredictionsOrBuilderList

        public List<? extends com.google.protobuf.ValueOrBuilder> getPredictionsOrBuilderList()
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
        Specified by:
        getPredictionsOrBuilderList in interface ExplainResponseOrBuilder
      • addPredictionsBuilder

        public com.google.protobuf.Value.Builder addPredictionsBuilder()
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • addPredictionsBuilder

        public com.google.protobuf.Value.Builder addPredictionsBuilder​(int index)
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • getPredictionsBuilderList

        public List<com.google.protobuf.Value.Builder> getPredictionsBuilderList()
         The predictions that are the output of the predictions call.
         Same as
         [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions].
         
        repeated .google.protobuf.Value predictions = 3;
      • setUnknownFields

        public final ExplainResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>
      • mergeUnknownFields

        public final ExplainResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainResponse.Builder>