Class CreateStoredInfoTypeRequest.Builder (3.52.0)

public static final class CreateStoredInfoTypeRequest.Builder extends GeneratedMessageV3.Builder<CreateStoredInfoTypeRequest.Builder> implements CreateStoredInfoTypeRequestOrBuilder

Request message for CreateStoredInfoType.

Protobuf type google.privacy.dlp.v2.CreateStoredInfoTypeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateStoredInfoTypeRequest build()
Returns
Type Description
CreateStoredInfoTypeRequest

buildPartial()

public CreateStoredInfoTypeRequest buildPartial()
Returns
Type Description
CreateStoredInfoTypeRequest

clear()

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

clearConfig()

public CreateStoredInfoTypeRequest.Builder clearConfig()

Required. Configuration of the storedInfoType to create.

.google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLocationId()

public CreateStoredInfoTypeRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateStoredInfoTypeRequest.Builder clearParent()

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}
  • Organizations scope, location specified: organizations/{org_id}/locations/{location_id}
  • Organizations scope, no location specified (defaults to global): organizations/{org_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

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

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

clearStoredInfoTypeId()

public CreateStoredInfoTypeRequest.Builder clearStoredInfoTypeId()

The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string stored_info_type_id = 3;

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

clone()

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

getConfig()

public StoredInfoTypeConfig getConfig()

Required. Configuration of the storedInfoType to create.

.google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StoredInfoTypeConfig

The config.

getConfigBuilder()

public StoredInfoTypeConfig.Builder getConfigBuilder()

Required. Configuration of the storedInfoType to create.

.google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StoredInfoTypeConfig.Builder

getConfigOrBuilder()

public StoredInfoTypeConfigOrBuilder getConfigOrBuilder()

Required. Configuration of the storedInfoType to create.

.google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StoredInfoTypeConfigOrBuilder

getDefaultInstanceForType()

public CreateStoredInfoTypeRequest getDefaultInstanceForType()
Returns
Type Description
CreateStoredInfoTypeRequest

getDescriptorForType()

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

getLocationId()

public String getLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
Type Description
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Deprecated. This field has no effect.

string location_id = 4;

Returns
Type Description
ByteString

The bytes for locationId.

getParent()

public String getParent()

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}
  • Organizations scope, location specified: organizations/{org_id}/locations/{location_id}
  • Organizations scope, no location specified (defaults to global): organizations/{org_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}
  • Organizations scope, location specified: organizations/{org_id}/locations/{location_id}
  • Organizations scope, no location specified (defaults to global): organizations/{org_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

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

Returns
Type Description
ByteString

The bytes for parent.

getStoredInfoTypeId()

public String getStoredInfoTypeId()

The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string stored_info_type_id = 3;

Returns
Type Description
String

The storedInfoTypeId.

getStoredInfoTypeIdBytes()

public ByteString getStoredInfoTypeIdBytes()

The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string stored_info_type_id = 3;

Returns
Type Description
ByteString

The bytes for storedInfoTypeId.

hasConfig()

public boolean hasConfig()

Required. Configuration of the storedInfoType to create.

.google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfig(StoredInfoTypeConfig value)

public CreateStoredInfoTypeRequest.Builder mergeConfig(StoredInfoTypeConfig value)

Required. Configuration of the storedInfoType to create.

.google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value StoredInfoTypeConfig
Returns
Type Description
CreateStoredInfoTypeRequest.Builder

mergeFrom(CreateStoredInfoTypeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfig(StoredInfoTypeConfig value)

public CreateStoredInfoTypeRequest.Builder setConfig(StoredInfoTypeConfig value)

Required. Configuration of the storedInfoType to create.

.google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value StoredInfoTypeConfig
Returns
Type Description
CreateStoredInfoTypeRequest.Builder

setConfig(StoredInfoTypeConfig.Builder builderForValue)

public CreateStoredInfoTypeRequest.Builder setConfig(StoredInfoTypeConfig.Builder builderForValue)

Required. Configuration of the storedInfoType to create.

.google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue StoredInfoTypeConfig.Builder
Returns
Type Description
CreateStoredInfoTypeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocationId(String value)

public CreateStoredInfoTypeRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 4;

Parameter
Name Description
value String

The locationId to set.

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

setLocationIdBytes(ByteString value)

public CreateStoredInfoTypeRequest.Builder setLocationIdBytes(ByteString value)

Deprecated. This field has no effect.

string location_id = 4;

Parameter
Name Description
value ByteString

The bytes for locationId to set.

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

setParent(String value)

public CreateStoredInfoTypeRequest.Builder setParent(String value)

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}
  • Organizations scope, location specified: organizations/{org_id}/locations/{location_id}
  • Organizations scope, no location specified (defaults to global): organizations/{org_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateStoredInfoTypeRequest.Builder setParentBytes(ByteString value)

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified: projects/{project_id}/locations/{location_id}
  • Projects scope, no location specified (defaults to global): projects/{project_id}
  • Organizations scope, location specified: organizations/{org_id}/locations/{location_id}
  • Organizations scope, no location specified (defaults to global): organizations/{org_id}

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

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

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

setStoredInfoTypeId(String value)

public CreateStoredInfoTypeRequest.Builder setStoredInfoTypeId(String value)

The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string stored_info_type_id = 3;

Parameter
Name Description
value String

The storedInfoTypeId to set.

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

setStoredInfoTypeIdBytes(ByteString value)

public CreateStoredInfoTypeRequest.Builder setStoredInfoTypeIdBytes(ByteString value)

The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string stored_info_type_id = 3;

Parameter
Name Description
value ByteString

The bytes for storedInfoTypeId to set.

Returns
Type Description
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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