Class BuildEventStreamProtos.BuildStarted.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.BuildStarted.Builder>
com.google.devtools.build.lib.buildeventstream.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, Cloneable
Enclosing class:
BuildEventStreamProtos.BuildStarted

public static final class BuildEventStreamProtos.BuildStarted.Builder extends com.google.protobuf.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.BuildStarted.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.GeneratedMessage.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.GeneratedMessage.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

      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
    • mergeFrom

      public BuildEventStreamProtos.BuildStarted.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<BuildEventStreamProtos.BuildStarted.Builder>
    • mergeFrom

    • isInitialized

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

      public BuildEventStreamProtos.BuildStarted.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<BuildEventStreamProtos.BuildStarted.Builder>
      Throws:
      IOException
    • getUuid

      public String getUuid()
      string uuid = 1;
      Specified by:
      getUuid in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The uuid.
    • getUuidBytes

      public com.google.protobuf.ByteString getUuidBytes()
      string uuid = 1;
      Specified by:
      getUuidBytes in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The bytes for uuid.
    • setUuid

      string uuid = 1;
      Parameters:
      value - The uuid to set.
      Returns:
      This builder for chaining.
    • clearUuid

      string uuid = 1;
      Returns:
      This builder for chaining.
    • 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 third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=368
       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 third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=368
       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.
      build_event_stream.BuildStarted.start_time_millis is deprecated. See third_party/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto;l=368
       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.
    • hasStartTime

      public boolean hasStartTime()
       Start of the build.
       
      .google.protobuf.Timestamp start_time = 9;
      Specified by:
      hasStartTime in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Start of the build.
       
      .google.protobuf.Timestamp start_time = 9;
      Specified by:
      getStartTime in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public BuildEventStreamProtos.BuildStarted.Builder setStartTime(com.google.protobuf.Timestamp value)
       Start of the build.
       
      .google.protobuf.Timestamp start_time = 9;
    • setStartTime

      public BuildEventStreamProtos.BuildStarted.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Start of the build.
       
      .google.protobuf.Timestamp start_time = 9;
    • mergeStartTime

      public BuildEventStreamProtos.BuildStarted.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Start of the build.
       
      .google.protobuf.Timestamp start_time = 9;
    • clearStartTime

       Start of the build.
       
      .google.protobuf.Timestamp start_time = 9;
    • getStartTimeBuilder

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

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Start of the build.
       
      .google.protobuf.Timestamp start_time = 9;
      Specified by:
      getStartTimeOrBuilder in interface BuildEventStreamProtos.BuildStartedOrBuilder
    • getBuildToolVersion

      public String getBuildToolVersion()
       Version of the build tool that is running.
       
      string build_tool_version = 3;
      Specified by:
      getBuildToolVersion in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The buildToolVersion.
    • getBuildToolVersionBytes

      public com.google.protobuf.ByteString getBuildToolVersionBytes()
       Version of the build tool that is running.
       
      string build_tool_version = 3;
      Specified by:
      getBuildToolVersionBytes in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The bytes for buildToolVersion.
    • setBuildToolVersion

      public BuildEventStreamProtos.BuildStarted.Builder setBuildToolVersion(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.
    • clearBuildToolVersion

      public BuildEventStreamProtos.BuildStarted.Builder clearBuildToolVersion()
       Version of the build tool that is running.
       
      string build_tool_version = 3;
      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.
    • getOptionsDescription

      public String getOptionsDescription()
       A human-readable description of all the non-default option settings
       
      string options_description = 4;
      Specified by:
      getOptionsDescription in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The optionsDescription.
    • getOptionsDescriptionBytes

      public com.google.protobuf.ByteString getOptionsDescriptionBytes()
       A human-readable description of all the non-default option settings
       
      string options_description = 4;
      Specified by:
      getOptionsDescriptionBytes in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The bytes for optionsDescription.
    • setOptionsDescription

      public BuildEventStreamProtos.BuildStarted.Builder setOptionsDescription(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.
    • getCommand

      public String getCommand()
       The name of the command that the user invoked.
       
      string command = 5;
      Specified by:
      getCommand in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The command.
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes()
       The name of the command that the user invoked.
       
      string command = 5;
      Specified by:
      getCommandBytes in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The bytes for command.
    • setCommand

       The name of the command that the user invoked.
       
      string command = 5;
      Parameters:
      value - The command to set.
      Returns:
      This builder for chaining.
    • clearCommand

       The name of the command that the user invoked.
       
      string command = 5;
      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.
    • getWorkingDirectory

      public String getWorkingDirectory()
       The working directory from which the build tool was invoked.
       
      string working_directory = 6;
      Specified by:
      getWorkingDirectory in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The workingDirectory.
    • getWorkingDirectoryBytes

      public com.google.protobuf.ByteString getWorkingDirectoryBytes()
       The working directory from which the build tool was invoked.
       
      string working_directory = 6;
      Specified by:
      getWorkingDirectoryBytes in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The bytes for workingDirectory.
    • setWorkingDirectory

      public BuildEventStreamProtos.BuildStarted.Builder setWorkingDirectory(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.
    • getWorkspaceDirectory

      public String getWorkspaceDirectory()
       The directory of the workspace.
       
      string workspace_directory = 7;
      Specified by:
      getWorkspaceDirectory in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The workspaceDirectory.
    • getWorkspaceDirectoryBytes

      public com.google.protobuf.ByteString getWorkspaceDirectoryBytes()
       The directory of the workspace.
       
      string workspace_directory = 7;
      Specified by:
      getWorkspaceDirectoryBytes in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The bytes for workspaceDirectory.
    • setWorkspaceDirectory

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

      public BuildEventStreamProtos.BuildStarted.Builder clearWorkspaceDirectory()
       The directory of the workspace.
       
      string workspace_directory = 7;
      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.
    • getServerPid

      public long getServerPid()
       The process ID of the Bazel server.
       
      int64 server_pid = 8;
      Specified by:
      getServerPid in interface BuildEventStreamProtos.BuildStartedOrBuilder
      Returns:
      The serverPid.
    • 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.
    • clearServerPid

       The process ID of the Bazel server.
       
      int64 server_pid = 8;
      Returns:
      This builder for chaining.