Class CreateProfileRequest.Builder

  • All Implemented Interfaces:
    CreateProfileRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CreateProfileRequest

    public static final class CreateProfileRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CreateProfileRequest.Builder>
    implements CreateProfileRequestOrBuilder
     CreateProfileRequest describes a profile resource online creation request.
     The deployment field must be populated. The profile_type specifies the list
     of profile types supported by the agent. The creation call will hang until a
     profile of one of these types needs to be collected.
     
    Protobuf type google.devtools.cloudprofiler.v2.CreateProfileRequest
    • Method Detail

      • getDescriptor

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

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

        public CreateProfileRequest.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<CreateProfileRequest.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<CreateProfileRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateProfileRequest.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<CreateProfileRequest.Builder>
      • setField

        public CreateProfileRequest.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<CreateProfileRequest.Builder>
      • clearField

        public CreateProfileRequest.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<CreateProfileRequest.Builder>
      • clearOneof

        public CreateProfileRequest.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<CreateProfileRequest.Builder>
      • setRepeatedField

        public CreateProfileRequest.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<CreateProfileRequest.Builder>
      • addRepeatedField

        public CreateProfileRequest.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<CreateProfileRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateProfileRequest.Builder>
      • mergeFrom

        public CreateProfileRequest.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<CreateProfileRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Parent project to create the profile in.
         
        string parent = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateProfileRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Parent project to create the profile in.
         
        string parent = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateProfileRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateProfileRequest.Builder setParent​(String value)
         Parent project to create the profile in.
         
        string parent = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateProfileRequest.Builder clearParent()
         Parent project to create the profile in.
         
        string parent = 4 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateProfileRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Parent project to create the profile in.
         
        string parent = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasDeployment

        public boolean hasDeployment()
         Deployment details.
         
        .google.devtools.cloudprofiler.v2.Deployment deployment = 1;
        Specified by:
        hasDeployment in interface CreateProfileRequestOrBuilder
        Returns:
        Whether the deployment field is set.
      • clearDeployment

        public CreateProfileRequest.Builder clearDeployment()
         Deployment details.
         
        .google.devtools.cloudprofiler.v2.Deployment deployment = 1;
      • getDeploymentBuilder

        public Deployment.Builder getDeploymentBuilder()
         Deployment details.
         
        .google.devtools.cloudprofiler.v2.Deployment deployment = 1;
      • getProfileTypeList

        public List<ProfileType> getProfileTypeList()
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Specified by:
        getProfileTypeList in interface CreateProfileRequestOrBuilder
        Returns:
        A list containing the profileType.
      • getProfileTypeCount

        public int getProfileTypeCount()
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Specified by:
        getProfileTypeCount in interface CreateProfileRequestOrBuilder
        Returns:
        The count of profileType.
      • getProfileType

        public ProfileType getProfileType​(int index)
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Specified by:
        getProfileType in interface CreateProfileRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The profileType at the given index.
      • setProfileType

        public CreateProfileRequest.Builder setProfileType​(int index,
                                                           ProfileType value)
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Parameters:
        index - The index to set the value at.
        value - The profileType to set.
        Returns:
        This builder for chaining.
      • addProfileType

        public CreateProfileRequest.Builder addProfileType​(ProfileType value)
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Parameters:
        value - The profileType to add.
        Returns:
        This builder for chaining.
      • addAllProfileType

        public CreateProfileRequest.Builder addAllProfileType​(Iterable<? extends ProfileType> values)
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Parameters:
        values - The profileType to add.
        Returns:
        This builder for chaining.
      • clearProfileType

        public CreateProfileRequest.Builder clearProfileType()
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Returns:
        This builder for chaining.
      • getProfileTypeValueList

        public List<Integer> getProfileTypeValueList()
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Specified by:
        getProfileTypeValueList in interface CreateProfileRequestOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for profileType.
      • getProfileTypeValue

        public int getProfileTypeValue​(int index)
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Specified by:
        getProfileTypeValue in interface CreateProfileRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of profileType at the given index.
      • setProfileTypeValue

        public CreateProfileRequest.Builder setProfileTypeValue​(int index,
                                                                int value)
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for profileType to set.
        Returns:
        This builder for chaining.
      • addProfileTypeValue

        public CreateProfileRequest.Builder addProfileTypeValue​(int value)
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Parameters:
        value - The enum numeric value on the wire for profileType to add.
        Returns:
        This builder for chaining.
      • addAllProfileTypeValue

        public CreateProfileRequest.Builder addAllProfileTypeValue​(Iterable<Integer> values)
         One or more profile types that the agent is capable of providing.
         
        repeated .google.devtools.cloudprofiler.v2.ProfileType profile_type = 2;
        Parameters:
        values - The enum numeric values on the wire for profileType to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateProfileRequest.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<CreateProfileRequest.Builder>
      • mergeUnknownFields

        public final CreateProfileRequest.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<CreateProfileRequest.Builder>