Interface CreatePolicyRequestOrBuilder

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

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

    Modifier and Type
    Method
    Description
    Required.
    com.google.protobuf.ByteString
    Required.
    Required.
    Required.
    boolean
    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 Details

    • getParent

      String getParent()
       Required. The Google 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 Google 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];