Class UpdatePolicyRequest.Builder (2.18.0)

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

The request sent to the [UpdatePolicyRequest] [google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method.

Protobuf type google.cloud.orgpolicy.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. Policy to update.

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

Returns
TypeDescription
UpdatePolicyRequest.Builder

clearUpdateMask()

public UpdatePolicyRequest.Builder clearUpdateMask()

Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.

.google.protobuf.FieldMask update_mask = 3;

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. Policy to update.

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

Returns
TypeDescription
Policy

The policy.

getPolicyBuilder()

public Policy.Builder getPolicyBuilder()

Required. Policy to update.

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

Returns
TypeDescription
Policy.Builder

getPolicyOrBuilder()

public PolicyOrBuilder getPolicyOrBuilder()

Required. Policy to update.

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

Returns
TypeDescription
PolicyOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMaskOrBuilder

hasPolicy()

public boolean hasPolicy()

Required. Policy to update.

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

Returns
TypeDescription
boolean

Whether the policy field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.

.google.protobuf.FieldMask update_mask = 3;

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(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. Policy to update.

.google.cloud.orgpolicy.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

mergeUpdateMask(FieldMask value)

public UpdatePolicyRequest.Builder mergeUpdateMask(FieldMask value)

Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdatePolicyRequest.Builder

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. Policy to update.

.google.cloud.orgpolicy.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. Policy to update.

.google.cloud.orgpolicy.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

setUpdateMask(FieldMask value)

public UpdatePolicyRequest.Builder setUpdateMask(FieldMask value)

Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdatePolicyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdatePolicyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdatePolicyRequest.Builder