Class RpcPartialFinishWithError.Builder

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

    public static final class RpcPartialFinishWithError.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RpcPartialFinishWithError.Builder>
    implements RpcPartialFinishWithErrorOrBuilder
    
     This response behaves the same as {@link org.hansken.extraction.plugin.grpc.RpcFinish}, with the exception
     that it is only used when an error occurs during the processing of a trace.
     The response contains a partial list of actions, a (error)statusCode and an errorDescription.
     The server processes the partial results towards the client, and throws an exception with the
     statusCode & errorDescription which should be handled client-side.
     
    Protobuf type org.hansken.extraction.plugin.grpc.RpcPartialFinishWithError
    • 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<RpcPartialFinishWithError.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<RpcPartialFinishWithError.Builder>
      • getDefaultInstanceForType

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

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

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

        public RpcPartialFinishWithError.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<RpcPartialFinishWithError.Builder>
      • isInitialized

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

        public RpcPartialFinishWithError.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<RpcPartialFinishWithError.Builder>
        Throws:
        IOException
      • setActions

        public RpcPartialFinishWithError.Builder setActions​(int index,
                                                            com.google.protobuf.Any.Builder builderForValue)
        repeated .google.protobuf.Any actions = 1;
      • addActions

        public RpcPartialFinishWithError.Builder addActions​(int index,
                                                            com.google.protobuf.Any.Builder builderForValue)
        repeated .google.protobuf.Any actions = 1;
      • getActionsBuilder

        public com.google.protobuf.Any.Builder getActionsBuilder​(int index)
        repeated .google.protobuf.Any actions = 1;
      • addActionsBuilder

        public com.google.protobuf.Any.Builder addActionsBuilder()
        repeated .google.protobuf.Any actions = 1;
      • addActionsBuilder

        public com.google.protobuf.Any.Builder addActionsBuilder​(int index)
        repeated .google.protobuf.Any actions = 1;
      • getActionsBuilderList

        public List<com.google.protobuf.Any.Builder> getActionsBuilderList()
        repeated .google.protobuf.Any actions = 1;
      • setStatusCodeBytes

        public RpcPartialFinishWithError.Builder setStatusCodeBytes​(com.google.protobuf.ByteString value)
        string statusCode = 2;
        Parameters:
        value - The bytes for statusCode to set.
        Returns:
        This builder for chaining.
      • setErrorDescription

        public RpcPartialFinishWithError.Builder setErrorDescription​(String value)
        string errorDescription = 3;
        Parameters:
        value - The errorDescription to set.
        Returns:
        This builder for chaining.
      • setErrorDescriptionBytes

        public RpcPartialFinishWithError.Builder setErrorDescriptionBytes​(com.google.protobuf.ByteString value)
        string errorDescription = 3;
        Parameters:
        value - The bytes for errorDescription to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RpcPartialFinishWithError.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<RpcPartialFinishWithError.Builder>
      • mergeUnknownFields

        public final RpcPartialFinishWithError.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<RpcPartialFinishWithError.Builder>