Class UpdateAuthorizationPolicyRequest.Builder (0.27.0)

public static final class UpdateAuthorizationPolicyRequest.Builder extends GeneratedMessageV3.Builder<UpdateAuthorizationPolicyRequest.Builder> implements UpdateAuthorizationPolicyRequestOrBuilder

Request used by the UpdateAuthorizationPolicy method.

Protobuf type google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateAuthorizationPolicyRequest build()
Returns
TypeDescription
UpdateAuthorizationPolicyRequest

buildPartial()

public UpdateAuthorizationPolicyRequest buildPartial()
Returns
TypeDescription
UpdateAuthorizationPolicyRequest

clear()

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

clearAuthorizationPolicy()

public UpdateAuthorizationPolicyRequest.Builder clearAuthorizationPolicy()

Required. Updated AuthorizationPolicy resource.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateAuthorizationPolicyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateAuthorizationPolicyRequest.Builder clearUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the AuthorizationPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpdateAuthorizationPolicyRequest.Builder

clone()

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

getAuthorizationPolicy()

public AuthorizationPolicy getAuthorizationPolicy()

Required. Updated AuthorizationPolicy resource.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AuthorizationPolicy

The authorizationPolicy.

getAuthorizationPolicyBuilder()

public AuthorizationPolicy.Builder getAuthorizationPolicyBuilder()

Required. Updated AuthorizationPolicy resource.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AuthorizationPolicy.Builder

getAuthorizationPolicyOrBuilder()

public AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder()

Required. Updated AuthorizationPolicy resource.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AuthorizationPolicyOrBuilder

getDefaultInstanceForType()

public UpdateAuthorizationPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateAuthorizationPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the AuthorizationPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Field mask is used to specify the fields to be overwritten in the AuthorizationPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Field mask is used to specify the fields to be overwritten in the AuthorizationPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMaskOrBuilder

hasAuthorizationPolicy()

public boolean hasAuthorizationPolicy()

Required. Updated AuthorizationPolicy resource.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the authorizationPolicy field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the AuthorizationPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

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

mergeAuthorizationPolicy(AuthorizationPolicy value)

public UpdateAuthorizationPolicyRequest.Builder mergeAuthorizationPolicy(AuthorizationPolicy value)

Required. Updated AuthorizationPolicy resource.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAuthorizationPolicy
Returns
TypeDescription
UpdateAuthorizationPolicyRequest.Builder

mergeFrom(UpdateAuthorizationPolicyRequest other)

public UpdateAuthorizationPolicyRequest.Builder mergeFrom(UpdateAuthorizationPolicyRequest other)
Parameter
NameDescription
otherUpdateAuthorizationPolicyRequest
Returns
TypeDescription
UpdateAuthorizationPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateAuthorizationPolicyRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Field mask is used to specify the fields to be overwritten in the AuthorizationPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateAuthorizationPolicyRequest.Builder

setAuthorizationPolicy(AuthorizationPolicy value)

public UpdateAuthorizationPolicyRequest.Builder setAuthorizationPolicy(AuthorizationPolicy value)

Required. Updated AuthorizationPolicy resource.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAuthorizationPolicy
Returns
TypeDescription
UpdateAuthorizationPolicyRequest.Builder

setAuthorizationPolicy(AuthorizationPolicy.Builder builderForValue)

public UpdateAuthorizationPolicyRequest.Builder setAuthorizationPolicy(AuthorizationPolicy.Builder builderForValue)

Required. Updated AuthorizationPolicy resource.

.google.cloud.networksecurity.v1beta1.AuthorizationPolicy authorization_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueAuthorizationPolicy.Builder
Returns
TypeDescription
UpdateAuthorizationPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateAuthorizationPolicyRequest.Builder setUpdateMask(FieldMask value)

Optional. Field mask is used to specify the fields to be overwritten in the AuthorizationPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateAuthorizationPolicyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateAuthorizationPolicyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Field mask is used to specify the fields to be overwritten in the AuthorizationPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateAuthorizationPolicyRequest.Builder