Class GuestPolicies.UpdateGuestPolicyRequest.Builder (2.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GuestPolicies.UpdateGuestPolicyRequest build()
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest

buildPartial()

public GuestPolicies.UpdateGuestPolicyRequest buildPartial()
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest

clear()

public GuestPolicies.UpdateGuestPolicyRequest.Builder clear()
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GuestPolicies.UpdateGuestPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GuestPolicies.UpdateGuestPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

clone()

public GuestPolicies.UpdateGuestPolicyRequest.Builder clone()
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

getDefaultInstanceForType()

public GuestPolicies.UpdateGuestPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMaskOrBuilder

hasGuestPolicy()

public boolean hasGuestPolicy()

Required. The updated GuestPolicy.

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

Returns
TypeDescription
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
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(GuestPolicies.UpdateGuestPolicyRequest other)

public GuestPolicies.UpdateGuestPolicyRequest.Builder mergeFrom(GuestPolicies.UpdateGuestPolicyRequest other)
Parameter
NameDescription
otherGuestPolicies.UpdateGuestPolicyRequest
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GuestPolicies.UpdateGuestPolicyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.GuestPolicy
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.UpdateGuestPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.UpdateGuestPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.GuestPolicy
Returns
TypeDescription
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
NameDescription
builderForValueGuestPolicies.GuestPolicy.Builder
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.UpdateGuestPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder