Class UpdateEntitlementRequest (0.3.0)

public final class UpdateEntitlementRequest extends GeneratedMessageV3 implements UpdateEntitlementRequestOrBuilder

Message for updating an entitlement.

Protobuf type google.cloud.privilegedaccessmanager.v1.UpdateEntitlementRequest

Static Fields

ENTITLEMENT_FIELD_NUMBER

public static final int ENTITLEMENT_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 UpdateEntitlementRequest getDefaultInstance()
Returns
Type Description
UpdateEntitlementRequest

getDescriptor()

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

newBuilder()

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

newBuilder(UpdateEntitlementRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public UpdateEntitlementRequest getDefaultInstanceForType()
Returns
Type Description
UpdateEntitlementRequest

getEntitlement()

public Entitlement getEntitlement()

Required. The entitlement resource that is updated.

.google.cloud.privilegedaccessmanager.v1.Entitlement entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Entitlement

The entitlement.

getEntitlementOrBuilder()

public EntitlementOrBuilder getEntitlementOrBuilder()

Required. The entitlement resource that is updated.

.google.cloud.privilegedaccessmanager.v1.Entitlement entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EntitlementOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to update. A field is overwritten if, and only if, it is in the mask. Any immutable fields set in the mask are ignored by the server. Repeated fields and map fields are only allowed in the last position of a paths string and overwrite the existing values. Hence an update to a repeated field or a map should contain the entire list of values. The fields specified in the update_mask are relative to the resource and not to the request. (e.g. MaxRequestDuration; not entitlement.MaxRequestDuration) A value of '*' for this field refers to full replacement of the resource.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to update. A field is overwritten if, and only if, it is in the mask. Any immutable fields set in the mask are ignored by the server. Repeated fields and map fields are only allowed in the last position of a paths string and overwrite the existing values. Hence an update to a repeated field or a map should contain the entire list of values. The fields specified in the update_mask are relative to the resource and not to the request. (e.g. MaxRequestDuration; not entitlement.MaxRequestDuration) A value of '*' for this field refers to full replacement of the resource.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasEntitlement()

public boolean hasEntitlement()

Required. The entitlement resource that is updated.

.google.cloud.privilegedaccessmanager.v1.Entitlement entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the entitlement field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. The list of fields to update. A field is overwritten if, and only if, it is in the mask. Any immutable fields set in the mask are ignored by the server. Repeated fields and map fields are only allowed in the last position of a paths string and overwrite the existing values. Hence an update to a repeated field or a map should contain the entire list of values. The fields specified in the update_mask are relative to the resource and not to the request. (e.g. MaxRequestDuration; not entitlement.MaxRequestDuration) A value of '*' for this field refers to full replacement of the resource.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateEntitlementRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UpdateEntitlementRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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