Class UpdateAccessPolicyRequest.Builder (1.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateAccessPolicyRequest build()
Returns
TypeDescription
UpdateAccessPolicyRequest

buildPartial()

public UpdateAccessPolicyRequest buildPartial()
Returns
TypeDescription
UpdateAccessPolicyRequest

clear()

public UpdateAccessPolicyRequest.Builder clear()
Returns
TypeDescription
UpdateAccessPolicyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateAccessPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateAccessPolicyRequest.Builder

clone()

public UpdateAccessPolicyRequest.Builder clone()
Returns
TypeDescription
UpdateAccessPolicyRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateAccessPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateAccessPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPolicy()

public AccessPolicy getPolicy()

Required. The updated AccessPolicy.

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

Returns
TypeDescription
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
TypeDescription
AccessPolicy.Builder

getPolicyOrBuilder()

public AccessPolicyOrBuilder getPolicyOrBuilder()

Required. The updated AccessPolicy.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMaskOrBuilder

hasPolicy()

public boolean hasPolicy()

Required. The updated AccessPolicy.

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

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

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateAccessPolicyRequest other)

public UpdateAccessPolicyRequest.Builder mergeFrom(UpdateAccessPolicyRequest other)
Parameter
NameDescription
otherUpdateAccessPolicyRequest
Returns
TypeDescription
UpdateAccessPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateAccessPolicyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAccessPolicy
Returns
TypeDescription
UpdateAccessPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateAccessPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueAccessPolicy
Returns
TypeDescription
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
NameDescription
builderForValueAccessPolicy.Builder
Returns
TypeDescription
UpdateAccessPolicyRequest.Builder

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

public UpdateAccessPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateAccessPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateAccessPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateAccessPolicyRequest.Builder