Class Variable.Builder (1.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 1.60.0 (latest)
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.1.10
publicstaticfinalclass Variable.BuilderextendsGeneratedMessageV3.Builder<Variable.Builder>implementsVariableOrBuilder Represents a variable or an argument possibly of a compound object type.
Note how the following variables are represented:
1) A simple variable:
int x = 5
{ name: "x", value: "5", type: "int" } // Captured variable
2) A compound object:
struct T {
int m1;
int m2;
};
T x = { 3, 7 };
{ // Captured variable
name: "x",
type: "T",
members { name: "m1", value: "3", type: "int" },
members { name: "m2", value: "7", type: "int" }
}
3) A pointer where the pointee was captured:
T x = { 3, 7 };
T* p = &x;
{ // Captured variable
name: "p",
type: "T",
value: "0x00500500",
members { name: "m1", value: "3", type: "int" },
members { name: "m2", value: "7", type: "int" }
}
4) A pointer where the pointee was not captured:
T p = new T;
{ // Captured variable
name: "p",
type: "T",
value: "0x00400400"
status { is_error: true, description { format: "unavailable" } }
}
The status should describe the reason for the missing value,
such as <optimized out>, <inaccessible>, <pointers limit reached>.
Note that a null pointer should not have members.
5) An unnamed value:
int p = new int(7);
{ // Captured variable
name: "p",
value: "0x00500500",
type: "int",
members { value: "7", type: "int" } }
6) An unnamed pointer where the pointee was not captured:
int p = new int(7);
int** pp = &p;
{ // Captured variable
name: "pp",
value: "0x00500500",
type: "int*",
members {
value: "0x00400400",
type: "int"
status {
is_error: true,
description: { format: "unavailable" } }
}
}
}
To optimize computation, memory and network traffic, variables that
repeat in the output multiple times can be stored once in a shared
variable table and be referenced using the var_table_index field. The
variables stored in the shared table are nameless and are essentially
a partition of the complete variable. To reconstruct the complete
variable, merge the referencing variable with the referenced variable.
When using the shared variable table, the following variables:
T x = { 3, 7 };
T* p = &x;
T& r = x;
{ name: "x", var_table_index: 3, type: "T" } // Captured variables
{ name: "p", value "0x00500500", type="T*", var_table_index: 3 }
{ name: "r", type="T&", var_table_index: 3 }
{ // Shared variable table entry #3:
members { name: "m1", value: "3", type: "int" },
members { name: "m2", value: "7", type: "int" }
}
Note that the pointer address is stored with the referencing variable
and not with the referenced variable. This allows the referenced variable
to be shared between pointers and references.
The type field is optional. The debugger agent may or may not support it.
Protobuf type google.devtools.clouddebugger.v2.Variable
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Variable.BuilderImplements
VariableOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()Methods
addAllMembers(Iterable<? extends Variable> values)
publicVariable.BuilderaddAllMembers(Iterable<?extendsVariable>values)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
addMembers(Variable value)
publicVariable.BuilderaddMembers(Variablevalue)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
addMembers(Variable.Builder builderForValue)
publicVariable.BuilderaddMembers(Variable.BuilderbuilderForValue)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
addMembers(int index, Variable value)
publicVariable.BuilderaddMembers(intindex,Variablevalue)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
addMembers(int index, Variable.Builder builderForValue)
publicVariable.BuilderaddMembers(intindex,Variable.BuilderbuilderForValue)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
addMembersBuilder()
publicVariable.BuilderaddMembersBuilder()Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
addMembersBuilder(int index)
publicVariable.BuilderaddMembersBuilder(intindex)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicVariable.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)build()
publicVariablebuild()buildPartial()
publicVariablebuildPartial()clear()
publicVariable.Builderclear()clearField(Descriptors.FieldDescriptor field)
publicVariable.BuilderclearField(Descriptors.FieldDescriptorfield)clearMembers()
publicVariable.BuilderclearMembers()Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
clearName()
publicVariable.BuilderclearName()Name of the variable, if any.
string name = 1;
Variable.Builder
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
publicVariable.BuilderclearOneof(Descriptors.OneofDescriptoroneof)clearStatus()
publicVariable.BuilderclearStatus() Status associated with the variable. This field will usually stay
unset. A status of a single variable only applies to that variable or
expression. The rest of breakpoint data still remains valid. Variables
might be reported in error state even when breakpoint is not in final
state.
The message may refer to variable name with refers_to set to
VARIABLE_NAME. Alternatively refers_to will be set to VARIABLE_VALUE.
In either case variable value and members will be unset.
Example of error message applied to name: Invalid expression syntax.
Example of information message applied to value: Not captured.
Examples of error message applied to value:
Malformed string,Field f not found in class CNull pointer dereference
.google.devtools.clouddebugger.v2.StatusMessage status = 5;
clearType()
publicVariable.BuilderclearType() Variable type (e.g. MyClass). If the variable is split with
var_table_index, type goes next to value. The interpretation of
a type is agent specific. It is recommended to include the dynamic type
rather than a static type of an object.
string type = 6;
Variable.Builder
This builder for chaining.
clearValue()
publicVariable.BuilderclearValue()Simple value of the variable.
string value = 2;
Variable.Builder
This builder for chaining.
clearVarTableIndex()
publicVariable.BuilderclearVarTableIndex() Reference to a variable in the shared variable table. More than
one variable can reference the same variable in the table. The
var_table_index field is an index into variable_table in Breakpoint.
.google.protobuf.Int32Value var_table_index = 4;
clone()
publicVariable.Builderclone()getDefaultInstanceForType()
publicVariablegetDefaultInstanceForType()getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()getMembers(int index)
publicVariablegetMembers(intindex)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
getMembersBuilder(int index)
publicVariable.BuildergetMembersBuilder(intindex)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
getMembersBuilderList()
publicList<Variable.Builder>getMembersBuilderList()Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
getMembersCount()
publicintgetMembersCount()Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
getMembersList()
publicList<Variable>getMembersList()Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
getMembersOrBuilder(int index)
publicVariableOrBuildergetMembersOrBuilder(intindex)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
getMembersOrBuilderList()
publicList<?extendsVariableOrBuilder>getMembersOrBuilderList()Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
List<? extends com.google.devtools.clouddebugger.v2.VariableOrBuilder>
getName()
publicStringgetName()Name of the variable, if any.
string name = 1;
String
The name.
getNameBytes()
publicByteStringgetNameBytes()Name of the variable, if any.
string name = 1;
ByteString
The bytes for name.
getStatus()
publicStatusMessagegetStatus() Status associated with the variable. This field will usually stay
unset. A status of a single variable only applies to that variable or
expression. The rest of breakpoint data still remains valid. Variables
might be reported in error state even when breakpoint is not in final
state.
The message may refer to variable name with refers_to set to
VARIABLE_NAME. Alternatively refers_to will be set to VARIABLE_VALUE.
In either case variable value and members will be unset.
Example of error message applied to name: Invalid expression syntax.
Example of information message applied to value: Not captured.
Examples of error message applied to value:
Malformed string,Field f not found in class CNull pointer dereference
.google.devtools.clouddebugger.v2.StatusMessage status = 5;
StatusMessage
The status.
getStatusBuilder()
publicStatusMessage.BuildergetStatusBuilder() Status associated with the variable. This field will usually stay
unset. A status of a single variable only applies to that variable or
expression. The rest of breakpoint data still remains valid. Variables
might be reported in error state even when breakpoint is not in final
state.
The message may refer to variable name with refers_to set to
VARIABLE_NAME. Alternatively refers_to will be set to VARIABLE_VALUE.
In either case variable value and members will be unset.
Example of error message applied to name: Invalid expression syntax.
Example of information message applied to value: Not captured.
Examples of error message applied to value:
Malformed string,Field f not found in class CNull pointer dereference
.google.devtools.clouddebugger.v2.StatusMessage status = 5;
getStatusOrBuilder()
publicStatusMessageOrBuildergetStatusOrBuilder() Status associated with the variable. This field will usually stay
unset. A status of a single variable only applies to that variable or
expression. The rest of breakpoint data still remains valid. Variables
might be reported in error state even when breakpoint is not in final
state.
The message may refer to variable name with refers_to set to
VARIABLE_NAME. Alternatively refers_to will be set to VARIABLE_VALUE.
In either case variable value and members will be unset.
Example of error message applied to name: Invalid expression syntax.
Example of information message applied to value: Not captured.
Examples of error message applied to value:
Malformed string,Field f not found in class CNull pointer dereference
.google.devtools.clouddebugger.v2.StatusMessage status = 5;
getType()
publicStringgetType() Variable type (e.g. MyClass). If the variable is split with
var_table_index, type goes next to value. The interpretation of
a type is agent specific. It is recommended to include the dynamic type
rather than a static type of an object.
string type = 6;
String
The type.
getTypeBytes()
publicByteStringgetTypeBytes() Variable type (e.g. MyClass). If the variable is split with
var_table_index, type goes next to value. The interpretation of
a type is agent specific. It is recommended to include the dynamic type
rather than a static type of an object.
string type = 6;
ByteString
The bytes for type.
getValue()
publicStringgetValue()Simple value of the variable.
string value = 2;
String
The value.
getValueBytes()
publicByteStringgetValueBytes()Simple value of the variable.
string value = 2;
ByteString
The bytes for value.
getVarTableIndex()
publicInt32ValuegetVarTableIndex() Reference to a variable in the shared variable table. More than
one variable can reference the same variable in the table. The
var_table_index field is an index into variable_table in Breakpoint.
.google.protobuf.Int32Value var_table_index = 4;
Int32Value
The varTableIndex.
getVarTableIndexBuilder()
publicInt32Value.BuildergetVarTableIndexBuilder() Reference to a variable in the shared variable table. More than
one variable can reference the same variable in the table. The
var_table_index field is an index into variable_table in Breakpoint.
.google.protobuf.Int32Value var_table_index = 4;
getVarTableIndexOrBuilder()
publicInt32ValueOrBuildergetVarTableIndexOrBuilder() Reference to a variable in the shared variable table. More than
one variable can reference the same variable in the table. The
var_table_index field is an index into variable_table in Breakpoint.
.google.protobuf.Int32Value var_table_index = 4;
hasStatus()
publicbooleanhasStatus() Status associated with the variable. This field will usually stay
unset. A status of a single variable only applies to that variable or
expression. The rest of breakpoint data still remains valid. Variables
might be reported in error state even when breakpoint is not in final
state.
The message may refer to variable name with refers_to set to
VARIABLE_NAME. Alternatively refers_to will be set to VARIABLE_VALUE.
In either case variable value and members will be unset.
Example of error message applied to name: Invalid expression syntax.
Example of information message applied to value: Not captured.
Examples of error message applied to value:
Malformed string,Field f not found in class CNull pointer dereference
.google.devtools.clouddebugger.v2.StatusMessage status = 5;
boolean
Whether the status field is set.
hasVarTableIndex()
publicbooleanhasVarTableIndex() Reference to a variable in the shared variable table. More than
one variable can reference the same variable in the table. The
var_table_index field is an index into variable_table in Breakpoint.
.google.protobuf.Int32Value var_table_index = 4;
boolean
Whether the varTableIndex field is set.
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()mergeFrom(Variable other)
publicVariable.BuildermergeFrom(Variableother)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicVariable.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicVariable.BuildermergeFrom(Messageother)mergeStatus(StatusMessage value)
publicVariable.BuildermergeStatus(StatusMessagevalue) Status associated with the variable. This field will usually stay
unset. A status of a single variable only applies to that variable or
expression. The rest of breakpoint data still remains valid. Variables
might be reported in error state even when breakpoint is not in final
state.
The message may refer to variable name with refers_to set to
VARIABLE_NAME. Alternatively refers_to will be set to VARIABLE_VALUE.
In either case variable value and members will be unset.
Example of error message applied to name: Invalid expression syntax.
Example of information message applied to value: Not captured.
Examples of error message applied to value:
Malformed string,Field f not found in class CNull pointer dereference
.google.devtools.clouddebugger.v2.StatusMessage status = 5;
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalVariable.BuildermergeUnknownFields(UnknownFieldSetunknownFields)mergeVarTableIndex(Int32Value value)
publicVariable.BuildermergeVarTableIndex(Int32Valuevalue) Reference to a variable in the shared variable table. More than
one variable can reference the same variable in the table. The
var_table_index field is an index into variable_table in Breakpoint.
.google.protobuf.Int32Value var_table_index = 4;
removeMembers(int index)
publicVariable.BuilderremoveMembers(intindex)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
setField(Descriptors.FieldDescriptor field, Object value)
publicVariable.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)setMembers(int index, Variable value)
publicVariable.BuildersetMembers(intindex,Variablevalue)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
setMembers(int index, Variable.Builder builderForValue)
publicVariable.BuildersetMembers(intindex,Variable.BuilderbuilderForValue)Members contained or pointed to by the variable.
repeated .google.devtools.clouddebugger.v2.Variable members = 3;
setName(String value)
publicVariable.BuildersetName(Stringvalue)Name of the variable, if any.
string name = 1;
Variable.Builder
This builder for chaining.
setNameBytes(ByteString value)
publicVariable.BuildersetNameBytes(ByteStringvalue)Name of the variable, if any.
string name = 1;
Variable.Builder
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicVariable.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)setStatus(StatusMessage value)
publicVariable.BuildersetStatus(StatusMessagevalue) Status associated with the variable. This field will usually stay
unset. A status of a single variable only applies to that variable or
expression. The rest of breakpoint data still remains valid. Variables
might be reported in error state even when breakpoint is not in final
state.
The message may refer to variable name with refers_to set to
VARIABLE_NAME. Alternatively refers_to will be set to VARIABLE_VALUE.
In either case variable value and members will be unset.
Example of error message applied to name: Invalid expression syntax.
Example of information message applied to value: Not captured.
Examples of error message applied to value:
Malformed string,Field f not found in class CNull pointer dereference
.google.devtools.clouddebugger.v2.StatusMessage status = 5;
setStatus(StatusMessage.Builder builderForValue)
publicVariable.BuildersetStatus(StatusMessage.BuilderbuilderForValue) Status associated with the variable. This field will usually stay
unset. A status of a single variable only applies to that variable or
expression. The rest of breakpoint data still remains valid. Variables
might be reported in error state even when breakpoint is not in final
state.
The message may refer to variable name with refers_to set to
VARIABLE_NAME. Alternatively refers_to will be set to VARIABLE_VALUE.
In either case variable value and members will be unset.
Example of error message applied to name: Invalid expression syntax.
Example of information message applied to value: Not captured.
Examples of error message applied to value:
Malformed string,Field f not found in class CNull pointer dereference
.google.devtools.clouddebugger.v2.StatusMessage status = 5;
setType(String value)
publicVariable.BuildersetType(Stringvalue) Variable type (e.g. MyClass). If the variable is split with
var_table_index, type goes next to value. The interpretation of
a type is agent specific. It is recommended to include the dynamic type
rather than a static type of an object.
string type = 6;
Variable.Builder
This builder for chaining.
setTypeBytes(ByteString value)
publicVariable.BuildersetTypeBytes(ByteStringvalue) Variable type (e.g. MyClass). If the variable is split with
var_table_index, type goes next to value. The interpretation of
a type is agent specific. It is recommended to include the dynamic type
rather than a static type of an object.
string type = 6;
Variable.Builder
This builder for chaining.
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalVariable.BuildersetUnknownFields(UnknownFieldSetunknownFields)setValue(String value)
publicVariable.BuildersetValue(Stringvalue)Simple value of the variable.
string value = 2;
Variable.Builder
This builder for chaining.
setValueBytes(ByteString value)
publicVariable.BuildersetValueBytes(ByteStringvalue)Simple value of the variable.
string value = 2;
Variable.Builder
This builder for chaining.
setVarTableIndex(Int32Value value)
publicVariable.BuildersetVarTableIndex(Int32Valuevalue) Reference to a variable in the shared variable table. More than
one variable can reference the same variable in the table. The
var_table_index field is an index into variable_table in Breakpoint.
.google.protobuf.Int32Value var_table_index = 4;
setVarTableIndex(Int32Value.Builder builderForValue)
publicVariable.BuildersetVarTableIndex(Int32Value.BuilderbuilderForValue) Reference to a variable in the shared variable table. More than
one variable can reference the same variable in the table. The
var_table_index field is an index into variable_table in Breakpoint.
.google.protobuf.Int32Value var_table_index = 4;