@@ -109,15 +109,6 @@ public int getLocationIndex() {
109
109
return 0 ;
110
110
}
111
111
112
- /**
113
- * Remote action source identifier for the file.
114
- *
115
- * <p>"" indicates that a remote action output was not the source of this artifact.
116
- */
117
- public String getActionId () {
118
- return "" ;
119
- }
120
-
121
112
/** Returns {@code true} if the file only exists remotely. */
122
113
public boolean isRemote () {
123
114
return false ;
@@ -550,35 +541,27 @@ public static class RemoteFileArtifactValue extends FileArtifactValue {
550
541
protected final byte [] digest ;
551
542
protected final long size ;
552
543
protected final int locationIndex ;
553
- protected final String actionId ;
554
544
555
- private RemoteFileArtifactValue (byte [] digest , long size , int locationIndex , String actionId ) {
556
- this .digest = Preconditions .checkNotNull (digest , actionId );
545
+ private RemoteFileArtifactValue (byte [] digest , long size , int locationIndex ) {
546
+ this .digest = Preconditions .checkNotNull (digest );
557
547
this .size = size ;
558
548
this .locationIndex = locationIndex ;
559
- this .actionId = actionId ;
560
- }
561
-
562
- public static RemoteFileArtifactValue create (
563
- byte [] digest , long size , int locationIndex , String actionId ) {
564
- return new RemoteFileArtifactValue (digest , size , locationIndex , actionId );
565
549
}
566
550
567
551
public static RemoteFileArtifactValue create (byte [] digest , long size , int locationIndex ) {
568
- return new RemoteFileArtifactValue (digest , size , locationIndex , /* actionId= */ "" );
552
+ return new RemoteFileArtifactValue (digest , size , locationIndex );
569
553
}
570
554
571
555
public static RemoteFileArtifactValue create (
572
556
byte [] digest ,
573
557
long size ,
574
558
int locationIndex ,
575
- String actionId ,
576
559
@ Nullable PathFragment materializationExecPath ) {
577
560
if (materializationExecPath != null ) {
578
561
return new RemoteFileArtifactValueWithMaterializationPath (
579
- digest , size , locationIndex , actionId , materializationExecPath );
562
+ digest , size , locationIndex , materializationExecPath );
580
563
}
581
- return new RemoteFileArtifactValue (digest , size , locationIndex , actionId );
564
+ return new RemoteFileArtifactValue (digest , size , locationIndex );
582
565
}
583
566
584
567
@ Override
@@ -590,13 +573,12 @@ public boolean equals(Object o) {
590
573
RemoteFileArtifactValue that = (RemoteFileArtifactValue ) o ;
591
574
return Arrays .equals (digest , that .digest )
592
575
&& size == that .size
593
- && locationIndex == that .locationIndex
594
- && Objects .equals (actionId , that .actionId );
576
+ && locationIndex == that .locationIndex ;
595
577
}
596
578
597
579
@ Override
598
580
public int hashCode () {
599
- return Objects .hash (Arrays .hashCode (digest ), size , locationIndex , actionId );
581
+ return Objects .hash (Arrays .hashCode (digest ), size , locationIndex );
600
582
}
601
583
602
584
@ Override
@@ -619,11 +601,6 @@ public long getSize() {
619
601
return size ;
620
602
}
621
603
622
- @ Override
623
- public String getActionId () {
624
- return actionId ;
625
- }
626
-
627
604
@ Override
628
605
public long getModifiedTime () {
629
606
throw new UnsupportedOperationException (
@@ -651,7 +628,6 @@ public String toString() {
651
628
.add ("digest" , bytesToString (digest ))
652
629
.add ("size" , size )
653
630
.add ("locationIndex" , locationIndex )
654
- .add ("actionId" , actionId )
655
631
.toString ();
656
632
}
657
633
}
@@ -667,12 +643,8 @@ public static final class RemoteFileArtifactValueWithMaterializationPath
667
643
private final PathFragment materializationExecPath ;
668
644
669
645
private RemoteFileArtifactValueWithMaterializationPath (
670
- byte [] digest ,
671
- long size ,
672
- int locationIndex ,
673
- String actionId ,
674
- PathFragment materializationExecPath ) {
675
- super (digest , size , locationIndex , actionId );
646
+ byte [] digest , long size , int locationIndex , PathFragment materializationExecPath ) {
647
+ super (digest , size , locationIndex );
676
648
this .materializationExecPath = Preconditions .checkNotNull (materializationExecPath );
677
649
}
678
650
@@ -692,14 +664,12 @@ public boolean equals(Object o) {
692
664
return Arrays .equals (digest , that .digest )
693
665
&& size == that .size
694
666
&& locationIndex == that .locationIndex
695
- && Objects .equals (actionId , that .actionId )
696
667
&& Objects .equals (materializationExecPath , that .materializationExecPath );
697
668
}
698
669
699
670
@ Override
700
671
public int hashCode () {
701
- return Objects .hash (
702
- Arrays .hashCode (digest ), size , locationIndex , actionId , materializationExecPath );
672
+ return Objects .hash (Arrays .hashCode (digest ), size , locationIndex , materializationExecPath );
703
673
}
704
674
705
675
@ Override
@@ -708,7 +678,6 @@ public String toString() {
708
678
.add ("digest" , bytesToString (digest ))
709
679
.add ("size" , size )
710
680
.add ("locationIndex" , locationIndex )
711
- .add ("actionId" , actionId )
712
681
.add ("materializationExecPath" , materializationExecPath )
713
682
.toString ();
714
683
}
0 commit comments