com.google.api.services.clouddebugger.model.Breakpoint Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://code.google.com/p/google-apis-client-generator/
* (build: 2015-08-03 17:34:38 UTC)
* on 2015-08-26 at 02:57:03 UTC
* Modify at your own risk.
*/
package com.google.api.services.clouddebugger.model;
/**
* Represents the breakpoint specification, status and results.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Cloud Debugger API. For a detailed explanation
* see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Breakpoint extends com.google.api.client.json.GenericJson {
/**
* Defines what to do when the breakpoint hits.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String action;
/**
* A condition to trigger the breakpoint. The condition is a compound boolean expression composed
* using expressions in a programming language at the source location.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String condition;
/**
* The time this breakpoint was created by the server. The value is in seconds resolution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String createTime;
/**
* The evaluated expressions' values at breakpoint time. The evaluated expressions appear in
* exactly the same order they are listed in the 'expressions' field. The 'name' field holds the
* original expression text, the 'value'/'members' field holds the result of the evaluated
* expression. If the expression can not be evaluated, an error text is placed in the value field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List evaluatedExpressions;
/**
* A list of read-only expressions to evaluate at the breakpoint location. The expressions are
* composed using expressions in the programming language at the source location. If the
* breakpoint action is "LOG", the evaluated expressions are included in log statements.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List expressions;
/**
* The time this breakpoint was finalized as seen by the server. The value is in seconds
* resolution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String finalTime;
/**
* Breakpoint identifier, unique in the scope of the debuggee.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;
/**
* When true, indicates that this is a final result and the breakpoint state will not change from
* here on.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean isFinalState;
/**
* The breakpoint source location.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SourceLocation location;
/**
* Indicates the severity of the log. Only relevant when action is "LOG".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String logLevel;
/**
* Only relevant when action is "LOG". Defines the message to log when the breakpoint hits. The
* message may include parameter placeholders "$0", "$1", etc. These placeholders will be replaced
* with the evaluated value of the appropriate expression. Expressions not referenced in
* "log_message_format" will not be logged. Example: "Poisonous message received, id = $0, count =
* $1" with expressions = [ "message.id", "message.count" ].
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String logMessageFormat;
/**
* The stack at breakpoint time.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List stackFrames;
static {
// hack to force ProGuard to consider StackFrame used, since otherwise it would be stripped out
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
com.google.api.client.util.Data.nullOf(StackFrame.class);
}
/**
* Breakpoint status. The status includes an error flag and a human readable message. This field
* will usually stay unset. The message can be either informational or error. Nevertheless,
* clients should always display the text message back to the user. Error status of a breakpoint
* indicates complete failure. Example (non-final state): 'Still loading symbols...' Examples
* (final state): 'Failed to insert breakpoint' referring to breakpoint, 'Field f not found in
* class C' referring to condition, ...
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private StatusMessage status;
/**
* The e-mail of the user that created this breakpoint
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String userEmail;
/**
* The variable_table exists to aid with computation, memory and network traffic optimization. It
* enables storing a variable once and reference it from multiple variables, including variables
* stored in the variable_table itself. For example, the object 'this', which may appear at many
* levels of the stack, can have all of it's data stored once in this table. The stack frame
* variables then would hold only a reference to it. The variable var_index field is an index into
* this repeated field. The stored objects are nameless and get their name from the referencing
* variable. The effective variable is a merge of the referencing veariable and the referenced
* variable.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List variableTable;
/**
* Defines what to do when the breakpoint hits.
* @return value or {@code null} for none
*/
public java.lang.String getAction() {
return action;
}
/**
* Defines what to do when the breakpoint hits.
* @param action action or {@code null} for none
*/
public Breakpoint setAction(java.lang.String action) {
this.action = action;
return this;
}
/**
* A condition to trigger the breakpoint. The condition is a compound boolean expression composed
* using expressions in a programming language at the source location.
* @return value or {@code null} for none
*/
public java.lang.String getCondition() {
return condition;
}
/**
* A condition to trigger the breakpoint. The condition is a compound boolean expression composed
* using expressions in a programming language at the source location.
* @param condition condition or {@code null} for none
*/
public Breakpoint setCondition(java.lang.String condition) {
this.condition = condition;
return this;
}
/**
* The time this breakpoint was created by the server. The value is in seconds resolution.
* @return value or {@code null} for none
*/
public java.lang.String getCreateTime() {
return createTime;
}
/**
* The time this breakpoint was created by the server. The value is in seconds resolution.
* @param createTime createTime or {@code null} for none
*/
public Breakpoint setCreateTime(java.lang.String createTime) {
this.createTime = createTime;
return this;
}
/**
* The evaluated expressions' values at breakpoint time. The evaluated expressions appear in
* exactly the same order they are listed in the 'expressions' field. The 'name' field holds the
* original expression text, the 'value'/'members' field holds the result of the evaluated
* expression. If the expression can not be evaluated, an error text is placed in the value field.
* @return value or {@code null} for none
*/
public java.util.List getEvaluatedExpressions() {
return evaluatedExpressions;
}
/**
* The evaluated expressions' values at breakpoint time. The evaluated expressions appear in
* exactly the same order they are listed in the 'expressions' field. The 'name' field holds the
* original expression text, the 'value'/'members' field holds the result of the evaluated
* expression. If the expression can not be evaluated, an error text is placed in the value field.
* @param evaluatedExpressions evaluatedExpressions or {@code null} for none
*/
public Breakpoint setEvaluatedExpressions(java.util.List evaluatedExpressions) {
this.evaluatedExpressions = evaluatedExpressions;
return this;
}
/**
* A list of read-only expressions to evaluate at the breakpoint location. The expressions are
* composed using expressions in the programming language at the source location. If the
* breakpoint action is "LOG", the evaluated expressions are included in log statements.
* @return value or {@code null} for none
*/
public java.util.List getExpressions() {
return expressions;
}
/**
* A list of read-only expressions to evaluate at the breakpoint location. The expressions are
* composed using expressions in the programming language at the source location. If the
* breakpoint action is "LOG", the evaluated expressions are included in log statements.
* @param expressions expressions or {@code null} for none
*/
public Breakpoint setExpressions(java.util.List expressions) {
this.expressions = expressions;
return this;
}
/**
* The time this breakpoint was finalized as seen by the server. The value is in seconds
* resolution.
* @return value or {@code null} for none
*/
public java.lang.String getFinalTime() {
return finalTime;
}
/**
* The time this breakpoint was finalized as seen by the server. The value is in seconds
* resolution.
* @param finalTime finalTime or {@code null} for none
*/
public Breakpoint setFinalTime(java.lang.String finalTime) {
this.finalTime = finalTime;
return this;
}
/**
* Breakpoint identifier, unique in the scope of the debuggee.
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}
/**
* Breakpoint identifier, unique in the scope of the debuggee.
* @param id id or {@code null} for none
*/
public Breakpoint setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* When true, indicates that this is a final result and the breakpoint state will not change from
* here on.
* @return value or {@code null} for none
*/
public java.lang.Boolean getIsFinalState() {
return isFinalState;
}
/**
* When true, indicates that this is a final result and the breakpoint state will not change from
* here on.
* @param isFinalState isFinalState or {@code null} for none
*/
public Breakpoint setIsFinalState(java.lang.Boolean isFinalState) {
this.isFinalState = isFinalState;
return this;
}
/**
* The breakpoint source location.
* @return value or {@code null} for none
*/
public SourceLocation getLocation() {
return location;
}
/**
* The breakpoint source location.
* @param location location or {@code null} for none
*/
public Breakpoint setLocation(SourceLocation location) {
this.location = location;
return this;
}
/**
* Indicates the severity of the log. Only relevant when action is "LOG".
* @return value or {@code null} for none
*/
public java.lang.String getLogLevel() {
return logLevel;
}
/**
* Indicates the severity of the log. Only relevant when action is "LOG".
* @param logLevel logLevel or {@code null} for none
*/
public Breakpoint setLogLevel(java.lang.String logLevel) {
this.logLevel = logLevel;
return this;
}
/**
* Only relevant when action is "LOG". Defines the message to log when the breakpoint hits. The
* message may include parameter placeholders "$0", "$1", etc. These placeholders will be replaced
* with the evaluated value of the appropriate expression. Expressions not referenced in
* "log_message_format" will not be logged. Example: "Poisonous message received, id = $0, count =
* $1" with expressions = [ "message.id", "message.count" ].
* @return value or {@code null} for none
*/
public java.lang.String getLogMessageFormat() {
return logMessageFormat;
}
/**
* Only relevant when action is "LOG". Defines the message to log when the breakpoint hits. The
* message may include parameter placeholders "$0", "$1", etc. These placeholders will be replaced
* with the evaluated value of the appropriate expression. Expressions not referenced in
* "log_message_format" will not be logged. Example: "Poisonous message received, id = $0, count =
* $1" with expressions = [ "message.id", "message.count" ].
* @param logMessageFormat logMessageFormat or {@code null} for none
*/
public Breakpoint setLogMessageFormat(java.lang.String logMessageFormat) {
this.logMessageFormat = logMessageFormat;
return this;
}
/**
* The stack at breakpoint time.
* @return value or {@code null} for none
*/
public java.util.List getStackFrames() {
return stackFrames;
}
/**
* The stack at breakpoint time.
* @param stackFrames stackFrames or {@code null} for none
*/
public Breakpoint setStackFrames(java.util.List stackFrames) {
this.stackFrames = stackFrames;
return this;
}
/**
* Breakpoint status. The status includes an error flag and a human readable message. This field
* will usually stay unset. The message can be either informational or error. Nevertheless,
* clients should always display the text message back to the user. Error status of a breakpoint
* indicates complete failure. Example (non-final state): 'Still loading symbols...' Examples
* (final state): 'Failed to insert breakpoint' referring to breakpoint, 'Field f not found in
* class C' referring to condition, ...
* @return value or {@code null} for none
*/
public StatusMessage getStatus() {
return status;
}
/**
* Breakpoint status. The status includes an error flag and a human readable message. This field
* will usually stay unset. The message can be either informational or error. Nevertheless,
* clients should always display the text message back to the user. Error status of a breakpoint
* indicates complete failure. Example (non-final state): 'Still loading symbols...' Examples
* (final state): 'Failed to insert breakpoint' referring to breakpoint, 'Field f not found in
* class C' referring to condition, ...
* @param status status or {@code null} for none
*/
public Breakpoint setStatus(StatusMessage status) {
this.status = status;
return this;
}
/**
* The e-mail of the user that created this breakpoint
* @return value or {@code null} for none
*/
public java.lang.String getUserEmail() {
return userEmail;
}
/**
* The e-mail of the user that created this breakpoint
* @param userEmail userEmail or {@code null} for none
*/
public Breakpoint setUserEmail(java.lang.String userEmail) {
this.userEmail = userEmail;
return this;
}
/**
* The variable_table exists to aid with computation, memory and network traffic optimization. It
* enables storing a variable once and reference it from multiple variables, including variables
* stored in the variable_table itself. For example, the object 'this', which may appear at many
* levels of the stack, can have all of it's data stored once in this table. The stack frame
* variables then would hold only a reference to it. The variable var_index field is an index into
* this repeated field. The stored objects are nameless and get their name from the referencing
* variable. The effective variable is a merge of the referencing veariable and the referenced
* variable.
* @return value or {@code null} for none
*/
public java.util.List getVariableTable() {
return variableTable;
}
/**
* The variable_table exists to aid with computation, memory and network traffic optimization. It
* enables storing a variable once and reference it from multiple variables, including variables
* stored in the variable_table itself. For example, the object 'this', which may appear at many
* levels of the stack, can have all of it's data stored once in this table. The stack frame
* variables then would hold only a reference to it. The variable var_index field is an index into
* this repeated field. The stored objects are nameless and get their name from the referencing
* variable. The effective variable is a merge of the referencing veariable and the referenced
* variable.
* @param variableTable variableTable or {@code null} for none
*/
public Breakpoint setVariableTable(java.util.List variableTable) {
this.variableTable = variableTable;
return this;
}
@Override
public Breakpoint set(String fieldName, Object value) {
return (Breakpoint) super.set(fieldName, value);
}
@Override
public Breakpoint clone() {
return (Breakpoint) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy