Class Profile.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
- com.google.devtools.cloudprofiler.v2.Profile.Builder
-
- All Implemented Interfaces:
ProfileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Profile
public static final class Profile.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder> implements ProfileOrBuilder
Profile resource.
Protobuf typegoogle.devtools.cloudprofiler.v2.Profile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Profile.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Profilebuild()ProfilebuildPartial()Profile.Builderclear()Profile.BuilderclearDeployment()Deployment this profile corresponds to.Profile.BuilderclearDuration()Duration of the profiling session.Profile.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Profile.BuilderclearLabels()Profile.BuilderclearName()Output only.Profile.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Profile.BuilderclearProfileBytes()Input only.Profile.BuilderclearProfileType()Type of profile.Profile.Builderclone()booleancontainsLabels(String key)Input only.ProfilegetDefaultInstanceForType()DeploymentgetDeployment()Deployment this profile corresponds to.Deployment.BuildergetDeploymentBuilder()Deployment this profile corresponds to.DeploymentOrBuildergetDeploymentOrBuilder()Deployment this profile corresponds to.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetDuration()Duration of the profiling session.com.google.protobuf.Duration.BuildergetDurationBuilder()Duration of the profiling session.com.google.protobuf.DurationOrBuildergetDurationOrBuilder()Duration of the profiling session.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Input only.Map<String,String>getLabelsMap()Input only.StringgetLabelsOrDefault(String key, String defaultValue)Input only.StringgetLabelsOrThrow(String key)Input only.Map<String,String>getMutableLabels()Deprecated.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.ByteStringgetProfileBytes()Input only.ProfileTypegetProfileType()Type of profile.intgetProfileTypeValue()Type of profile.booleanhasDeployment()Deployment this profile corresponds to.booleanhasDuration()Duration of the profiling session.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Profile.BuildermergeDeployment(Deployment value)Deployment this profile corresponds to.Profile.BuildermergeDuration(com.google.protobuf.Duration value)Duration of the profiling session.Profile.BuildermergeFrom(Profile other)Profile.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Profile.BuildermergeFrom(com.google.protobuf.Message other)Profile.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Profile.BuilderputAllLabels(Map<String,String> values)Input only.Profile.BuilderputLabels(String key, String value)Input only.Profile.BuilderremoveLabels(String key)Input only.Profile.BuildersetDeployment(Deployment value)Deployment this profile corresponds to.Profile.BuildersetDeployment(Deployment.Builder builderForValue)Deployment this profile corresponds to.Profile.BuildersetDuration(com.google.protobuf.Duration value)Duration of the profiling session.Profile.BuildersetDuration(com.google.protobuf.Duration.Builder builderForValue)Duration of the profiling session.Profile.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Profile.BuildersetName(String value)Output only.Profile.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Profile.BuildersetProfileBytes(com.google.protobuf.ByteString value)Input only.Profile.BuildersetProfileType(ProfileType value)Type of profile.Profile.BuildersetProfileTypeValue(int value)Type of profile.Profile.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Profile.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
clear
public Profile.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
getDefaultInstanceForType
public Profile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Profile build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Profile buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Profile.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
setField
public Profile.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
clearField
public Profile.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
clearOneof
public Profile.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
setRepeatedField
public Profile.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
addRepeatedField
public Profile.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
mergeFrom
public Profile.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Profile.Builder>
-
mergeFrom
public Profile.Builder mergeFrom(Profile other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
mergeFrom
public Profile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Profile.Builder>- Throws:
IOException
-
getName
public String getName()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceProfileOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceProfileOrBuilder- Returns:
- The bytes for name.
-
setName
public Profile.Builder setName(String value)
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Profile.Builder clearName()
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public Profile.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Opaque, server-assigned, unique ID for this profile.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getProfileTypeValue
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;- Specified by:
getProfileTypeValuein interfaceProfileOrBuilder- Returns:
- The enum numeric value on the wire for profileType.
-
setProfileTypeValue
public Profile.Builder setProfileTypeValue(int value)
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;- Parameters:
value- The enum numeric value on the wire for profileType to set.- Returns:
- This builder for chaining.
-
getProfileType
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;- Specified by:
getProfileTypein interfaceProfileOrBuilder- Returns:
- The profileType.
-
setProfileType
public Profile.Builder setProfileType(ProfileType value)
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;- Parameters:
value- The profileType to set.- Returns:
- This builder for chaining.
-
clearProfileType
public Profile.Builder clearProfileType()
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:
- This builder for chaining.
-
hasDeployment
public boolean hasDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;- Specified by:
hasDeploymentin interfaceProfileOrBuilder- Returns:
- Whether the deployment field is set.
-
getDeployment
public Deployment getDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;- Specified by:
getDeploymentin interfaceProfileOrBuilder- Returns:
- The deployment.
-
setDeployment
public Profile.Builder setDeployment(Deployment value)
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
-
setDeployment
public Profile.Builder setDeployment(Deployment.Builder builderForValue)
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
-
mergeDeployment
public Profile.Builder mergeDeployment(Deployment value)
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
-
clearDeployment
public Profile.Builder clearDeployment()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
-
getDeploymentBuilder
public Deployment.Builder getDeploymentBuilder()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;
-
getDeploymentOrBuilder
public DeploymentOrBuilder getDeploymentOrBuilder()
Deployment this profile corresponds to.
.google.devtools.cloudprofiler.v2.Deployment deployment = 3;- Specified by:
getDeploymentOrBuilderin interfaceProfileOrBuilder
-
hasDuration
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;- Specified by:
hasDurationin interfaceProfileOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.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;- Specified by:
getDurationin interfaceProfileOrBuilder- Returns:
- The duration.
-
setDuration
public Profile.Builder setDuration(com.google.protobuf.Duration value)
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;
-
setDuration
public Profile.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
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;
-
mergeDuration
public Profile.Builder mergeDuration(com.google.protobuf.Duration value)
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;
-
clearDuration
public Profile.Builder clearDuration()
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;
-
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()
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;
-
getDurationOrBuilder
public com.google.protobuf.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;- Specified by:
getDurationOrBuilderin interfaceProfileOrBuilder
-
getProfileBytes
public com.google.protobuf.ByteString getProfileBytes()
Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.
bytes profile_bytes = 5 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getProfileBytesin interfaceProfileOrBuilder- Returns:
- The profileBytes.
-
setProfileBytes
public Profile.Builder setProfileBytes(com.google.protobuf.ByteString value)
Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.
bytes profile_bytes = 5 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The profileBytes to set.- Returns:
- This builder for chaining.
-
clearProfileBytes
public Profile.Builder clearProfileBytes()
Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.
bytes profile_bytes = 5 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ProfileOrBuilderInput 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];- Specified by:
getLabelsCountin interfaceProfileOrBuilder
-
containsLabels
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];- Specified by:
containsLabelsin interfaceProfileOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceProfileOrBuilder
-
getLabelsMap
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];- Specified by:
getLabelsMapin interfaceProfileOrBuilder
-
getLabelsOrDefault
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];- Specified by:
getLabelsOrDefaultin interfaceProfileOrBuilder
-
getLabelsOrThrow
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];- Specified by:
getLabelsOrThrowin interfaceProfileOrBuilder
-
clearLabels
public Profile.Builder clearLabels()
-
removeLabels
public Profile.Builder removeLabels(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];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Profile.Builder putLabels(String key, String value)
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];
-
putAllLabels
public Profile.Builder putAllLabels(Map<String,String> values)
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];
-
setUnknownFields
public final Profile.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
mergeUnknownFields
public final Profile.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
-