Class Debuggee (1.41.0)

public final class Debuggee extends GeneratedMessageV3 implements DebuggeeOrBuilder

Represents the debugged application. The application may include one or more replicated processes executing the same code. Each of these processes is attached with a debugger agent, carrying out the debugging commands. Agents attached to the same debuggee identify themselves as such by using exactly the same Debuggee message value when registering.

Protobuf type google.devtools.clouddebugger.v2.Debuggee

Implements

DebuggeeOrBuilder

Static Fields

AGENT_VERSION_FIELD_NUMBER

public static final int AGENT_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

EXT_SOURCE_CONTEXTS_FIELD_NUMBER

public static final int EXT_SOURCE_CONTEXTS_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

IS_DISABLED_FIELD_NUMBER

public static final int IS_DISABLED_FIELD_NUMBER
Field Value
TypeDescription
int

IS_INACTIVE_FIELD_NUMBER

public static final int IS_INACTIVE_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_FIELD_NUMBER

public static final int PROJECT_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_CONTEXTS_FIELD_NUMBER

public static final int SOURCE_CONTEXTS_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

UNIQUIFIER_FIELD_NUMBER

public static final int UNIQUIFIER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Debuggee getDefaultInstance()
Returns
TypeDescription
Debuggee

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Debuggee.Builder newBuilder()
Returns
TypeDescription
Debuggee.Builder

newBuilder(Debuggee prototype)

public static Debuggee.Builder newBuilder(Debuggee prototype)
Parameter
NameDescription
prototypeDebuggee
Returns
TypeDescription
Debuggee.Builder

parseDelimitedFrom(InputStream input)

public static Debuggee parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Debuggee parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Debuggee parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Debuggee parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Debuggee parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Debuggee parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Debuggee parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Debuggee parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Debuggee parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Debuggee parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Debuggee parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Debuggee parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Debuggee
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Debuggee> parser()
Returns
TypeDescription
Parser<Debuggee>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

A set of custom debuggee properties, populated by the agent, to be displayed to the user.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAgentVersion()

public String getAgentVersion()

Version ID of the agent. Schema: domain/language-platform/vmajor.minor (for example google.com/java-gcp/v1.1).

string agent_version = 6;

Returns
TypeDescription
String

The agentVersion.

getAgentVersionBytes()

public ByteString getAgentVersionBytes()

Version ID of the agent. Schema: domain/language-platform/vmajor.minor (for example google.com/java-gcp/v1.1).

string agent_version = 6;

Returns
TypeDescription
ByteString

The bytes for agentVersion.

getDefaultInstanceForType()

public Debuggee getDefaultInstanceForType()
Returns
TypeDescription
Debuggee

getDescription()

public String getDescription()

Human readable description of the debuggee. Including a human-readable project name, environment name and version information is recommended.

string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Human readable description of the debuggee. Including a human-readable project name, environment name and version information is recommended.

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getExtSourceContexts(int index) (deprecated)

public ExtendedSourceContext getExtSourceContexts(int index)

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.ExtendedSourceContext ext_source_contexts = 13 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
ExtendedSourceContext

getExtSourceContextsCount() (deprecated)

public int getExtSourceContextsCount()

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.ExtendedSourceContext ext_source_contexts = 13 [deprecated = true];

Returns
TypeDescription
int

getExtSourceContextsList() (deprecated)

public List<ExtendedSourceContext> getExtSourceContextsList()

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.ExtendedSourceContext ext_source_contexts = 13 [deprecated = true];

Returns
TypeDescription
List<ExtendedSourceContext>

getExtSourceContextsOrBuilder(int index) (deprecated)

public ExtendedSourceContextOrBuilder getExtSourceContextsOrBuilder(int index)

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.ExtendedSourceContext ext_source_contexts = 13 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
ExtendedSourceContextOrBuilder

getExtSourceContextsOrBuilderList() (deprecated)

public List<? extends ExtendedSourceContextOrBuilder> getExtSourceContextsOrBuilderList()

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.ExtendedSourceContext ext_source_contexts = 13 [deprecated = true];

Returns
TypeDescription
List<? extends com.google.devtools.source.v1.ExtendedSourceContextOrBuilder>

getId()

public String getId()

Unique identifier for the debuggee generated by the controller service.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Unique identifier for the debuggee generated by the controller service.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getIsDisabled()

