Interface GuestPolicies.CreateGuestPolicyRequestOrBuilder (2.5.2)

public static interface GuestPolicies.CreateGuestPolicyRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getGuestPolicy()

public abstract GuestPolicies.GuestPolicy getGuestPolicy()

Required. The GuestPolicy to create.

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

Returns
TypeDescription
GuestPolicies.GuestPolicy

The guestPolicy.

getGuestPolicyId()

public abstract String getGuestPolicyId()

Required. The logical name of the guest policy in the project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the project.

string guest_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The guestPolicyId.

getGuestPolicyIdBytes()

public abstract ByteString getGuestPolicyIdBytes()

Required. The logical name of the guest policy in the project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the project.

string guest_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for guestPolicyId.

getGuestPolicyOrBuilder()

public abstract GuestPolicies.GuestPolicyOrBuilder getGuestPolicyOrBuilder()

Required. The GuestPolicy to create.

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

Returns
TypeDescription
GuestPolicies.GuestPolicyOrBuilder

getParent()

public abstract String getParent()

Required. The resource name of the parent using one of the following forms: projects/{project_number}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The resource name of the parent using one of the following forms: projects/{project_number}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

hasGuestPolicy()

public abstract boolean hasGuestPolicy()

Required. The GuestPolicy to create.

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

Returns
TypeDescription
boolean

Whether the guestPolicy field is set.