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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.CreateGuestPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GuestPolicies.CreateGuestPolicyRequest build()
buildPartial()
public GuestPolicies.CreateGuestPolicyRequest buildPartial()
clear()
public GuestPolicies.CreateGuestPolicyRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GuestPolicies.CreateGuestPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
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];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public GuestPolicies.CreateGuestPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public GuestPolicies.CreateGuestPolicyRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public GuestPolicies.CreateGuestPolicyRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getGuestPolicy()
public GuestPolicies.GuestPolicy getGuestPolicy()
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
getGuestPolicyBuilder()
public GuestPolicies.GuestPolicy.Builder getGuestPolicyBuilder()
Required. The GuestPolicy to create.
.google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
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];
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 |
---|
Type | Description |
ByteString | The bytes for parent.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GuestPolicies.CreateGuestPolicyRequest other)
public GuestPolicies.CreateGuestPolicyRequest.Builder mergeFrom(GuestPolicies.CreateGuestPolicyRequest other)
public GuestPolicies.CreateGuestPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GuestPolicies.CreateGuestPolicyRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.CreateGuestPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.CreateGuestPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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.
|
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GuestPolicies.CreateGuestPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.CreateGuestPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides