Class GuestPolicies.CreateGuestPolicyRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.CreateGuestPolicyRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.CreateGuestPolicyRequest.Builder>
      • getDefaultInstanceForType

        public GuestPolicies.CreateGuestPolicyRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GuestPolicies.CreateGuestPolicyRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GuestPolicies.CreateGuestPolicyRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.CreateGuestPolicyRequest.Builder>
      • 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) = { ... }
        Specified by:
        getParent in interface GuestPolicies.CreateGuestPolicyRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.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) = { ... }
        Specified by:
        getParentBytes in interface GuestPolicies.CreateGuestPolicyRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        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) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setParentBytes

        public GuestPolicies.CreateGuestPolicyRequest.Builder setParentBytes​(com.google.protobuf.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) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getGuestPolicyId in interface GuestPolicies.CreateGuestPolicyRequestOrBuilder
        Returns:
        The guestPolicyId.
      • getGuestPolicyIdBytes

        public com.google.protobuf.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];
        Specified by:
        getGuestPolicyIdBytes in interface GuestPolicies.CreateGuestPolicyRequestOrBuilder
        Returns:
        The bytes for guestPolicyId.
      • setGuestPolicyId

        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];
        Parameters:
        value - The guestPolicyId to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setGuestPolicyIdBytes

        public GuestPolicies.CreateGuestPolicyRequest.Builder setGuestPolicyIdBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for guestPolicyId to set.
        Returns:
        This builder for chaining.
      • hasGuestPolicy

        public boolean hasGuestPolicy()
         Required. The GuestPolicy to create.
         
        .google.cloud.osconfig.v1beta.GuestPolicy guest_policy = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasGuestPolicy in interface GuestPolicies.CreateGuestPolicyRequestOrBuilder
        Returns:
        Whether the guestPolicy field is set.
      • clearGuestPolicy

        public GuestPolicies.CreateGuestPolicyRequest.Builder clearGuestPolicy()
         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];