Class UpdateEntitlementRequest.Builder (0.1.0)

public static final class UpdateEntitlementRequest.Builder extends GeneratedMessageV3.Builder<UpdateEntitlementRequest.Builder> implements UpdateEntitlementRequestOrBuilder

Message for updating an entitlement.

Protobuf type google.cloud.privilegedaccessmanager.v1.UpdateEntitlementRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateEntitlementRequest build()
Returns
Type Description
UpdateEntitlementRequest

buildPartial()

public UpdateEntitlementRequest buildPartial()
Returns
Type Description
UpdateEntitlementRequest

clear()

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

clearEntitlement()

public UpdateEntitlementRequest.Builder clearEntitlement()

Required. The entitlement resource that is updated.

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

Returns
Type Description
UpdateEntitlementRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateEntitlementRequest.Builder clearUpdateMask()

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
UpdateEntitlementRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateEntitlementRequest getDefaultInstanceForType()
Returns
Type Description
UpdateEntitlementRequest

getDescriptorForType()

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

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.

getEntitlementBuilder()

public Entitlement.Builder getEntitlementBuilder()

Required. The entitlement resource that is updated.

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

Returns
Type Description
Entitlement.Builder

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

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.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

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
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEntitlement(Entitlement value)

public UpdateEntitlementRequest.Builder mergeEntitlement(Entitlement value)

Required. The entitlement resource that is updated.

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

Parameter
Name Description
value Entitlement
Returns
Type Description
UpdateEntitlementRequest.Builder

mergeFrom(UpdateEntitlementRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateEntitlementRequest.Builder mergeUpdateMask(FieldMask value)

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];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateEntitlementRequest.Builder

setEntitlement(Entitlement value)

public UpdateEntitlementRequest.Builder setEntitlement(Entitlement value)

Required. The entitlement resource that is updated.

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

Parameter
Name Description
value Entitlement
Returns
Type Description
UpdateEntitlementRequest.Builder

setEntitlement(Entitlement.Builder builderForValue)

public UpdateEntitlementRequest.Builder setEntitlement(Entitlement.Builder builderForValue)

Required. The entitlement resource that is updated.

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

Parameter
Name Description
builderForValue Entitlement.Builder
Returns
Type Description
UpdateEntitlementRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateEntitlementRequest.Builder setUpdateMask(FieldMask value)

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];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateEntitlementRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateEntitlementRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateEntitlementRequest.Builder