Class UpdateContentPolicyRequest (3.103.0)

public final class UpdateContentPolicyRequest extends GeneratedMessage implements UpdateContentPolicyRequestOrBuilder

Request message for UpdateContentPolicy.

Protobuf type google.privacy.dlp.v2.UpdateContentPolicyRequest

Static Fields

CONTENT_POLICY_FIELD_NUMBER

public static final int CONTENT_POLICY_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UpdateContentPolicyRequest getDefaultInstance()
Returns
Type Description
UpdateContentPolicyRequest

getDescriptor()

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

newBuilder()

public static UpdateContentPolicyRequest.Builder newBuilder()
Returns
Type Description
UpdateContentPolicyRequest.Builder

newBuilder(UpdateContentPolicyRequest prototype)

public static UpdateContentPolicyRequest.Builder newBuilder(UpdateContentPolicyRequest prototype)
Parameter
Name Description
prototype UpdateContentPolicyRequest
Returns
Type Description
UpdateContentPolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static UpdateContentPolicyRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateContentPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static UpdateContentPolicyRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpdateContentPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpdateContentPolicyRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpdateContentPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpdateContentPolicyRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateContentPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static UpdateContentPolicyRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateContentPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static UpdateContentPolicyRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpdateContentPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateContentPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<UpdateContentPolicyRequest> parser()
Returns
Type Description
Parser<UpdateContentPolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContentPolicy()

public ContentPolicy getContentPolicy()

Required. The content_policy with new values for the relevant fields.

.google.privacy.dlp.v2.ContentPolicy content_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContentPolicy

The contentPolicy.

getContentPolicyOrBuilder()

public ContentPolicyOrBuilder getContentPolicyOrBuilder()

Required. The content_policy with new values for the relevant fields.

.google.privacy.dlp.v2.ContentPolicy content_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContentPolicyOrBuilder

getDefaultInstanceForType()

public UpdateContentPolicyRequest getDefaultInstanceForType()
Returns
Type Description
UpdateContentPolicyRequest

getName()

public String getName()

Required. Resource name in the format: projects/{project}/locations/{location}/contentPolicies/{content_policy}.

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 in the format: projects/{project}/locations/{location}/contentPolicies/{content_policy}.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<UpdateContentPolicyRequest> getParserForType()
Returns
Type Description
Parser<UpdateContentPolicyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

hasContentPolicy()

public boolean hasContentPolicy()

Required. The content_policy with new values for the relevant fields.

.google.privacy.dlp.v2.ContentPolicy content_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the contentPolicy field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public UpdateContentPolicyRequest.Builder newBuilderForType()
Returns
Type Description
UpdateContentPolicyRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected UpdateContentPolicyRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UpdateContentPolicyRequest.Builder
Overrides

toBuilder()

public UpdateContentPolicyRequest.Builder toBuilder()
Returns
Type Description
UpdateContentPolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException