Class UpdateInspectTemplateRequest.Builder (3.58.0)

public static final class UpdateInspectTemplateRequest.Builder extends GeneratedMessageV3.Builder<UpdateInspectTemplateRequest.Builder> implements UpdateInspectTemplateRequestOrBuilder

Request message for UpdateInspectTemplate.

Protobuf type google.privacy.dlp.v2.UpdateInspectTemplateRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateInspectTemplateRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

build()

public UpdateInspectTemplateRequest build()
Returns
Type Description
UpdateInspectTemplateRequest

buildPartial()

public UpdateInspectTemplateRequest buildPartial()
Returns
Type Description
UpdateInspectTemplateRequest

clear()

public UpdateInspectTemplateRequest.Builder clear()
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateInspectTemplateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

clearInspectTemplate()

public UpdateInspectTemplateRequest.Builder clearInspectTemplate()

New InspectTemplate value.

.google.privacy.dlp.v2.InspectTemplate inspect_template = 2;

Returns
Type Description
UpdateInspectTemplateRequest.Builder

clearName()

public UpdateInspectTemplateRequest.Builder clearName()

Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
UpdateInspectTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateInspectTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

clearUpdateMask()

public UpdateInspectTemplateRequest.Builder clearUpdateMask()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
UpdateInspectTemplateRequest.Builder

clone()

public UpdateInspectTemplateRequest.Builder clone()
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateInspectTemplateRequest getDefaultInstanceForType()
Returns
Type Description
UpdateInspectTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInspectTemplate()

public InspectTemplate getInspectTemplate()

New InspectTemplate value.

.google.privacy.dlp.v2.InspectTemplate inspect_template = 2;

Returns
Type Description
InspectTemplate

The inspectTemplate.

getInspectTemplateBuilder()

public InspectTemplate.Builder getInspectTemplateBuilder()

New InspectTemplate value.

.google.privacy.dlp.v2.InspectTemplate inspect_template = 2;

Returns
Type Description
InspectTemplate.Builder

getInspectTemplateOrBuilder()

public InspectTemplateOrBuilder getInspectTemplateOrBuilder()

New InspectTemplate value.

.google.privacy.dlp.v2.InspectTemplate inspect_template = 2;

Returns
Type Description
InspectTemplateOrBuilder

getName()

public String getName()

Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getUpdateMask()

public FieldMask getUpdateMask()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMaskOrBuilder

hasInspectTemplate()

public boolean hasInspectTemplate()

New InspectTemplate value.

.google.privacy.dlp.v2.InspectTemplate inspect_template = 2;

Returns
Type Description
boolean

Whether the inspectTemplate field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateInspectTemplateRequest other)

public UpdateInspectTemplateRequest.Builder mergeFrom(UpdateInspectTemplateRequest other)
Parameter
Name Description
other UpdateInspectTemplateRequest
Returns
Type Description
UpdateInspectTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateInspectTemplateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateInspectTemplateRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

mergeInspectTemplate(InspectTemplate value)

public UpdateInspectTemplateRequest.Builder mergeInspectTemplate(InspectTemplate value)

New InspectTemplate value.

.google.privacy.dlp.v2.InspectTemplate inspect_template = 2;

Parameter
Name Description
value InspectTemplate
Returns
Type Description
UpdateInspectTemplateRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateInspectTemplateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateInspectTemplateRequest.Builder mergeUpdateMask(FieldMask value)

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateInspectTemplateRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateInspectTemplateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

setInspectTemplate(InspectTemplate value)

public UpdateInspectTemplateRequest.Builder setInspectTemplate(InspectTemplate value)

New InspectTemplate value.

.google.privacy.dlp.v2.InspectTemplate inspect_template = 2;

Parameter
Name Description
value InspectTemplate
Returns
Type Description
UpdateInspectTemplateRequest.Builder

setInspectTemplate(InspectTemplate.Builder builderForValue)

public UpdateInspectTemplateRequest.Builder setInspectTemplate(InspectTemplate.Builder builderForValue)

New InspectTemplate value.

.google.privacy.dlp.v2.InspectTemplate inspect_template = 2;

Parameter
Name Description
builderForValue InspectTemplate.Builder
Returns
Type Description
UpdateInspectTemplateRequest.Builder

setName(String value)

public UpdateInspectTemplateRequest.Builder setName(String value)

Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UpdateInspectTemplateRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateInspectTemplateRequest.Builder setNameBytes(ByteString value)

Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/project-id/inspectTemplates/432452342.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UpdateInspectTemplateRequest.Builder

This builder for chaining.

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

public UpdateInspectTemplateRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateInspectTemplateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateInspectTemplateRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateInspectTemplateRequest.Builder setUpdateMask(FieldMask value)

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateInspectTemplateRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateInspectTemplateRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateInspectTemplateRequest.Builder