Interface CreatePolicyRequestOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    CreatePolicyRequest, CreatePolicyRequest.Builder

    public interface CreatePolicyRequestOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getParent()
      Required.
      com.google.protobuf.ByteString getParentBytes()
      Required.
      Policy getPolicy()
      Required.
      PolicyOrBuilder getPolicyOrBuilder()
      Required.
      boolean hasPolicy()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getParent

        String getParent()
         Required. The Cloud resource that will parent the new Policy. Must be in
         one of the following forms:
         * `projects/{project_number}`
         * `projects/{project_id}`
         * `folders/{folder_id}`
         * `organizations/{organization_id}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        The parent.
      • getParentBytes

        com.google.protobuf.ByteString getParentBytes()
         Required. The Cloud resource that will parent the new Policy. Must be in
         one of the following forms:
         * `projects/{project_number}`
         * `projects/{project_id}`
         * `folders/{folder_id}`
         * `organizations/{organization_id}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        The bytes for parent.
      • hasPolicy

        boolean hasPolicy()
         Required. `Policy` to create.
         
        .google.cloud.orgpolicy.v2.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        Whether the policy field is set.
      • getPolicy

        Policy getPolicy()
         Required. `Policy` to create.
         
        .google.cloud.orgpolicy.v2.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The policy.
      • getPolicyOrBuilder

        PolicyOrBuilder getPolicyOrBuilder()
         Required. `Policy` to create.
         
        .google.cloud.orgpolicy.v2.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED];