Class 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 type google.devtools.cloudprofiler.v2.Profile
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • clear

        public Profile.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • getDefaultInstanceForType

        public Profile getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Profile build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Profile buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Profile.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • setField

        public Profile.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • clearField

        public Profile.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • clearOneof

        public Profile.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • setRepeatedField

        public Profile.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • addRepeatedField

        public Profile.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • mergeFrom

        public Profile.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Profile.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getName in interface ProfileOrBuilder
        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:
        getNameBytes in interface ProfileOrBuilder
        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:
        getProfileTypeValue in interface ProfileOrBuilder
        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:
        getProfileType in interface ProfileOrBuilder
        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:
        hasDeployment in interface ProfileOrBuilder
        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:
        getDeployment in interface ProfileOrBuilder
        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;
      • 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:
        hasDuration in interface ProfileOrBuilder
        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:
        getDuration in interface ProfileOrBuilder
        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:
        getDurationOrBuilder in interface ProfileOrBuilder
      • 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:
        getProfileBytes in interface ProfileOrBuilder
        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: ProfileOrBuilder
         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:
        getLabelsCount in interface ProfileOrBuilder
      • 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:
        containsLabels in interface ProfileOrBuilder
      • 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:
        getLabelsMap in interface ProfileOrBuilder
      • 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:
        getLabelsOrDefault in interface ProfileOrBuilder
      • 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:
        getLabelsOrThrow in interface ProfileOrBuilder
      • 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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
      • mergeUnknownFields

        public final Profile.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>