Class BuildEventStreamProtos.TargetConfigured.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.TargetConfigured.Builder>
com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.TargetConfigured.Builder
All Implemented Interfaces:
BuildEventStreamProtos.TargetConfiguredOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BuildEventStreamProtos.TargetConfigured

public static final class BuildEventStreamProtos.TargetConfigured.Builder extends com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.TargetConfigured.Builder> implements BuildEventStreamProtos.TargetConfiguredOrBuilder
 Payload of the event indicating that the configurations for a target have
 been identified. As with pattern expansion the main information is in the
 chaining part: the id will contain the target that was configured and the
 children id will contain the configured targets it was configured to.
 
Protobuf type build_event_stream.TargetConfigured
  • 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.TargetConfigured.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.TargetConfigured.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.TargetConfigured.Builder>
    • getDefaultInstanceForType

      public BuildEventStreamProtos.TargetConfigured 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

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getTargetKind()
       The kind of target (e.g.,  e.g. "cc_library rule", "source file",
       "generated file") where the completion is reported.
       
      string target_kind = 1;
      Specified by:
      getTargetKind in interface BuildEventStreamProtos.TargetConfiguredOrBuilder
      Returns:
      The targetKind.
    • getTargetKindBytes

      public com.google.protobuf.ByteString getTargetKindBytes()
       The kind of target (e.g.,  e.g. "cc_library rule", "source file",
       "generated file") where the completion is reported.
       
      string target_kind = 1;
      Specified by:
      getTargetKindBytes in interface BuildEventStreamProtos.TargetConfiguredOrBuilder
      Returns:
      The bytes for targetKind.
    • setTargetKind

       The kind of target (e.g.,  e.g. "cc_library rule", "source file",
       "generated file") where the completion is reported.
       
      string target_kind = 1;
      Parameters:
      value - The targetKind to set.
      Returns:
      This builder for chaining.
    • clearTargetKind

       The kind of target (e.g.,  e.g. "cc_library rule", "source file",
       "generated file") where the completion is reported.
       
      string target_kind = 1;
      Returns:
      This builder for chaining.
    • setTargetKindBytes

      public BuildEventStreamProtos.TargetConfigured.Builder setTargetKindBytes(com.google.protobuf.ByteString value)
       The kind of target (e.g.,  e.g. "cc_library rule", "source file",
       "generated file") where the completion is reported.
       
      string target_kind = 1;
      Parameters:
      value - The bytes for targetKind to set.
      Returns:
      This builder for chaining.
    • getTestSizeValue

      public int getTestSizeValue()
       The size of the test, if the target is a test target. Unset otherwise.
       
      .build_event_stream.TestSize test_size = 2;
      Specified by:
      getTestSizeValue in interface BuildEventStreamProtos.TargetConfiguredOrBuilder
      Returns:
      The enum numeric value on the wire for testSize.
    • setTestSizeValue

      public BuildEventStreamProtos.TargetConfigured.Builder setTestSizeValue(int value)
       The size of the test, if the target is a test target. Unset otherwise.
       
      .build_event_stream.TestSize test_size = 2;
      Parameters:
      value - The enum numeric value on the wire for testSize to set.
      Returns:
      This builder for chaining.
    • getTestSize

      public BuildEventStreamProtos.TestSize getTestSize()
       The size of the test, if the target is a test target. Unset otherwise.
       
      .build_event_stream.TestSize test_size = 2;
      Specified by:
      getTestSize in interface BuildEventStreamProtos.TargetConfiguredOrBuilder
      Returns:
      The testSize.
    • setTestSize

       The size of the test, if the target is a test target. Unset otherwise.
       
      .build_event_stream.TestSize test_size = 2;
      Parameters:
      value - The testSize to set.
      Returns:
      This builder for chaining.
    • clearTestSize

       The size of the test, if the target is a test target. Unset otherwise.
       
      .build_event_stream.TestSize test_size = 2;
      Returns:
      This builder for chaining.
    • getTagList

      public com.google.protobuf.ProtocolStringList getTagList()
       List of all tags associated with this target (for all possible
       configurations).
       
      repeated string tag = 3;
      Specified by:
      getTagList in interface BuildEventStreamProtos.TargetConfiguredOrBuilder
      Returns:
      A list containing the tag.
    • getTagCount

      public int getTagCount()
       List of all tags associated with this target (for all possible
       configurations).
       
      repeated string tag = 3;
      Specified by:
      getTagCount in interface BuildEventStreamProtos.TargetConfiguredOrBuilder
      Returns:
      The count of tag.
    • getTag

      public String getTag(int index)
       List of all tags associated with this target (for all possible
       configurations).
       
      repeated string tag = 3;
      Specified by:
      getTag in interface BuildEventStreamProtos.TargetConfiguredOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tag at the given index.
    • getTagBytes

      public com.google.protobuf.ByteString getTagBytes(int index)
       List of all tags associated with this target (for all possible
       configurations).
       
      repeated string tag = 3;
      Specified by:
      getTagBytes in interface BuildEventStreamProtos.TargetConfiguredOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tag at the given index.
    • setTag

      public BuildEventStreamProtos.TargetConfigured.Builder setTag(int index, String value)
       List of all tags associated with this target (for all possible
       configurations).
       
      repeated string tag = 3;
      Parameters:
      index - The index to set the value at.
      value - The tag to set.
      Returns:
      This builder for chaining.
    • addTag

       List of all tags associated with this target (for all possible
       configurations).
       
      repeated string tag = 3;
      Parameters:
      value - The tag to add.
      Returns:
      This builder for chaining.
    • addAllTag

       List of all tags associated with this target (for all possible
       configurations).
       
      repeated string tag = 3;
      Parameters:
      values - The tag to add.
      Returns:
      This builder for chaining.
    • clearTag

       List of all tags associated with this target (for all possible
       configurations).
       
      repeated string tag = 3;
      Returns:
      This builder for chaining.
    • addTagBytes

      public BuildEventStreamProtos.TargetConfigured.Builder addTagBytes(com.google.protobuf.ByteString value)
       List of all tags associated with this target (for all possible
       configurations).
       
      repeated string tag = 3;
      Parameters:
      value - The bytes of the tag to add.
      Returns:
      This builder for chaining.