Class UpdateAccessPolicyRequest.Builder (1.56.0)

public static final class UpdateAccessPolicyRequest.Builder extends GeneratedMessageV3.Builder<UpdateAccessPolicyRequest.Builder> implements UpdateAccessPolicyRequestOrBuilder

A request to update an AccessPolicy.

Protobuf type google.identity.accesscontextmanager.v1.UpdateAccessPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateAccessPolicyRequest build()
Returns
Type Description
UpdateAccessPolicyRequest

buildPartial()

public UpdateAccessPolicyRequest buildPartial()
Returns
Type Description
UpdateAccessPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicy()

public UpdateAccessPolicyRequest.Builder clearPolicy()

Required. The updated AccessPolicy.

.google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateAccessPolicyRequest.Builder

clearUpdateMask()

public UpdateAccessPolicyRequest.Builder clearUpdateMask()

Required. Mask to control which fields get updated. Must be non-empty.

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

Returns
Type Description
UpdateAccessPolicyRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateAccessPolicyRequest getDefaultInstanceForType()
Returns
Type Description
UpdateAccessPolicyRequest

getDescriptorForType()

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

getPolicy()

public AccessPolicy getPolicy()

Required. The updated AccessPolicy.

.google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessPolicy

The policy.

getPolicyBuilder()

public AccessPolicy.Builder getPolicyBuilder()

Required. The updated AccessPolicy.

.google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessPolicy.Builder

getPolicyOrBuilder()

public AccessPolicyOrBuilder getPolicyOrBuilder()

Required. The updated AccessPolicy.

.google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessPolicyOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Mask to control which fields get updated. Must be non-empty.

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

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Mask to control which fields get updated. Must be non-empty.

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

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Mask to control which fields get updated. Must be non-empty.

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

Returns
Type Description
FieldMaskOrBuilder

hasPolicy()

public boolean hasPolicy()

Required. The updated AccessPolicy.

.google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the policy field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Mask to control which fields get updated. Must be non-empty.

.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

mergeFrom(UpdateAccessPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePolicy(AccessPolicy value)

public UpdateAccessPolicyRequest.Builder mergePolicy(AccessPolicy value)

Required. The updated AccessPolicy.

.google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AccessPolicy
Returns
Type Description
UpdateAccessPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateAccessPolicyRequest.Builder mergeUpdateMask(FieldMask value)

Required. Mask to control which fields get updated. Must be non-empty.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateAccessPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicy(AccessPolicy value)

public UpdateAccessPolicyRequest.Builder setPolicy(AccessPolicy value)

Required. The updated AccessPolicy.

.google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AccessPolicy
Returns
Type Description
UpdateAccessPolicyRequest.Builder

setPolicy(AccessPolicy.Builder builderForValue)

public UpdateAccessPolicyRequest.Builder setPolicy(AccessPolicy.Builder builderForValue)

Required. The updated AccessPolicy.

.google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AccessPolicy.Builder
Returns
Type Description
UpdateAccessPolicyRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateAccessPolicyRequest.Builder setUpdateMask(FieldMask value)

Required. Mask to control which fields get updated. Must be non-empty.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateAccessPolicyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateAccessPolicyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Mask to control which fields get updated. Must be non-empty.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateAccessPolicyRequest.Builder