Package org.jetbrains.bsp.bazel.info
Class BspTargetInfo.RustCrateInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BspTargetInfo.RustCrateInfo.Builder>
org.jetbrains.bsp.bazel.info.BspTargetInfo.RustCrateInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,BspTargetInfo.RustCrateInfoOrBuilder
- Enclosing class:
- BspTargetInfo.RustCrateInfo
public static final class BspTargetInfo.RustCrateInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BspTargetInfo.RustCrateInfo.Builder>
implements BspTargetInfo.RustCrateInfoOrBuilder
Protobuf type
bazelbsp.RustCrateInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllCrateFeatures(Iterable<String> values) repeated string crate_features = 8;addAllDependenciesCrateIds(Iterable<String> values) repeated string dependencies_crate_ids = 9;addAllProcMacroArtifacts(Iterable<String> values) repeated string proc_macro_artifacts = 12;addCrateFeatures(String value) repeated string crate_features = 8;addCrateFeaturesBytes(com.google.protobuf.ByteString value) repeated string crate_features = 8;addDependenciesCrateIds(String value) repeated string dependencies_crate_ids = 9;addDependenciesCrateIdsBytes(com.google.protobuf.ByteString value) repeated string dependencies_crate_ids = 9;addProcMacroArtifacts(String value) repeated string proc_macro_artifacts = 12;addProcMacroArtifactsBytes(com.google.protobuf.ByteString value) repeated string proc_macro_artifacts = 12;build()clear()repeated string crate_features = 8;string crate_id = 1;string crate_root = 10;repeated string dependencies_crate_ids = 9;string edition = 6;bool from_workspace = 3;string kind = 5;.bazelbsp.RustCrateLocation location = 2;string name = 4;string out_dir = 7;repeated string proc_macro_artifacts = 12;string version = 11;getCrateFeatures(int index) repeated string crate_features = 8;com.google.protobuf.ByteStringgetCrateFeaturesBytes(int index) repeated string crate_features = 8;intrepeated string crate_features = 8;com.google.protobuf.ProtocolStringListrepeated string crate_features = 8;string crate_id = 1;com.google.protobuf.ByteStringstring crate_id = 1;string crate_root = 10;com.google.protobuf.ByteStringstring crate_root = 10;getDependenciesCrateIds(int index) repeated string dependencies_crate_ids = 9;com.google.protobuf.ByteStringgetDependenciesCrateIdsBytes(int index) repeated string dependencies_crate_ids = 9;intrepeated string dependencies_crate_ids = 9;com.google.protobuf.ProtocolStringListrepeated string dependencies_crate_ids = 9;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorstring edition = 6;com.google.protobuf.ByteStringstring edition = 6;booleanbool from_workspace = 3;getKind()string kind = 5;com.google.protobuf.ByteStringstring kind = 5;.bazelbsp.RustCrateLocation location = 2;int.bazelbsp.RustCrateLocation location = 2;getName()string name = 4;com.google.protobuf.ByteStringstring name = 4;string out_dir = 7;com.google.protobuf.ByteStringstring out_dir = 7;getProcMacroArtifacts(int index) repeated string proc_macro_artifacts = 12;com.google.protobuf.ByteStringgetProcMacroArtifactsBytes(int index) repeated string proc_macro_artifacts = 12;intrepeated string proc_macro_artifacts = 12;com.google.protobuf.ProtocolStringListrepeated string proc_macro_artifacts = 12;string version = 11;com.google.protobuf.ByteStringstring version = 11;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCrateFeatures(int index, String value) repeated string crate_features = 8;setCrateId(String value) string crate_id = 1;setCrateIdBytes(com.google.protobuf.ByteString value) string crate_id = 1;setCrateRoot(String value) string crate_root = 10;setCrateRootBytes(com.google.protobuf.ByteString value) string crate_root = 10;setDependenciesCrateIds(int index, String value) repeated string dependencies_crate_ids = 9;setEdition(String value) string edition = 6;setEditionBytes(com.google.protobuf.ByteString value) string edition = 6;setFromWorkspace(boolean value) bool from_workspace = 3;string kind = 5;setKindBytes(com.google.protobuf.ByteString value) string kind = 5;.bazelbsp.RustCrateLocation location = 2;setLocationValue(int value) .bazelbsp.RustCrateLocation location = 2;string name = 4;setNameBytes(com.google.protobuf.ByteString value) string name = 4;string out_dir = 7;setOutDirBytes(com.google.protobuf.ByteString value) string out_dir = 7;setProcMacroArtifacts(int index, String value) repeated string proc_macro_artifacts = 12;setVersion(String value) string version = 11;setVersionBytes(com.google.protobuf.ByteString value) string version = 11;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<BspTargetInfo.RustCrateInfo.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<BspTargetInfo.RustCrateInfo.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<BspTargetInfo.RustCrateInfo.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<BspTargetInfo.RustCrateInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BspTargetInfo.RustCrateInfo.Builder>
-
mergeFrom
public BspTargetInfo.RustCrateInfo.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<BspTargetInfo.RustCrateInfo.Builder>- Throws:
IOException
-
getCrateId
string crate_id = 1;- Specified by:
getCrateIdin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The crateId.
-
getCrateIdBytes
public com.google.protobuf.ByteString getCrateIdBytes()string crate_id = 1;- Specified by:
getCrateIdBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The bytes for crateId.
-
setCrateId
string crate_id = 1;- Parameters:
value- The crateId to set.- Returns:
- This builder for chaining.
-
clearCrateId
string crate_id = 1;- Returns:
- This builder for chaining.
-
setCrateIdBytes
string crate_id = 1;- Parameters:
value- The bytes for crateId to set.- Returns:
- This builder for chaining.
-
getLocationValue
public int getLocationValue().bazelbsp.RustCrateLocation location = 2;- Specified by:
getLocationValuein interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The enum numeric value on the wire for location.
-
setLocationValue
.bazelbsp.RustCrateLocation location = 2;- Parameters:
value- The enum numeric value on the wire for location to set.- Returns:
- This builder for chaining.
-
getLocation
.bazelbsp.RustCrateLocation location = 2;- Specified by:
getLocationin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The location.
-
setLocation
.bazelbsp.RustCrateLocation location = 2;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
.bazelbsp.RustCrateLocation location = 2;- Returns:
- This builder for chaining.
-
getFromWorkspace
public boolean getFromWorkspace()bool from_workspace = 3;- Specified by:
getFromWorkspacein interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The fromWorkspace.
-
setFromWorkspace
bool from_workspace = 3;- Parameters:
value- The fromWorkspace to set.- Returns:
- This builder for chaining.
-
clearFromWorkspace
bool from_workspace = 3;- Returns:
- This builder for chaining.
-
getName
string name = 4;- Specified by:
getNamein interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 4;- Specified by:
getNameBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The bytes for name.
-
setName
string name = 4;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 4;- Returns:
- This builder for chaining.
-
setNameBytes
string name = 4;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getKind
string kind = 5;- Specified by:
getKindin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()string kind = 5;- Specified by:
getKindBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The bytes for kind.
-
setKind
string kind = 5;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
string kind = 5;- Returns:
- This builder for chaining.
-
setKindBytes
string kind = 5;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
getEdition
string edition = 6;- Specified by:
getEditionin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The edition.
-
getEditionBytes
public com.google.protobuf.ByteString getEditionBytes()string edition = 6;- Specified by:
getEditionBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The bytes for edition.
-
setEdition
string edition = 6;- Parameters:
value- The edition to set.- Returns:
- This builder for chaining.
-
clearEdition
string edition = 6;- Returns:
- This builder for chaining.
-
setEditionBytes
string edition = 6;- Parameters:
value- The bytes for edition to set.- Returns:
- This builder for chaining.
-
getOutDir
string out_dir = 7;- Specified by:
getOutDirin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The outDir.
-
getOutDirBytes
public com.google.protobuf.ByteString getOutDirBytes()string out_dir = 7;- Specified by:
getOutDirBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The bytes for outDir.
-
setOutDir
string out_dir = 7;- Parameters:
value- The outDir to set.- Returns:
- This builder for chaining.
-
clearOutDir
string out_dir = 7;- Returns:
- This builder for chaining.
-
setOutDirBytes
string out_dir = 7;- Parameters:
value- The bytes for outDir to set.- Returns:
- This builder for chaining.
-
getCrateFeaturesList
public com.google.protobuf.ProtocolStringList getCrateFeaturesList()repeated string crate_features = 8;- Specified by:
getCrateFeaturesListin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- A list containing the crateFeatures.
-
getCrateFeaturesCount
public int getCrateFeaturesCount()repeated string crate_features = 8;- Specified by:
getCrateFeaturesCountin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The count of crateFeatures.
-
getCrateFeatures
repeated string crate_features = 8;- Specified by:
getCrateFeaturesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The crateFeatures at the given index.
-
getCrateFeaturesBytes
public com.google.protobuf.ByteString getCrateFeaturesBytes(int index) repeated string crate_features = 8;- Specified by:
getCrateFeaturesBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the crateFeatures at the given index.
-
setCrateFeatures
repeated string crate_features = 8;- Parameters:
index- The index to set the value at.value- The crateFeatures to set.- Returns:
- This builder for chaining.
-
addCrateFeatures
repeated string crate_features = 8;- Parameters:
value- The crateFeatures to add.- Returns:
- This builder for chaining.
-
addAllCrateFeatures
repeated string crate_features = 8;- Parameters:
values- The crateFeatures to add.- Returns:
- This builder for chaining.
-
clearCrateFeatures
repeated string crate_features = 8;- Returns:
- This builder for chaining.
-
addCrateFeaturesBytes
public BspTargetInfo.RustCrateInfo.Builder addCrateFeaturesBytes(com.google.protobuf.ByteString value) repeated string crate_features = 8;- Parameters:
value- The bytes of the crateFeatures to add.- Returns:
- This builder for chaining.
-
getDependenciesCrateIdsList
public com.google.protobuf.ProtocolStringList getDependenciesCrateIdsList()repeated string dependencies_crate_ids = 9;- Specified by:
getDependenciesCrateIdsListin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- A list containing the dependenciesCrateIds.
-
getDependenciesCrateIdsCount
public int getDependenciesCrateIdsCount()repeated string dependencies_crate_ids = 9;- Specified by:
getDependenciesCrateIdsCountin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The count of dependenciesCrateIds.
-
getDependenciesCrateIds
repeated string dependencies_crate_ids = 9;- Specified by:
getDependenciesCrateIdsin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dependenciesCrateIds at the given index.
-
getDependenciesCrateIdsBytes
public com.google.protobuf.ByteString getDependenciesCrateIdsBytes(int index) repeated string dependencies_crate_ids = 9;- Specified by:
getDependenciesCrateIdsBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dependenciesCrateIds at the given index.
-
setDependenciesCrateIds
repeated string dependencies_crate_ids = 9;- Parameters:
index- The index to set the value at.value- The dependenciesCrateIds to set.- Returns:
- This builder for chaining.
-
addDependenciesCrateIds
repeated string dependencies_crate_ids = 9;- Parameters:
value- The dependenciesCrateIds to add.- Returns:
- This builder for chaining.
-
addAllDependenciesCrateIds
repeated string dependencies_crate_ids = 9;- Parameters:
values- The dependenciesCrateIds to add.- Returns:
- This builder for chaining.
-
clearDependenciesCrateIds
repeated string dependencies_crate_ids = 9;- Returns:
- This builder for chaining.
-
addDependenciesCrateIdsBytes
public BspTargetInfo.RustCrateInfo.Builder addDependenciesCrateIdsBytes(com.google.protobuf.ByteString value) repeated string dependencies_crate_ids = 9;- Parameters:
value- The bytes of the dependenciesCrateIds to add.- Returns:
- This builder for chaining.
-
getCrateRoot
string crate_root = 10;- Specified by:
getCrateRootin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The crateRoot.
-
getCrateRootBytes
public com.google.protobuf.ByteString getCrateRootBytes()string crate_root = 10;- Specified by:
getCrateRootBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The bytes for crateRoot.
-
setCrateRoot
string crate_root = 10;- Parameters:
value- The crateRoot to set.- Returns:
- This builder for chaining.
-
clearCrateRoot
string crate_root = 10;- Returns:
- This builder for chaining.
-
setCrateRootBytes
string crate_root = 10;- Parameters:
value- The bytes for crateRoot to set.- Returns:
- This builder for chaining.
-
getVersion
string version = 11;- Specified by:
getVersionin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()string version = 11;- Specified by:
getVersionBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The bytes for version.
-
setVersion
string version = 11;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
string version = 11;- Returns:
- This builder for chaining.
-
setVersionBytes
string version = 11;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
getProcMacroArtifactsList
public com.google.protobuf.ProtocolStringList getProcMacroArtifactsList()repeated string proc_macro_artifacts = 12;- Specified by:
getProcMacroArtifactsListin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- A list containing the procMacroArtifacts.
-
getProcMacroArtifactsCount
public int getProcMacroArtifactsCount()repeated string proc_macro_artifacts = 12;- Specified by:
getProcMacroArtifactsCountin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Returns:
- The count of procMacroArtifacts.
-
getProcMacroArtifacts
repeated string proc_macro_artifacts = 12;- Specified by:
getProcMacroArtifactsin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The procMacroArtifacts at the given index.
-
getProcMacroArtifactsBytes
public com.google.protobuf.ByteString getProcMacroArtifactsBytes(int index) repeated string proc_macro_artifacts = 12;- Specified by:
getProcMacroArtifactsBytesin interfaceBspTargetInfo.RustCrateInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the procMacroArtifacts at the given index.
-
setProcMacroArtifacts
repeated string proc_macro_artifacts = 12;- Parameters:
index- The index to set the value at.value- The procMacroArtifacts to set.- Returns:
- This builder for chaining.
-
addProcMacroArtifacts
repeated string proc_macro_artifacts = 12;- Parameters:
value- The procMacroArtifacts to add.- Returns:
- This builder for chaining.
-
addAllProcMacroArtifacts
repeated string proc_macro_artifacts = 12;- Parameters:
values- The procMacroArtifacts to add.- Returns:
- This builder for chaining.
-
clearProcMacroArtifacts
repeated string proc_macro_artifacts = 12;- Returns:
- This builder for chaining.
-
addProcMacroArtifactsBytes
public BspTargetInfo.RustCrateInfo.Builder addProcMacroArtifactsBytes(com.google.protobuf.ByteString value) repeated string proc_macro_artifacts = 12;- Parameters:
value- The bytes of the procMacroArtifacts to add.- Returns:
- This builder for chaining.
-