Package com.google.javascript.jscomp
Class Instrumentation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
com.google.javascript.jscomp.Instrumentation.Builder
- All Implemented Interfaces:
InstrumentationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Instrumentation
public static final class Instrumentation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
implements InstrumentationOrBuilder
Protobuf type
jscomp.Instrumentation-
Method Summary
Modifier and TypeMethodDescriptionaddAllDeclarationToRemove(Iterable<String> values) List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness.addAllInit(Iterable<String> values) Definition of functions used to report module contents and function calls.addDeclarationToRemove(String value) List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness.addDeclarationToRemoveBytes(com.google.protobuf.ByteString value) List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness.Definition of functions used to report module contents and function calls.addInitBytes(com.google.protobuf.ByteString value) Definition of functions used to report module contents and function calls.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()name of function(<string>); used to inform the harness about the app nameList of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Definition of functions used to report module contents and function calls.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) name of function(ID = <numeric function id>); used to inform the harness about a function callname of function(ID = <numeric function id>); used to inform the harness about the contents of a modulename of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit.clone()name of function(<string>); used to inform the harness about the app namecom.google.protobuf.ByteStringname of function(<string>); used to inform the harness about the app namegetDeclarationToRemove(int index) List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness.com.google.protobuf.ByteStringgetDeclarationToRemoveBytes(int index) List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness.intList of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness.com.google.protobuf.ProtocolStringListList of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInit(int index) Definition of functions used to report module contents and function calls.com.google.protobuf.ByteStringgetInitBytes(int index) Definition of functions used to report module contents and function calls.intDefinition of functions used to report module contents and function calls.com.google.protobuf.ProtocolStringListDefinition of functions used to report module contents and function calls.name of function(ID = <numeric function id>); used to inform the harness about a function callcom.google.protobuf.ByteStringname of function(ID = <numeric function id>); used to inform the harness about a function callname of function(ID = <numeric function id>); used to inform the harness about the contents of a modulecom.google.protobuf.ByteStringname of function(ID = <numeric function id>); used to inform the harness about the contents of a modulename of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit.com.google.protobuf.ByteStringname of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit.booleanname of function(<string>); used to inform the harness about the app namebooleanname of function(ID = <numeric function id>); used to inform the harness about a function callbooleanname of function(ID = <numeric function id>); used to inform the harness about the contents of a modulebooleanname of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Instrumentation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Instrumentation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAppNameSetter(String value) name of function(<string>); used to inform the harness about the app namesetAppNameSetterBytes(com.google.protobuf.ByteString value) name of function(<string>); used to inform the harness about the app namesetDeclarationToRemove(int index, String value) List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness.Definition of functions used to report module contents and function calls.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setReportCall(String value) name of function(ID = <numeric function id>); used to inform the harness about a function callsetReportCallBytes(com.google.protobuf.ByteString value) name of function(ID = <numeric function id>); used to inform the harness about a function callsetReportDefined(String value) name of function(ID = <numeric function id>); used to inform the harness about the contents of a modulesetReportDefinedBytes(com.google.protobuf.ByteString value) name of function(ID = <numeric function id>); used to inform the harness about the contents of a modulesetReportExit(String value) name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit.setReportExitBytes(com.google.protobuf.ByteString value) name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit.final Instrumentation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.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<Instrumentation.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<Instrumentation.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
setField
public Instrumentation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
setRepeatedField
public Instrumentation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
addRepeatedField
public Instrumentation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instrumentation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
mergeFrom
public Instrumentation.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<Instrumentation.Builder>- Throws:
IOException
-
hasReportDefined
public boolean hasReportDefined()name of function(ID = <numeric function id>); used to inform the harness about the contents of a module
optional string report_defined = 1;- Specified by:
hasReportDefinedin interfaceInstrumentationOrBuilder- Returns:
- Whether the reportDefined field is set.
-
getReportDefined
name of function(ID = <numeric function id>); used to inform the harness about the contents of a module
optional string report_defined = 1;- Specified by:
getReportDefinedin interfaceInstrumentationOrBuilder- Returns:
- The reportDefined.
-
getReportDefinedBytes
public com.google.protobuf.ByteString getReportDefinedBytes()name of function(ID = <numeric function id>); used to inform the harness about the contents of a module
optional string report_defined = 1;- Specified by:
getReportDefinedBytesin interfaceInstrumentationOrBuilder- Returns:
- The bytes for reportDefined.
-
setReportDefined
name of function(ID = <numeric function id>); used to inform the harness about the contents of a module
optional string report_defined = 1;- Parameters:
value- The reportDefined to set.- Returns:
- This builder for chaining.
-
clearReportDefined
name of function(ID = <numeric function id>); used to inform the harness about the contents of a module
optional string report_defined = 1;- Returns:
- This builder for chaining.
-
setReportDefinedBytes
name of function(ID = <numeric function id>); used to inform the harness about the contents of a module
optional string report_defined = 1;- Parameters:
value- The bytes for reportDefined to set.- Returns:
- This builder for chaining.
-
hasReportCall
public boolean hasReportCall()name of function(ID = <numeric function id>); used to inform the harness about a function call
optional string report_call = 2;- Specified by:
hasReportCallin interfaceInstrumentationOrBuilder- Returns:
- Whether the reportCall field is set.
-
getReportCall
name of function(ID = <numeric function id>); used to inform the harness about a function call
optional string report_call = 2;- Specified by:
getReportCallin interfaceInstrumentationOrBuilder- Returns:
- The reportCall.
-
getReportCallBytes
public com.google.protobuf.ByteString getReportCallBytes()name of function(ID = <numeric function id>); used to inform the harness about a function call
optional string report_call = 2;- Specified by:
getReportCallBytesin interfaceInstrumentationOrBuilder- Returns:
- The bytes for reportCall.
-
setReportCall
name of function(ID = <numeric function id>); used to inform the harness about a function call
optional string report_call = 2;- Parameters:
value- The reportCall to set.- Returns:
- This builder for chaining.
-
clearReportCall
name of function(ID = <numeric function id>); used to inform the harness about a function call
optional string report_call = 2;- Returns:
- This builder for chaining.
-
setReportCallBytes
name of function(ID = <numeric function id>); used to inform the harness about a function call
optional string report_call = 2;- Parameters:
value- The bytes for reportCall to set.- Returns:
- This builder for chaining.
-
hasReportExit
public boolean hasReportExit()name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit. Must return its second argument. @returns VAL
optional string report_exit = 6;- Specified by:
hasReportExitin interfaceInstrumentationOrBuilder- Returns:
- Whether the reportExit field is set.
-
getReportExit
name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit. Must return its second argument. @returns VAL
optional string report_exit = 6;- Specified by:
getReportExitin interfaceInstrumentationOrBuilder- Returns:
- The reportExit.
-
getReportExitBytes
public com.google.protobuf.ByteString getReportExitBytes()name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit. Must return its second argument. @returns VAL
optional string report_exit = 6;- Specified by:
getReportExitBytesin interfaceInstrumentationOrBuilder- Returns:
- The bytes for reportExit.
-
setReportExit
name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit. Must return its second argument. @returns VAL
optional string report_exit = 6;- Parameters:
value- The reportExit to set.- Returns:
- This builder for chaining.
-
clearReportExit
name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit. Must return its second argument. @returns VAL
optional string report_exit = 6;- Returns:
- This builder for chaining.
-
setReportExitBytes
name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit. Must return its second argument. @returns VAL
optional string report_exit = 6;- Parameters:
value- The bytes for reportExit to set.- Returns:
- This builder for chaining.
-
getDeclarationToRemoveList
public com.google.protobuf.ProtocolStringList getDeclarationToRemoveList()List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness. The presence of these declarations in the original code allows debug UIs that access these variables to compile when the instrumentation pass is disabled.
repeated string declaration_to_remove = 3;- Specified by:
getDeclarationToRemoveListin interfaceInstrumentationOrBuilder- Returns:
- A list containing the declarationToRemove.
-
getDeclarationToRemoveCount
public int getDeclarationToRemoveCount()List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness. The presence of these declarations in the original code allows debug UIs that access these variables to compile when the instrumentation pass is disabled.
repeated string declaration_to_remove = 3;- Specified by:
getDeclarationToRemoveCountin interfaceInstrumentationOrBuilder- Returns:
- The count of declarationToRemove.
-
getDeclarationToRemove
List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness. The presence of these declarations in the original code allows debug UIs that access these variables to compile when the instrumentation pass is disabled.
repeated string declaration_to_remove = 3;- Specified by:
getDeclarationToRemovein interfaceInstrumentationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The declarationToRemove at the given index.
-
getDeclarationToRemoveBytes
public com.google.protobuf.ByteString getDeclarationToRemoveBytes(int index) List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness. The presence of these declarations in the original code allows debug UIs that access these variables to compile when the instrumentation pass is disabled.
repeated string declaration_to_remove = 3;- Specified by:
getDeclarationToRemoveBytesin interfaceInstrumentationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the declarationToRemove at the given index.
-
setDeclarationToRemove
List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness. The presence of these declarations in the original code allows debug UIs that access these variables to compile when the instrumentation pass is disabled.
repeated string declaration_to_remove = 3;- Parameters:
index- The index to set the value at.value- The declarationToRemove to set.- Returns:
- This builder for chaining.
-
addDeclarationToRemove
List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness. The presence of these declarations in the original code allows debug UIs that access these variables to compile when the instrumentation pass is disabled.
repeated string declaration_to_remove = 3;- Parameters:
value- The declarationToRemove to add.- Returns:
- This builder for chaining.
-
addAllDeclarationToRemove
List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness. The presence of these declarations in the original code allows debug UIs that access these variables to compile when the instrumentation pass is disabled.
repeated string declaration_to_remove = 3;- Parameters:
values- The declarationToRemove to add.- Returns:
- This builder for chaining.
-
clearDeclarationToRemove
List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness. The presence of these declarations in the original code allows debug UIs that access these variables to compile when the instrumentation pass is disabled.
repeated string declaration_to_remove = 3;- Returns:
- This builder for chaining.
-
addDeclarationToRemoveBytes
List of variable declarations in the application's source code that should be replaced by variables with the same name that are part of the instrumentation harness. The presence of these declarations in the original code allows debug UIs that access these variables to compile when the instrumentation pass is disabled.
repeated string declaration_to_remove = 3;- Parameters:
value- The bytes of the declarationToRemove to add.- Returns:
- This builder for chaining.
-
getInitList
public com.google.protobuf.ProtocolStringList getInitList()Definition of functions used to report module contents and function calls. Will be added to the start of the app's main module.
repeated string init = 4;- Specified by:
getInitListin interfaceInstrumentationOrBuilder- Returns:
- A list containing the init.
-
getInitCount
public int getInitCount()Definition of functions used to report module contents and function calls. Will be added to the start of the app's main module.
repeated string init = 4;- Specified by:
getInitCountin interfaceInstrumentationOrBuilder- Returns:
- The count of init.
-
getInit
Definition of functions used to report module contents and function calls. Will be added to the start of the app's main module.
repeated string init = 4;- Specified by:
getInitin interfaceInstrumentationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The init at the given index.
-
getInitBytes
public com.google.protobuf.ByteString getInitBytes(int index) Definition of functions used to report module contents and function calls. Will be added to the start of the app's main module.
repeated string init = 4;- Specified by:
getInitBytesin interfaceInstrumentationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the init at the given index.
-
setInit
Definition of functions used to report module contents and function calls. Will be added to the start of the app's main module.
repeated string init = 4;- Parameters:
index- The index to set the value at.value- The init to set.- Returns:
- This builder for chaining.
-
addInit
Definition of functions used to report module contents and function calls. Will be added to the start of the app's main module.
repeated string init = 4;- Parameters:
value- The init to add.- Returns:
- This builder for chaining.
-
addAllInit
Definition of functions used to report module contents and function calls. Will be added to the start of the app's main module.
repeated string init = 4;- Parameters:
values- The init to add.- Returns:
- This builder for chaining.
-
clearInit
Definition of functions used to report module contents and function calls. Will be added to the start of the app's main module.
repeated string init = 4;- Returns:
- This builder for chaining.
-
addInitBytes
Definition of functions used to report module contents and function calls. Will be added to the start of the app's main module.
repeated string init = 4;- Parameters:
value- The bytes of the init to add.- Returns:
- This builder for chaining.
-
hasAppNameSetter
public boolean hasAppNameSetter()name of function(<string>); used to inform the harness about the app name
optional string app_name_setter = 5;- Specified by:
hasAppNameSetterin interfaceInstrumentationOrBuilder- Returns:
- Whether the appNameSetter field is set.
-
getAppNameSetter
name of function(<string>); used to inform the harness about the app name
optional string app_name_setter = 5;- Specified by:
getAppNameSetterin interfaceInstrumentationOrBuilder- Returns:
- The appNameSetter.
-
getAppNameSetterBytes
public com.google.protobuf.ByteString getAppNameSetterBytes()name of function(<string>); used to inform the harness about the app name
optional string app_name_setter = 5;- Specified by:
getAppNameSetterBytesin interfaceInstrumentationOrBuilder- Returns:
- The bytes for appNameSetter.
-
setAppNameSetter
name of function(<string>); used to inform the harness about the app name
optional string app_name_setter = 5;- Parameters:
value- The appNameSetter to set.- Returns:
- This builder for chaining.
-
clearAppNameSetter
name of function(<string>); used to inform the harness about the app name
optional string app_name_setter = 5;- Returns:
- This builder for chaining.
-
setAppNameSetterBytes
name of function(<string>); used to inform the harness about the app name
optional string app_name_setter = 5;- Parameters:
value- The bytes for appNameSetter to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Instrumentation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
mergeUnknownFields
public final Instrumentation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-