Class GuestPolicies.UpdateGuestPolicyRequest (2.8.0)

public static final class GuestPolicies.UpdateGuestPolicyRequest extends GeneratedMessageV3 implements GuestPolicies.UpdateGuestPolicyRequestOrBuilder

A request message for updating a guest policy.

Protobuf type google.cloud.osconfig.v1beta.UpdateGuestPolicyRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GuestPolicies.UpdateGuestPolicyRequest

Static Fields

GUEST_POLICY_FIELD_NUMBER

public static final int GUEST_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GuestPolicies.UpdateGuestPolicyRequest getDefaultInstance()
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest

getDescriptor()

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

newBuilder()

public static GuestPolicies.UpdateGuestPolicyRequest.Builder newBuilder()
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

newBuilder(GuestPolicies.UpdateGuestPolicyRequest prototype)

public static GuestPolicies.UpdateGuestPolicyRequest.Builder newBuilder(GuestPolicies.UpdateGuestPolicyRequest prototype)
Parameter
NameDescription
prototypeGuestPolicies.UpdateGuestPolicyRequest
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static GuestPolicies.UpdateGuestPolicyRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.UpdateGuestPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.UpdateGuestPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GuestPolicies.UpdateGuestPolicyRequest> parser()
Returns
TypeDescription
Parser<UpdateGuestPolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

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

getParserForType()

public Parser<GuestPolicies.UpdateGuestPolicyRequest> getParserForType()
Returns
TypeDescription
Parser<UpdateGuestPolicyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GuestPolicies.UpdateGuestPolicyRequest.Builder newBuilderForType()
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GuestPolicies.UpdateGuestPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GuestPolicies.UpdateGuestPolicyRequest.Builder toBuilder()
Returns
TypeDescription
GuestPolicies.UpdateGuestPolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException