Class BuildEventStreamProtos.BuildStarted.Builder

  • All Implemented Interfaces:
    BuildEventStreamProtos.BuildStartedOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    BuildEventStreamProtos.BuildStarted

    public static final class BuildEventStreamProtos.BuildStarted.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.BuildStarted.Builder>
    implements BuildEventStreamProtos.BuildStartedOrBuilder
     Payload of an event indicating the beginning of a new build. Usually, events
     of those type start a new build-event stream. The target pattern requested
     to be build is contained in one of the announced child events; it is an
     invariant that precisely one of the announced child events has a non-empty
     target pattern.
     
    Protobuf type build_event_stream.BuildStarted
    • 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<BuildEventStreamProtos.BuildStarted.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<BuildEventStreamProtos.BuildStarted.Builder>
      • getDefaultInstanceForType

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

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

        public BuildEventStreamProtos.BuildStarted buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public BuildEventStreamProtos.BuildStarted.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                              throws java.io.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<BuildEventStreamProtos.BuildStarted.Builder>
        Throws:
        java.io.IOException
      • setUuidBytes

        public BuildEventStreamProtos.BuildStarted.Builder setUuidBytes​(com.google.protobuf.ByteString value)
        string uuid = 1;
        Parameters:
        value - The bytes for uuid to set.
        Returns:
        This builder for chaining.
      • getStartTimeMillis

        @Deprecated
        public long getStartTimeMillis()
        Deprecated.
        build_event_stream.BuildStarted.start_time_millis is deprecated. See src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=329
         Start of the build in ms since the epoch.
         Deprecated, use `start_time` instead.
         TODO(yannic): Remove.
         
        int64 start_time_millis = 2 [deprecated = true];
        Specified by:
        getStartTimeMillis in interface BuildEventStreamProtos.BuildStartedOrBuilder
        Returns:
        The startTimeMillis.
      • setStartTimeMillis

        @Deprecated
        public BuildEventStreamProtos.BuildStarted.Builder setStartTimeMillis​(long value)
        Deprecated.
        build_event_stream.BuildStarted.start_time_millis is deprecated. See src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=329
         Start of the build in ms since the epoch.
         Deprecated, use `start_time` instead.
         TODO(yannic): Remove.
         
        int64 start_time_millis = 2 [deprecated = true];
        Parameters:
        value - The startTimeMillis to set.
        Returns:
        This builder for chaining.
      • clearStartTimeMillis

        @Deprecated
        public BuildEventStreamProtos.BuildStarted.Builder clearStartTimeMillis()
        Deprecated.
        build_event_stream.BuildStarted.start_time_millis is deprecated. See src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=329
         Start of the build in ms since the epoch.
         Deprecated, use `start_time` instead.
         TODO(yannic): Remove.
         
        int64 start_time_millis = 2 [deprecated = true];
        Returns:
        This builder for chaining.
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         Start of the build.
         
        .google.protobuf.Timestamp start_time = 9;
      • setBuildToolVersion

        public BuildEventStreamProtos.BuildStarted.Builder setBuildToolVersion​(java.lang.String value)
         Version of the build tool that is running.
         
        string build_tool_version = 3;
        Parameters:
        value - The buildToolVersion to set.
        Returns:
        This builder for chaining.
      • setBuildToolVersionBytes

        public BuildEventStreamProtos.BuildStarted.Builder setBuildToolVersionBytes​(com.google.protobuf.ByteString value)
         Version of the build tool that is running.
         
        string build_tool_version = 3;
        Parameters:
        value - The bytes for buildToolVersion to set.
        Returns:
        This builder for chaining.
      • setOptionsDescription

        public BuildEventStreamProtos.BuildStarted.Builder setOptionsDescription​(java.lang.String value)
         A human-readable description of all the non-default option settings
         
        string options_description = 4;
        Parameters:
        value - The optionsDescription to set.
        Returns:
        This builder for chaining.
      • clearOptionsDescription

        public BuildEventStreamProtos.BuildStarted.Builder clearOptionsDescription()
         A human-readable description of all the non-default option settings
         
        string options_description = 4;
        Returns:
        This builder for chaining.
      • setOptionsDescriptionBytes

        public BuildEventStreamProtos.BuildStarted.Builder setOptionsDescriptionBytes​(com.google.protobuf.ByteString value)
         A human-readable description of all the non-default option settings
         
        string options_description = 4;
        Parameters:
        value - The bytes for optionsDescription to set.
        Returns:
        This builder for chaining.
      • setCommand

        public BuildEventStreamProtos.BuildStarted.Builder setCommand​(java.lang.String value)
         The name of the command that the user invoked.
         
        string command = 5;
        Parameters:
        value - The command to set.
        Returns:
        This builder for chaining.
      • setCommandBytes

        public BuildEventStreamProtos.BuildStarted.Builder setCommandBytes​(com.google.protobuf.ByteString value)
         The name of the command that the user invoked.
         
        string command = 5;
        Parameters:
        value - The bytes for command to set.
        Returns:
        This builder for chaining.
      • setWorkingDirectory

        public BuildEventStreamProtos.BuildStarted.Builder setWorkingDirectory​(java.lang.String value)
         The working directory from which the build tool was invoked.
         
        string working_directory = 6;
        Parameters:
        value - The workingDirectory to set.
        Returns:
        This builder for chaining.
      • clearWorkingDirectory

        public BuildEventStreamProtos.BuildStarted.Builder clearWorkingDirectory()
         The working directory from which the build tool was invoked.
         
        string working_directory = 6;
        Returns:
        This builder for chaining.
      • setWorkingDirectoryBytes

        public BuildEventStreamProtos.BuildStarted.Builder setWorkingDirectoryBytes​(com.google.protobuf.ByteString value)
         The working directory from which the build tool was invoked.
         
        string working_directory = 6;
        Parameters:
        value - The bytes for workingDirectory to set.
        Returns:
        This builder for chaining.
      • setWorkspaceDirectory

        public BuildEventStreamProtos.BuildStarted.Builder setWorkspaceDirectory​(java.lang.String value)
         The directory of the workspace.
         
        string workspace_directory = 7;
        Parameters:
        value - The workspaceDirectory to set.
        Returns:
        This builder for chaining.
      • setWorkspaceDirectoryBytes

        public BuildEventStreamProtos.BuildStarted.Builder setWorkspaceDirectoryBytes​(com.google.protobuf.ByteString value)
         The directory of the workspace.
         
        string workspace_directory = 7;
        Parameters:
        value - The bytes for workspaceDirectory to set.
        Returns:
        This builder for chaining.
      • setServerPid

        public BuildEventStreamProtos.BuildStarted.Builder setServerPid​(long value)
         The process ID of the Bazel server.
         
        int64 server_pid = 8;
        Parameters:
        value - The serverPid to set.
        Returns:
        This builder for chaining.