public final class Profile extends GeneratedMessageV3 implements ProfileOrBuilder
Profile resource.
Protobuf type google.devtools.cloudprofiler.v2.Profile
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 | |
public static final int START_TIME_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 Timestamp getStartTime()
Output only. Start time for the profile.
This output is only present in response from the ListProfiles method.
.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
Timestamp | The startTime.
|
public TimestampOrBuilder getStartTimeOrBuilder()
Output only. Start time for the profile.
This output is only present in response from the ListProfiles method.
.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.
|
public boolean hasStartTime()
Output only. Start time for the profile.
This output is only present in response from the ListProfiles method.
.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
boolean | Whether the startTime field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
---|
Name | Description |
number | int
|
Returns |
---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor | |
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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