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.ByteString
name 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.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.int
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.ProtocolStringList
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.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getInit
(int index) Definition of functions used to report module contents and function calls.com.google.protobuf.ByteString
getInitBytes
(int index) Definition of functions used to report module contents and function calls.int
Definition of functions used to report module contents and function calls.com.google.protobuf.ProtocolStringList
Definition 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.ByteString
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 modulecom.google.protobuf.ByteString
name 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.ByteString
name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit.boolean
name of function(<string>); used to inform the harness about the app nameboolean
name of function(ID = <numeric function id>); used to inform the harness about a function callboolean
name of function(ID = <numeric function id>); used to inform the harness about the contents of a moduleboolean
name of function(ID = <numeric function id>, VAL = <return value>); used to inform the harness about a function exit.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(Instrumentation other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final Instrumentation.Builder
mergeUnknownFields
(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.Builder
setUnknownFields
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
setField
public Instrumentation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
setRepeatedField
public Instrumentation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
addRepeatedField
public Instrumentation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Instrumentation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasReportDefined
in 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:
getReportDefined
in 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:
getReportDefinedBytes
in 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:
hasReportCall
in 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:
getReportCall
in 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:
getReportCallBytes
in 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:
hasReportExit
in 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:
getReportExit
in 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:
getReportExitBytes
in 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:
getDeclarationToRemoveList
in 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:
getDeclarationToRemoveCount
in 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:
getDeclarationToRemove
in 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:
getDeclarationToRemoveBytes
in 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:
getInitList
in 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:
getInitCount
in 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:
getInit
in 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:
getInitBytes
in 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:
hasAppNameSetter
in 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:
getAppNameSetter
in 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:
getAppNameSetterBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-
mergeUnknownFields
public final Instrumentation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instrumentation.Builder>
-