Class UpdatePolicyRequest.Builder (2.6.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

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

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.

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

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