Class BuildEventStreamProtos.File.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.File.Builder>
com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.File.Builder
- All Implemented Interfaces:
BuildEventStreamProtos.FileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BuildEventStreamProtos.File
public static final class BuildEventStreamProtos.File.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.File.Builder>
implements BuildEventStreamProtos.FileOrBuilder
Protobuf type
build_event_stream.File-
Method Summary
Modifier and TypeMethodDescriptionaddAllPathPrefix(Iterable<String> values) A sequence of prefixes to apply to the file name to construct a full path.addPathPrefix(String value) A sequence of prefixes to apply to the file name to construct a full path.addPathPrefixBytes(com.google.protobuf.ByteString value) A sequence of prefixes to apply to the file name to construct a full path.build()clear()The contents of the file, if they are guaranteed to be short.Digest of the file, using the build tool's configured digest algorithm, hex-encoded.Length of the file in bytes.identifier indicating the nature of the file (e.g., "stdout", "stderr")A sequence of prefixes to apply to the file name to construct a full path.The symlink target path, if the file is an unresolved symlink.clearUri()A location where the contents of the file can be found.com.google.protobuf.ByteStringThe contents of the file, if they are guaranteed to be short.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDigest of the file, using the build tool's configured digest algorithm, hex-encoded.com.google.protobuf.ByteStringDigest of the file, using the build tool's configured digest algorithm, hex-encoded.longLength of the file in bytes.getName()identifier indicating the nature of the file (e.g., "stdout", "stderr")com.google.protobuf.ByteStringidentifier indicating the nature of the file (e.g., "stdout", "stderr")getPathPrefix(int index) A sequence of prefixes to apply to the file name to construct a full path.com.google.protobuf.ByteStringgetPathPrefixBytes(int index) A sequence of prefixes to apply to the file name to construct a full path.intA sequence of prefixes to apply to the file name to construct a full path.com.google.protobuf.ProtocolStringListA sequence of prefixes to apply to the file name to construct a full path.The symlink target path, if the file is an unresolved symlink.com.google.protobuf.ByteStringThe symlink target path, if the file is an unresolved symlink.getUri()A location where the contents of the file can be found.com.google.protobuf.ByteStringA location where the contents of the file can be found.booleanThe contents of the file, if they are guaranteed to be short.booleanThe symlink target path, if the file is an unresolved symlink.booleanhasUri()A location where the contents of the file can be found.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setContents(com.google.protobuf.ByteString value) The contents of the file, if they are guaranteed to be short.Digest of the file, using the build tool's configured digest algorithm, hex-encoded.setDigestBytes(com.google.protobuf.ByteString value) Digest of the file, using the build tool's configured digest algorithm, hex-encoded.setLength(long value) Length of the file in bytes.identifier indicating the nature of the file (e.g., "stdout", "stderr")setNameBytes(com.google.protobuf.ByteString value) identifier indicating the nature of the file (e.g., "stdout", "stderr")setPathPrefix(int index, String value) A sequence of prefixes to apply to the file name to construct a full path.setSymlinkTargetPath(String value) The symlink target path, if the file is an unresolved symlink.setSymlinkTargetPathBytes(com.google.protobuf.ByteString value) The symlink target path, if the file is an unresolved symlink.A location where the contents of the file can be found.setUriBytes(com.google.protobuf.ByteString value) A location where the contents of the file can be found.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.File.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.File.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.File.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildEventStreamProtos.File.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BuildEventStreamProtos.File.Builder>
-
mergeFrom
public BuildEventStreamProtos.File.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildEventStreamProtos.File.Builder>- Throws:
IOException
-
getFileCase
- Specified by:
getFileCasein interfaceBuildEventStreamProtos.FileOrBuilder
-
clearFile
-
getPathPrefixList
public com.google.protobuf.ProtocolStringList getPathPrefixList()A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries: 1. A root output directory, eg "bazel-out" 2. A configuration mnemonic, eg "k8-fastbuild" 3. An output category, eg "genfiles"
repeated string path_prefix = 4;- Specified by:
getPathPrefixListin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- A list containing the pathPrefix.
-
getPathPrefixCount
public int getPathPrefixCount()A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries: 1. A root output directory, eg "bazel-out" 2. A configuration mnemonic, eg "k8-fastbuild" 3. An output category, eg "genfiles"
repeated string path_prefix = 4;- Specified by:
getPathPrefixCountin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The count of pathPrefix.
-
getPathPrefix
A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries: 1. A root output directory, eg "bazel-out" 2. A configuration mnemonic, eg "k8-fastbuild" 3. An output category, eg "genfiles"
repeated string path_prefix = 4;- Specified by:
getPathPrefixin interfaceBuildEventStreamProtos.FileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The pathPrefix at the given index.
-
getPathPrefixBytes
public com.google.protobuf.ByteString getPathPrefixBytes(int index) A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries: 1. A root output directory, eg "bazel-out" 2. A configuration mnemonic, eg "k8-fastbuild" 3. An output category, eg "genfiles"
repeated string path_prefix = 4;- Specified by:
getPathPrefixBytesin interfaceBuildEventStreamProtos.FileOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the pathPrefix at the given index.
-
setPathPrefix
A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries: 1. A root output directory, eg "bazel-out" 2. A configuration mnemonic, eg "k8-fastbuild" 3. An output category, eg "genfiles"
repeated string path_prefix = 4;- Parameters:
index- The index to set the value at.value- The pathPrefix to set.- Returns:
- This builder for chaining.
-
addPathPrefix
A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries: 1. A root output directory, eg "bazel-out" 2. A configuration mnemonic, eg "k8-fastbuild" 3. An output category, eg "genfiles"
repeated string path_prefix = 4;- Parameters:
value- The pathPrefix to add.- Returns:
- This builder for chaining.
-
addAllPathPrefix
A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries: 1. A root output directory, eg "bazel-out" 2. A configuration mnemonic, eg "k8-fastbuild" 3. An output category, eg "genfiles"
repeated string path_prefix = 4;- Parameters:
values- The pathPrefix to add.- Returns:
- This builder for chaining.
-
clearPathPrefix
A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries: 1. A root output directory, eg "bazel-out" 2. A configuration mnemonic, eg "k8-fastbuild" 3. An output category, eg "genfiles"
repeated string path_prefix = 4;- Returns:
- This builder for chaining.
-
addPathPrefixBytes
A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries: 1. A root output directory, eg "bazel-out" 2. A configuration mnemonic, eg "k8-fastbuild" 3. An output category, eg "genfiles"
repeated string path_prefix = 4;- Parameters:
value- The bytes of the pathPrefix to add.- Returns:
- This builder for chaining.
-
getName
identifier indicating the nature of the file (e.g., "stdout", "stderr")
string name = 1;- Specified by:
getNamein interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()identifier indicating the nature of the file (e.g., "stdout", "stderr")
string name = 1;- Specified by:
getNameBytesin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The bytes for name.
-
setName
identifier indicating the nature of the file (e.g., "stdout", "stderr")
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
identifier indicating the nature of the file (e.g., "stdout", "stderr")
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
identifier indicating the nature of the file (e.g., "stdout", "stderr")
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasUri
public boolean hasUri()A location where the contents of the file can be found. The string is encoded according to RFC2396.
string uri = 2;- Specified by:
hasUriin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
A location where the contents of the file can be found. The string is encoded according to RFC2396.
string uri = 2;- Specified by:
getUriin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()A location where the contents of the file can be found. The string is encoded according to RFC2396.
string uri = 2;- Specified by:
getUriBytesin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The bytes for uri.
-
setUri
A location where the contents of the file can be found. The string is encoded according to RFC2396.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
A location where the contents of the file can be found. The string is encoded according to RFC2396.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
A location where the contents of the file can be found. The string is encoded according to RFC2396.
string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasContents
public boolean hasContents()The contents of the file, if they are guaranteed to be short.
bytes contents = 3;- Specified by:
hasContentsin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- Whether the contents field is set.
-
getContents
public com.google.protobuf.ByteString getContents()The contents of the file, if they are guaranteed to be short.
bytes contents = 3;- Specified by:
getContentsin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The contents.
-
setContents
The contents of the file, if they are guaranteed to be short.
bytes contents = 3;- Parameters:
value- The contents to set.- Returns:
- This builder for chaining.
-
clearContents
The contents of the file, if they are guaranteed to be short.
bytes contents = 3;- Returns:
- This builder for chaining.
-
hasSymlinkTargetPath
public boolean hasSymlinkTargetPath()The symlink target path, if the file is an unresolved symlink.
string symlink_target_path = 7;- Specified by:
hasSymlinkTargetPathin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- Whether the symlinkTargetPath field is set.
-
getSymlinkTargetPath
The symlink target path, if the file is an unresolved symlink.
string symlink_target_path = 7;- Specified by:
getSymlinkTargetPathin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The symlinkTargetPath.
-
getSymlinkTargetPathBytes
public com.google.protobuf.ByteString getSymlinkTargetPathBytes()The symlink target path, if the file is an unresolved symlink.
string symlink_target_path = 7;- Specified by:
getSymlinkTargetPathBytesin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The bytes for symlinkTargetPath.
-
setSymlinkTargetPath
The symlink target path, if the file is an unresolved symlink.
string symlink_target_path = 7;- Parameters:
value- The symlinkTargetPath to set.- Returns:
- This builder for chaining.
-
clearSymlinkTargetPath
The symlink target path, if the file is an unresolved symlink.
string symlink_target_path = 7;- Returns:
- This builder for chaining.
-
setSymlinkTargetPathBytes
public BuildEventStreamProtos.File.Builder setSymlinkTargetPathBytes(com.google.protobuf.ByteString value) The symlink target path, if the file is an unresolved symlink.
string symlink_target_path = 7;- Parameters:
value- The bytes for symlinkTargetPath to set.- Returns:
- This builder for chaining.
-
getDigest
Digest of the file, using the build tool's configured digest algorithm, hex-encoded.
string digest = 5;- Specified by:
getDigestin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The digest.
-
getDigestBytes
public com.google.protobuf.ByteString getDigestBytes()Digest of the file, using the build tool's configured digest algorithm, hex-encoded.
string digest = 5;- Specified by:
getDigestBytesin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The bytes for digest.
-
setDigest
Digest of the file, using the build tool's configured digest algorithm, hex-encoded.
string digest = 5;- Parameters:
value- The digest to set.- Returns:
- This builder for chaining.
-
clearDigest
Digest of the file, using the build tool's configured digest algorithm, hex-encoded.
string digest = 5;- Returns:
- This builder for chaining.
-
setDigestBytes
Digest of the file, using the build tool's configured digest algorithm, hex-encoded.
string digest = 5;- Parameters:
value- The bytes for digest to set.- Returns:
- This builder for chaining.
-
getLength
public long getLength()Length of the file in bytes.
int64 length = 6;- Specified by:
getLengthin interfaceBuildEventStreamProtos.FileOrBuilder- Returns:
- The length.
-
setLength
Length of the file in bytes.
int64 length = 6;- Parameters:
value- The length to set.- Returns:
- This builder for chaining.
-
clearLength
Length of the file in bytes.
int64 length = 6;- Returns:
- This builder for chaining.
-