public boolean getIsDisabled()

If set to true, indicates that the agent should disable itself and detach from the debuggee.

bool is_disabled = 7;

Returns
TypeDescription
boolean

The isDisabled.

getIsInactive()

public boolean getIsInactive()

If set to true, indicates that Controller service does not detect any activity from the debuggee agents and the application is possibly stopped.

bool is_inactive = 5;

Returns
TypeDescription
boolean

The isInactive.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

A set of custom debuggee properties, populated by the agent, to be displayed to the user.

map<string, string> labels = 11;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

A set of custom debuggee properties, populated by the agent, to be displayed to the user.

map<string, string> labels = 11;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

A set of custom debuggee properties, populated by the agent, to be displayed to the user.

map<string, string> labels = 11;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

A set of custom debuggee properties, populated by the agent, to be displayed to the user.

map<string, string> labels = 11;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getParserForType()

public Parser<Debuggee> getParserForType()
Returns
TypeDescription
Parser<Debuggee>
Overrides

getProject()

public String getProject()

Project the debuggee is associated with. Use project number or id when registering a Google Cloud Platform project.

string project = 2;

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project the debuggee is associated with. Use project number or id when registering a Google Cloud Platform project.

string project = 2;

Returns
TypeDescription
ByteString

The bytes for project.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceContexts(int index)

public SourceContext getSourceContexts(int index)

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.SourceContext source_contexts = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
SourceContext

getSourceContextsCount()

public int getSourceContextsCount()

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.SourceContext source_contexts = 9;

Returns
TypeDescription
int

getSourceContextsList()

public List<SourceContext> getSourceContextsList()

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.SourceContext source_contexts = 9;

Returns
TypeDescription
List<SourceContext>

getSourceContextsOrBuilder(int index)

public SourceContextOrBuilder getSourceContextsOrBuilder(int index)

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.SourceContext source_contexts = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
SourceContextOrBuilder

getSourceContextsOrBuilderList()

public List<? extends SourceContextOrBuilder> getSourceContextsOrBuilderList()

References to the locations and revisions of the source code used in the deployed application.

repeated .google.devtools.source.v1.SourceContext source_contexts = 9;

Returns
TypeDescription
List<? extends com.google.devtools.source.v1.SourceContextOrBuilder>

getStatus()

public StatusMessage getStatus()

Human readable message to be displayed to the user about this debuggee. Absence of this field indicates no status. The message can be either informational or an error status.

.google.devtools.clouddebugger.v2.StatusMessage status = 8;

Returns
TypeDescription
StatusMessage

The status.

getStatusOrBuilder()

public StatusMessageOrBuilder getStatusOrBuilder()

Human readable message to be displayed to the user about this debuggee. Absence of this field indicates no status. The message can be either informational or an error status.

.google.devtools.clouddebugger.v2.StatusMessage status = 8;

Returns
TypeDescription
StatusMessageOrBuilder

getUniquifier()

public String getUniquifier()

Uniquifier to further distinguish the application. It is possible that different applications might have identical values in the debuggee message, thus, incorrectly identified as a single application by the Controller service. This field adds salt to further distinguish the application. Agents should consider seeding this field with value that identifies the code, binary, configuration and environment.

string uniquifier = 3;

Returns
TypeDescription
String

The uniquifier.

getUniquifierBytes()

public ByteString getUniquifierBytes()

Uniquifier to further distinguish the application. It is possible that different applications might have identical values in the debuggee message, thus, incorrectly identified as a single application by the Controller service. This field adds salt to further distinguish the application. Agents should consider seeding this field with value that identifies the code, binary, configuration and environment.

string uniquifier = 3;

Returns
TypeDescription
ByteString

The bytes for uniquifier.

hasStatus()

public boolean hasStatus()

Human readable message to be displayed to the user about this debuggee. Absence of this field indicates no status. The message can be either informational or an error status.

.google.devtools.clouddebugger.v2.StatusMessage status = 8;

Returns
TypeDescription
boolean

Whether the status field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Debuggee.Builder newBuilderForType()
Returns
TypeDescription
Debuggee.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Debuggee.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Debuggee.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Debuggee.Builder toBuilder()
Returns
TypeDescription
Debuggee.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException