Class GuestPolicies.UpdateGuestPolicyRequest.Builder (2.46.0)

public static final class GuestPolicies.UpdateGuestPolicyRequest.Builder extends GeneratedMessageV3.Builder<GuestPolicies.UpdateGuestPolicyRequest.Builder> implements GuestPolicies.UpdateGuestPolicyRequestOrBuilder

A request message for updating a guest policy.

Protobuf type google.cloud.osconfig.v1beta.UpdateGuestPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.UpdateGuestPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

build()

public GuestPolicies.UpdateGuestPolicyRequest build()
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest

buildPartial()

public GuestPolicies.UpdateGuestPolicyRequest buildPartial()
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest

clear()

public GuestPolicies.UpdateGuestPolicyRequest.Builder clear()
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GuestPolicies.UpdateGuestPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

clearGuestPolicy()

public GuestPolicies.UpdateGuestPolicyRequest.Builder clearGuestPolicy()

Required. The updated GuestPolicy.

.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GuestPolicies.UpdateGuestPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

clearUpdateMask()

public GuestPolicies.UpdateGuestPolicyRequest.Builder clearUpdateMask()

Field mask that controls which fields of the guest policy should be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder

clone()

public GuestPolicies.UpdateGuestPolicyRequest.Builder clone()
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

getDefaultInstanceForType()

public GuestPolicies.UpdateGuestPolicyRequest getDefaultInstanceForType()
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGuestPolicy()

public GuestPolicies.GuestPolicy getGuestPolicy()

Required. The updated GuestPolicy.

.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GuestPolicies.GuestPolicy

The guestPolicy.

getGuestPolicyBuilder()

public GuestPolicies.GuestPolicy.Builder getGuestPolicyBuilder()

Required. The updated GuestPolicy.

.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GuestPolicies.GuestPolicy.Builder

getGuestPolicyOrBuilder()

public GuestPolicies.GuestPolicyOrBuilder getGuestPolicyOrBuilder()

Required. The updated GuestPolicy.

.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GuestPolicies.GuestPolicyOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Field mask that controls which fields of the guest policy should be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Field mask that controls which fields of the guest policy should be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Field mask that controls which fields of the guest policy should be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasGuestPolicy()

public boolean hasGuestPolicy()

Required. The updated GuestPolicy.

.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the guestPolicy field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Field mask that controls which fields of the guest policy should be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GuestPolicies.UpdateGuestPolicyRequest other)

public GuestPolicies.UpdateGuestPolicyRequest.Builder mergeFrom(GuestPolicies.UpdateGuestPolicyRequest other)
Parameter
Name Description
other GuestPolicies.UpdateGuestPolicyRequest
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GuestPolicies.UpdateGuestPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GuestPolicies.UpdateGuestPolicyRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

mergeGuestPolicy(GuestPolicies.GuestPolicy value)

public GuestPolicies.UpdateGuestPolicyRequest.Builder mergeGuestPolicy(GuestPolicies.GuestPolicy value)

Required. The updated GuestPolicy.

.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GuestPolicies.GuestPolicy
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.UpdateGuestPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public GuestPolicies.UpdateGuestPolicyRequest.Builder mergeUpdateMask(FieldMask value)

Field mask that controls which fields of the guest policy should be updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.UpdateGuestPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

setGuestPolicy(GuestPolicies.GuestPolicy value)

public GuestPolicies.UpdateGuestPolicyRequest.Builder setGuestPolicy(GuestPolicies.GuestPolicy value)

Required. The updated GuestPolicy.

.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GuestPolicies.GuestPolicy
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder

setGuestPolicy(GuestPolicies.GuestPolicy.Builder builderForValue)

public GuestPolicies.UpdateGuestPolicyRequest.Builder setGuestPolicy(GuestPolicies.GuestPolicy.Builder builderForValue)

Required. The updated GuestPolicy.

.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue GuestPolicies.GuestPolicy.Builder
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder

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

public GuestPolicies.UpdateGuestPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.UpdateGuestPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public GuestPolicies.UpdateGuestPolicyRequest.Builder setUpdateMask(FieldMask value)

Field mask that controls which fields of the guest policy should be updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public GuestPolicies.UpdateGuestPolicyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Field mask that controls which fields of the guest policy should be updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GuestPolicies.UpdateGuestPolicyRequest.Builder