public final class Profile extends GeneratedMessageV3 implements ProfileOrBuilder
Profile resource.
Protobuf type google.devtools.cloudprofiler.v2.Profile
Static Fields
public static final int DEPLOYMENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DURATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int PROFILE_BYTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int PROFILE_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static Profile getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Profile.Builder newBuilder()
public static Profile.Builder newBuilder(Profile prototype)
Parameter |
---|
Name | Description |
prototype | Profile
|
public static Profile parseDelimitedFrom(InputStream input)
public static Profile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static Profile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(ByteString data)
public static Profile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(CodedInputStream input)
public static Profile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(InputStream input)
public static Profile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(ByteBuffer data)
public static Profile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Profile> parser()
Methods
public boolean containsLabels(String key)
Input only. Labels associated to this specific profile. These labels will
get merged with the deployment labels for the final data set. See
documentation on deployment labels for validation rules and limits.
map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
Parameter |
---|
Name | Description |
key | String
|
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public Profile getDefaultInstanceForType()
public Deployment getDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
public DeploymentOrBuilder getDeploymentOrBuilder()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
public Duration getDuration()
Duration of the profiling session.
Input (for the offline mode) or output (for the online mode).
The field represents requested profiling duration. It may slightly differ
from the effective profiling duration, which is recorded in the profile
data, in case the profiling can't be stopped immediately (e.g. in case
stopping the profiling is handled asynchronously).
.google.protobuf.Duration duration = 4;
Returns |
---|
Type | Description |
Duration | The duration.
|
public DurationOrBuilder getDurationOrBuilder()
Duration of the profiling session.
Input (for the offline mode) or output (for the online mode).
The field represents requested profiling duration. It may slightly differ
from the effective profiling duration, which is recorded in the profile
data, in case the profiling can't be stopped immediately (e.g. in case
stopping the profiling is handled asynchronously).
.google.protobuf.Duration duration = 4;
public Map<String,String> getLabels()
public int getLabelsCount()
Input only. Labels associated to this specific profile. These labels will
get merged with the deployment labels for the final data set. See
documentation on deployment labels for validation rules and limits.
map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
Returns |
---|
Type | Description |
int | |
public Map<String,String> getLabelsMap()
Input only. Labels associated to this specific profile. These labels will
get merged with the deployment labels for the final data set. See
documentation on deployment labels for validation rules and limits.
map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
public String getLabelsOrDefault(String key, String defaultValue)
Input only. Labels associated to this specific profile. These labels will
get merged with the deployment labels for the final data set. See
documentation on deployment labels for validation rules and limits.
map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
public String getLabelsOrThrow(String key)
Input only. Labels associated to this specific profile. These labels will
get merged with the deployment labels for the final data set. See
documentation on deployment labels for validation rules and limits.
map<string, string> labels = 6 [(.google.api.field_behavior) = INPUT_ONLY];
Parameter |
---|
Name | Description |
key | String
|
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
public Parser<Profile> getParserForType()
Overrides
public ByteString getProfileBytes()
public ProfileType getProfileType()
Type of profile.
For offline mode, this must be specified when creating the profile. For
online mode it is assigned and returned by the server.
.google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
public int getProfileTypeValue()
Type of profile.
For offline mode, this must be specified when creating the profile. For
online mode it is assigned and returned by the server.
.google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for profileType.
|
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public final UnknownFieldSet getUnknownFields()
Overrides
public boolean hasDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
Returns |
---|
Type | Description |
boolean | Whether the deployment field is set.
|
public boolean hasDuration()
Duration of the profiling session.
Input (for the offline mode) or output (for the online mode).
The field represents requested profiling duration. It may slightly differ
from the effective profiling duration, which is recorded in the profile
data, in case the profiling can't be stopped immediately (e.g. in case
stopping the profiling is handled asynchronously).
.google.protobuf.Duration duration = 4;
Returns |
---|
Type | Description |
boolean | Whether the duration field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
public final boolean isInitialized()
Overrides
public Profile.Builder newBuilderForType()
protected Profile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public Profile.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides