Class UpdatePolicyRequest.Builder (1.6.22)

public static final class UpdatePolicyRequest.Builder extends GeneratedMessageV3.Builder<UpdatePolicyRequest.Builder> implements UpdatePolicyRequestOrBuilder

Request message for UpdatePolicy.

Protobuf type google.iam.v2.UpdatePolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdatePolicyRequest build()
Returns
TypeDescription
UpdatePolicyRequest

buildPartial()

public UpdatePolicyRequest buildPartial()
Returns
TypeDescription
UpdatePolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdatePolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdatePolicyRequest.Builder
Overrides

clearPolicy()

public UpdatePolicyRequest.Builder clearPolicy()

Required. The policy to update. To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

.google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdatePolicyRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdatePolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdatePolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPolicy()

public Policy getPolicy()

Required. The policy to update. To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

.google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Policy

The policy.

getPolicyBuilder()

public Policy.Builder getPolicyBuilder()

Required. The policy to update. To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

.google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Policy.Builder

getPolicyOrBuilder()

public PolicyOrBuilder getPolicyOrBuilder()

Required. The policy to update. To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

.google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PolicyOrBuilder

hasPolicy()

public boolean hasPolicy()

Required. The policy to update. To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

.google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the policy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdatePolicyRequest other)

public UpdatePolicyRequest.Builder mergeFrom(UpdatePolicyRequest other)
Parameter
NameDescription
otherUpdatePolicyRequest
Returns
TypeDescription
UpdatePolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdatePolicyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdatePolicyRequest.Builder
Overrides

mergePolicy(Policy value)

public UpdatePolicyRequest.Builder mergePolicy(Policy value)

Required. The policy to update. To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

.google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePolicy
Returns
TypeDescription
UpdatePolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdatePolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdatePolicyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicy(Policy value)

public UpdatePolicyRequest.Builder setPolicy(Policy value)

Required. The policy to update. To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

.google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePolicy
Returns
TypeDescription
UpdatePolicyRequest.Builder

setPolicy(Policy.Builder builderForValue)

public UpdatePolicyRequest.Builder setPolicy(Policy.Builder builderForValue)

Required. The policy to update. To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

.google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValuePolicy.Builder
Returns
TypeDescription
UpdatePolicyRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdatePolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdatePolicyRequest.Builder
Overrides