Class CreateStoredInfoTypeRequest.Builder (3.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateStoredInfoTypeRequest build()
Returns
TypeDescription
CreateStoredInfoTypeRequest

buildPartial()

public CreateStoredInfoTypeRequest buildPartial()
Returns
TypeDescription
CreateStoredInfoTypeRequest

clear()

public CreateStoredInfoTypeRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateStoredInfoTypeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLocationId()

public CreateStoredInfoTypeRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
TypeDescription
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateStoredInfoTypeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    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
TypeDescription
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
TypeDescription
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

clone()

public CreateStoredInfoTypeRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
StoredInfoTypeConfigOrBuilder

getDefaultInstanceForType()

public CreateStoredInfoTypeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateStoredInfoTypeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocationId()

public String getLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
TypeDescription
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Deprecated. This field has no effect.

string location_id = 4;

Returns
TypeDescription
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:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    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
TypeDescription
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:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueStoredInfoTypeConfig
Returns
TypeDescription
CreateStoredInfoTypeRequest.Builder

mergeFrom(CreateStoredInfoTypeRequest other)

public CreateStoredInfoTypeRequest.Builder mergeFrom(CreateStoredInfoTypeRequest other)
Parameter
NameDescription
otherCreateStoredInfoTypeRequest
Returns
TypeDescription
CreateStoredInfoTypeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateStoredInfoTypeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueStoredInfoTypeConfig
Returns
TypeDescription
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
NameDescription
builderForValueStoredInfoTypeConfig.Builder
Returns
TypeDescription
CreateStoredInfoTypeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocationId(String value)

public CreateStoredInfoTypeRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 4;

Parameter
NameDescription
valueString

The locationId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for locationId to set.

Returns
TypeDescription
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:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The storedInfoTypeId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for storedInfoTypeId to set.

Returns
TypeDescription
CreateStoredInfoTypeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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