public static final class GuestPolicies.CreateGuestPolicyRequest.Builder extends GeneratedMessageV3.Builder<GuestPolicies.CreateGuestPolicyRequest.Builder> implements GuestPolicies.CreateGuestPolicyRequestOrBuilder
A request message for creating a guest policy.
Protobuf type google.cloud.osconfig.v1beta.CreateGuestPolicyRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.CreateGuestPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GuestPolicies.CreateGuestPolicyRequest build()
Returns
buildPartial()
public GuestPolicies.CreateGuestPolicyRequest buildPartial()
Returns
clear()
public GuestPolicies.CreateGuestPolicyRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GuestPolicies.CreateGuestPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGuestPolicy()
public GuestPolicies.CreateGuestPolicyRequest.Builder clearGuestPolicy()
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearGuestPolicyId()
public GuestPolicies.CreateGuestPolicyRequest.Builder clearGuestPolicyId()
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
clearOneof(Descriptors.OneofDescriptor oneof)
public GuestPolicies.CreateGuestPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public GuestPolicies.CreateGuestPolicyRequest.Builder clearParent()
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
clone()
public GuestPolicies.CreateGuestPolicyRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GuestPolicies.CreateGuestPolicyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getGuestPolicy()
public GuestPolicies.GuestPolicy getGuestPolicy()
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getGuestPolicyBuilder()
public GuestPolicies.GuestPolicy.Builder getGuestPolicyBuilder()
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getGuestPolicyId()
public 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
Type | Description |
String | The guestPolicyId.
|
getGuestPolicyIdBytes()
public 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
Type | Description |
ByteString | The bytes for guestPolicyId.
|
getGuestPolicyOrBuilder()
public GuestPolicies.GuestPolicyOrBuilder getGuestPolicyOrBuilder()
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getParent()
public 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
Type | Description |
String | The parent.
|
getParentBytes()
public 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
hasGuestPolicy()
public boolean hasGuestPolicy()
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the guestPolicy field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GuestPolicies.CreateGuestPolicyRequest other)
public GuestPolicies.CreateGuestPolicyRequest.Builder mergeFrom(GuestPolicies.CreateGuestPolicyRequest other)
Parameter
Returns
public GuestPolicies.CreateGuestPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GuestPolicies.CreateGuestPolicyRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeGuestPolicy(GuestPolicies.GuestPolicy value)
public GuestPolicies.CreateGuestPolicyRequest.Builder mergeGuestPolicy(GuestPolicies.GuestPolicy value)
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.CreateGuestPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.CreateGuestPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGuestPolicy(GuestPolicies.GuestPolicy value)
public GuestPolicies.CreateGuestPolicyRequest.Builder setGuestPolicy(GuestPolicies.GuestPolicy value)
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setGuestPolicy(GuestPolicies.GuestPolicy.Builder builderForValue)
public GuestPolicies.CreateGuestPolicyRequest.Builder setGuestPolicy(GuestPolicies.GuestPolicy.Builder builderForValue)
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setGuestPolicyId(String value)
public GuestPolicies.CreateGuestPolicyRequest.Builder setGuestPolicyId(String value)
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];
Parameter
Name | Description |
value | String
The guestPolicyId to set.
|
Returns
setGuestPolicyIdBytes(ByteString value)
public GuestPolicies.CreateGuestPolicyRequest.Builder setGuestPolicyIdBytes(ByteString value)
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];
Parameter
Name | Description |
value | ByteString
The bytes for guestPolicyId to set.
|
Returns
setParent(String value)
public GuestPolicies.CreateGuestPolicyRequest.Builder setParent(String value)
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) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public GuestPolicies.CreateGuestPolicyRequest.Builder setParentBytes(ByteString value)
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) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GuestPolicies.CreateGuestPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.CreateGuestPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides