Class BuildEventStreamProtos.File.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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,java.lang.Cloneable
- Enclosing class:
- BuildEventStreamProtos.File
public static final class BuildEventStreamProtos.File.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder> implements BuildEventStreamProtos.FileOrBuilder
Protobuf typebuild_event_stream.File
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildEventStreamProtos.File.BuilderaddAllPathPrefix(java.lang.Iterable<java.lang.String> values)A sequence of prefixes to apply to the file name to construct a full path.BuildEventStreamProtos.File.BuilderaddPathPrefix(java.lang.String value)A sequence of prefixes to apply to the file name to construct a full path.BuildEventStreamProtos.File.BuilderaddPathPrefixBytes(com.google.protobuf.ByteString value)A sequence of prefixes to apply to the file name to construct a full path.BuildEventStreamProtos.File.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BuildEventStreamProtos.Filebuild()BuildEventStreamProtos.FilebuildPartial()BuildEventStreamProtos.File.Builderclear()BuildEventStreamProtos.File.BuilderclearContents()The contents of the file, if they are guaranteed to be short.BuildEventStreamProtos.File.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BuildEventStreamProtos.File.BuilderclearFile()BuildEventStreamProtos.File.BuilderclearName()identifier indicating the nature of the file (e.g., "stdout", "stderr")BuildEventStreamProtos.File.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BuildEventStreamProtos.File.BuilderclearPathPrefix()A sequence of prefixes to apply to the file name to construct a full path.BuildEventStreamProtos.File.BuilderclearUri()A location where the contents of the file can be found.BuildEventStreamProtos.File.Builderclone()com.google.protobuf.ByteStringgetContents()The contents of the file, if they are guaranteed to be short.BuildEventStreamProtos.FilegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()BuildEventStreamProtos.File.FileCasegetFileCase()java.lang.StringgetName()identifier indicating the nature of the file (e.g., "stdout", "stderr")com.google.protobuf.ByteStringgetNameBytes()identifier indicating the nature of the file (e.g., "stdout", "stderr")java.lang.StringgetPathPrefix(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.intgetPathPrefixCount()A sequence of prefixes to apply to the file name to construct a full path.com.google.protobuf.ProtocolStringListgetPathPrefixList()A sequence of prefixes to apply to the file name to construct a full path.java.lang.StringgetUri()A location where the contents of the file can be found.com.google.protobuf.ByteStringgetUriBytes()A location where the contents of the file can be found.booleanhasContents()The contents of the file, if they are guaranteed to be short.booleanhasUri()A location where the contents of the file can be found.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BuildEventStreamProtos.File.BuildermergeFrom(BuildEventStreamProtos.File other)BuildEventStreamProtos.File.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BuildEventStreamProtos.File.BuildermergeFrom(com.google.protobuf.Message other)BuildEventStreamProtos.File.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BuildEventStreamProtos.File.BuildersetContents(com.google.protobuf.ByteString value)The contents of the file, if they are guaranteed to be short.BuildEventStreamProtos.File.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BuildEventStreamProtos.File.BuildersetName(java.lang.String value)identifier indicating the nature of the file (e.g., "stdout", "stderr")BuildEventStreamProtos.File.BuildersetNameBytes(com.google.protobuf.ByteString value)identifier indicating the nature of the file (e.g., "stdout", "stderr")BuildEventStreamProtos.File.BuildersetPathPrefix(int index, java.lang.String value)A sequence of prefixes to apply to the file name to construct a full path.BuildEventStreamProtos.File.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)BuildEventStreamProtos.File.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BuildEventStreamProtos.File.BuildersetUri(java.lang.String value)A location where the contents of the file can be found.BuildEventStreamProtos.File.BuildersetUriBytes(com.google.protobuf.ByteString value)A location where the contents of the file can be found.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
getDefaultInstanceForType
public BuildEventStreamProtos.File getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BuildEventStreamProtos.File build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BuildEventStreamProtos.File buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BuildEventStreamProtos.File.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
setField
public BuildEventStreamProtos.File.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
clearField
public BuildEventStreamProtos.File.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
clearOneof
public BuildEventStreamProtos.File.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
setRepeatedField
public BuildEventStreamProtos.File.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
addRepeatedField
public BuildEventStreamProtos.File.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
mergeFrom
public BuildEventStreamProtos.File.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildEventStreamProtos.File.Builder>
-
mergeFrom
public BuildEventStreamProtos.File.Builder mergeFrom(BuildEventStreamProtos.File other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
mergeFrom
public BuildEventStreamProtos.File.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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:
java.io.IOException
-
getFileCase
public BuildEventStreamProtos.File.FileCase getFileCase()
- Specified by:
getFileCasein interfaceBuildEventStreamProtos.FileOrBuilder
-
clearFile
public BuildEventStreamProtos.File.Builder 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
public java.lang.String getPathPrefix(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:
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
public BuildEventStreamProtos.File.Builder setPathPrefix(int index, java.lang.String value)
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
public BuildEventStreamProtos.File.Builder addPathPrefix(java.lang.String value)
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
public BuildEventStreamProtos.File.Builder addAllPathPrefix(java.lang.Iterable<java.lang.String> values)
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
public BuildEventStreamProtos.File.Builder 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
public BuildEventStreamProtos.File.Builder addPathPrefixBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public BuildEventStreamProtos.File.Builder setName(java.lang.String value)
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
public BuildEventStreamProtos.File.Builder clearName()
identifier indicating the nature of the file (e.g., "stdout", "stderr")
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public BuildEventStreamProtos.File.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public BuildEventStreamProtos.File.Builder setUri(java.lang.String value)
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
public BuildEventStreamProtos.File.Builder 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
public BuildEventStreamProtos.File.Builder setUriBytes(com.google.protobuf.ByteString value)
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
public BuildEventStreamProtos.File.Builder setContents(com.google.protobuf.ByteString value)
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
public BuildEventStreamProtos.File.Builder clearContents()
The contents of the file, if they are guaranteed to be short.
bytes contents = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final BuildEventStreamProtos.File.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
mergeUnknownFields
public final BuildEventStreamProtos.File.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildEventStreamProtos.File.Builder>
-
-