Class UpdateProfileRequest.Builder (2.31.0)

public static final class UpdateProfileRequest.Builder extends GeneratedMessageV3.Builder<UpdateProfileRequest.Builder> implements UpdateProfileRequestOrBuilder

UpdateProfileRequest contains the profile to update.

Protobuf type google.devtools.cloudprofiler.v2.UpdateProfileRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateProfileRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

build()

public UpdateProfileRequest build()
Returns
TypeDescription
UpdateProfileRequest

buildPartial()

public UpdateProfileRequest buildPartial()
Returns
TypeDescription
UpdateProfileRequest

clear()

public UpdateProfileRequest.Builder clear()
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateProfileRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateProfileRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

clearProfile()

public UpdateProfileRequest.Builder clearProfile()

Profile to update.

.google.devtools.cloudprofiler.v2.Profile profile = 1;

Returns
TypeDescription
UpdateProfileRequest.Builder

clearUpdateMask()

public UpdateProfileRequest.Builder clearUpdateMask()

Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
UpdateProfileRequest.Builder

clone()

public UpdateProfileRequest.Builder clone()
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateProfileRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateProfileRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProfile()

public Profile getProfile()

Profile to update.

.google.devtools.cloudprofiler.v2.Profile profile = 1;

Returns
TypeDescription
Profile

The profile.

getProfileBuilder()

public Profile.Builder getProfileBuilder()

Profile to update.

.google.devtools.cloudprofiler.v2.Profile profile = 1;

Returns
TypeDescription
Profile.Builder

getProfileOrBuilder()

public ProfileOrBuilder getProfileOrBuilder()

Profile to update.

.google.devtools.cloudprofiler.v2.Profile profile = 1;

Returns
TypeDescription
ProfileOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMaskOrBuilder

hasProfile()

public boolean hasProfile()

Profile to update.

.google.devtools.cloudprofiler.v2.Profile profile = 1;

Returns
TypeDescription
boolean

Whether the profile field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateProfileRequest other)

public UpdateProfileRequest.Builder mergeFrom(UpdateProfileRequest other)
Parameter
NameDescription
otherUpdateProfileRequest
Returns
TypeDescription
UpdateProfileRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateProfileRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateProfileRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

mergeProfile(Profile value)

public UpdateProfileRequest.Builder mergeProfile(Profile value)

Profile to update.

.google.devtools.cloudprofiler.v2.Profile profile = 1;

Parameter
NameDescription
valueProfile
Returns
TypeDescription
UpdateProfileRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateProfileRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateProfileRequest.Builder mergeUpdateMask(FieldMask value)

Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateProfileRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateProfileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

setProfile(Profile value)

public UpdateProfileRequest.Builder setProfile(Profile value)

Profile to update.

.google.devtools.cloudprofiler.v2.Profile profile = 1;

Parameter
NameDescription
valueProfile
Returns
TypeDescription
UpdateProfileRequest.Builder

setProfile(Profile.Builder builderForValue)

public UpdateProfileRequest.Builder setProfile(Profile.Builder builderForValue)

Profile to update.

.google.devtools.cloudprofiler.v2.Profile profile = 1;

Parameter
NameDescription
builderForValueProfile.Builder
Returns
TypeDescription
UpdateProfileRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateProfileRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateProfileRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateProfileRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateProfileRequest.Builder setUpdateMask(FieldMask value)

Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateProfileRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateProfileRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateProfileRequest.Builder