Class UpdatePolicyRequest.Builder (1.6.0)

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

Request message for [BinauthzManagementService.UpdatePolicy][].

Protobuf type google.cloud.binaryauthorization.v1beta1.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. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1beta1.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. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Policy

The policy.

getPolicyBuilder()

public Policy.Builder getPolicyBuilder()

Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Policy.Builder

getPolicyOrBuilder()

public PolicyOrBuilder getPolicyOrBuilder()

Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PolicyOrBuilder

hasPolicy()

public boolean hasPolicy()

Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1beta1.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. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1beta1.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. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1beta1.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. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1beta1.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