Class OrgPolicyViolationsPreview.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolationsPreview.Builder>
com.google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.Builder
All Implemented Interfaces:
OrgPolicyViolationsPreviewOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OrgPolicyViolationsPreview

public static final class OrgPolicyViolationsPreview.Builder extends com.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolationsPreview.Builder> implements OrgPolicyViolationsPreviewOrBuilder
 OrgPolicyViolationsPreview is a resource providing a preview of the
 violations that will exist if an OrgPolicy change is made.

 The list of violations are modeled as child resources and retrieved via a
 [ListOrgPolicyViolations][] API call. There are potentially more
 [OrgPolicyViolations][] than could fit in an embedded field. Thus, the use of
 a child resource instead of a field.
 
Protobuf type google.cloud.policysimulator.v1.OrgPolicyViolationsPreview
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolationsPreview.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolationsPreview.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.GeneratedMessage.Builder<OrgPolicyViolationsPreview.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public OrgPolicyViolationsPreview buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public OrgPolicyViolationsPreview.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OrgPolicyViolationsPreview.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolationsPreview.Builder>
    • mergeFrom

      public OrgPolicyViolationsPreview.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OrgPolicyViolationsPreview.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. The resource name of the `OrgPolicyViolationsPreview`. It has
       the following format:
      
       `organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}`
      
       Example:
       `organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of the `OrgPolicyViolationsPreview`. It has
       the following format:
      
       `organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}`
      
       Example:
       `organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      The bytes for name.
    • setName

       Output only. The resource name of the `OrgPolicyViolationsPreview`. It has
       the following format:
      
       `organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}`
      
       Example:
       `organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Output only. The resource name of the `OrgPolicyViolationsPreview`. It has
       the following format:
      
       `organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}`
      
       Example:
       `organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public OrgPolicyViolationsPreview.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the `OrgPolicyViolationsPreview`. It has
       the following format:
      
       `organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}`
      
       Example:
       `organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The state of the `OrgPolicyViolationsPreview`.
       
      .google.cloud.policysimulator.v1.PreviewState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public OrgPolicyViolationsPreview.Builder setStateValue(int value)
       Output only. The state of the `OrgPolicyViolationsPreview`.
       
      .google.cloud.policysimulator.v1.PreviewState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public PreviewState getState()
       Output only. The state of the `OrgPolicyViolationsPreview`.
       
      .google.cloud.policysimulator.v1.PreviewState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      The state.
    • setState

       Output only. The state of the `OrgPolicyViolationsPreview`.
       
      .google.cloud.policysimulator.v1.PreviewState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Output only. The state of the `OrgPolicyViolationsPreview`.
       
      .google.cloud.policysimulator.v1.PreviewState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasOverlay

      public boolean hasOverlay()
       Required. The proposed changes we are previewing violations for.
       
      .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOverlay in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      Whether the overlay field is set.
    • getOverlay

      public OrgPolicyOverlay getOverlay()
       Required. The proposed changes we are previewing violations for.
       
      .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOverlay in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      The overlay.
    • setOverlay

       Required. The proposed changes we are previewing violations for.
       
      .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
    • setOverlay

      public OrgPolicyViolationsPreview.Builder setOverlay(OrgPolicyOverlay.Builder builderForValue)
       Required. The proposed changes we are previewing violations for.
       
      .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeOverlay

       Required. The proposed changes we are previewing violations for.
       
      .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearOverlay

      public OrgPolicyViolationsPreview.Builder clearOverlay()
       Required. The proposed changes we are previewing violations for.
       
      .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
    • getOverlayBuilder

      public OrgPolicyOverlay.Builder getOverlayBuilder()
       Required. The proposed changes we are previewing violations for.
       
      .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
    • getOverlayOrBuilder

      public OrgPolicyOverlayOrBuilder getOverlayOrBuilder()
       Required. The proposed changes we are previewing violations for.
       
      .google.cloud.policysimulator.v1.OrgPolicyOverlay overlay = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOverlayOrBuilder in interface OrgPolicyViolationsPreviewOrBuilder
    • getViolationsCount

      public int getViolationsCount()
       Output only. The number of [OrgPolicyViolations][] in this
       `OrgPolicyViolationsPreview`. This count may differ from
       `resource_summary.noncompliant_count` because each
       [OrgPolicyViolation][google.cloud.policysimulator.v1.OrgPolicyViolation] is
       specific to a resource **and** constraint. If there are multiple
       constraints being evaluated (i.e. multiple policies in the overlay), a
       single resource may violate multiple constraints.
       
      int32 violations_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getViolationsCount in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      The violationsCount.
    • setViolationsCount

      public OrgPolicyViolationsPreview.Builder setViolationsCount(int value)
       Output only. The number of [OrgPolicyViolations][] in this
       `OrgPolicyViolationsPreview`. This count may differ from
       `resource_summary.noncompliant_count` because each
       [OrgPolicyViolation][google.cloud.policysimulator.v1.OrgPolicyViolation] is
       specific to a resource **and** constraint. If there are multiple
       constraints being evaluated (i.e. multiple policies in the overlay), a
       single resource may violate multiple constraints.
       
      int32 violations_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The violationsCount to set.
      Returns:
      This builder for chaining.
    • clearViolationsCount

      public OrgPolicyViolationsPreview.Builder clearViolationsCount()
       Output only. The number of [OrgPolicyViolations][] in this
       `OrgPolicyViolationsPreview`. This count may differ from
       `resource_summary.noncompliant_count` because each
       [OrgPolicyViolation][google.cloud.policysimulator.v1.OrgPolicyViolation] is
       specific to a resource **and** constraint. If there are multiple
       constraints being evaluated (i.e. multiple policies in the overlay), a
       single resource may violate multiple constraints.
       
      int32 violations_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasResourceCounts

      public boolean hasResourceCounts()
       Output only. A summary of the state of all resources scanned for compliance
       with the changed OrgPolicy.
       
      .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasResourceCounts in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      Whether the resourceCounts field is set.
    • getResourceCounts

      public OrgPolicyViolationsPreview.ResourceCounts getResourceCounts()
       Output only. A summary of the state of all resources scanned for compliance
       with the changed OrgPolicy.
       
      .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceCounts in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      The resourceCounts.
    • setResourceCounts

       Output only. A summary of the state of all resources scanned for compliance
       with the changed OrgPolicy.
       
      .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setResourceCounts

       Output only. A summary of the state of all resources scanned for compliance
       with the changed OrgPolicy.
       
      .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeResourceCounts

       Output only. A summary of the state of all resources scanned for compliance
       with the changed OrgPolicy.
       
      .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearResourceCounts

      public OrgPolicyViolationsPreview.Builder clearResourceCounts()
       Output only. A summary of the state of all resources scanned for compliance
       with the changed OrgPolicy.
       
      .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getResourceCountsBuilder

      public OrgPolicyViolationsPreview.ResourceCounts.Builder getResourceCountsBuilder()
       Output only. A summary of the state of all resources scanned for compliance
       with the changed OrgPolicy.
       
      .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getResourceCountsOrBuilder

      public OrgPolicyViolationsPreview.ResourceCountsOrBuilder getResourceCountsOrBuilder()
       Output only. A summary of the state of all resources scanned for compliance
       with the changed OrgPolicy.
       
      .google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts resource_counts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceCountsOrBuilder in interface OrgPolicyViolationsPreviewOrBuilder
    • getCustomConstraintsList

      public com.google.protobuf.ProtocolStringList getCustomConstraintsList()
       Output only. The names of the constraints against which all
       `OrgPolicyViolations` were evaluated.
      
       If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains
       the name of the configured custom constraint, applicable to the specified
       policies. Otherwise it contains the name of the constraint specified in
       `CustomConstraintOverlay`.
      
       Format:
       `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
      
       Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
       
      repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCustomConstraintsList in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      A list containing the customConstraints.
    • getCustomConstraintsCount

      public int getCustomConstraintsCount()
       Output only. The names of the constraints against which all
       `OrgPolicyViolations` were evaluated.
      
       If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains
       the name of the configured custom constraint, applicable to the specified
       policies. Otherwise it contains the name of the constraint specified in
       `CustomConstraintOverlay`.
      
       Format:
       `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
      
       Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
       
      repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCustomConstraintsCount in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      The count of customConstraints.
    • getCustomConstraints

      public String getCustomConstraints(int index)
       Output only. The names of the constraints against which all
       `OrgPolicyViolations` were evaluated.
      
       If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains
       the name of the configured custom constraint, applicable to the specified
       policies. Otherwise it contains the name of the constraint specified in
       `CustomConstraintOverlay`.
      
       Format:
       `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
      
       Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
       
      repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCustomConstraints in interface OrgPolicyViolationsPreviewOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The customConstraints at the given index.
    • getCustomConstraintsBytes

      public com.google.protobuf.ByteString getCustomConstraintsBytes(int index)
       Output only. The names of the constraints against which all
       `OrgPolicyViolations` were evaluated.
      
       If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains
       the name of the configured custom constraint, applicable to the specified
       policies. Otherwise it contains the name of the constraint specified in
       `CustomConstraintOverlay`.
      
       Format:
       `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
      
       Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
       
      repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCustomConstraintsBytes in interface OrgPolicyViolationsPreviewOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the customConstraints at the given index.
    • setCustomConstraints

      public OrgPolicyViolationsPreview.Builder setCustomConstraints(int index, String value)
       Output only. The names of the constraints against which all
       `OrgPolicyViolations` were evaluated.
      
       If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains
       the name of the configured custom constraint, applicable to the specified
       policies. Otherwise it contains the name of the constraint specified in
       `CustomConstraintOverlay`.
      
       Format:
       `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
      
       Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
       
      repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The customConstraints to set.
      Returns:
      This builder for chaining.
    • addCustomConstraints

      public OrgPolicyViolationsPreview.Builder addCustomConstraints(String value)
       Output only. The names of the constraints against which all
       `OrgPolicyViolations` were evaluated.
      
       If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains
       the name of the configured custom constraint, applicable to the specified
       policies. Otherwise it contains the name of the constraint specified in
       `CustomConstraintOverlay`.
      
       Format:
       `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
      
       Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
       
      repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The customConstraints to add.
      Returns:
      This builder for chaining.
    • addAllCustomConstraints

      public OrgPolicyViolationsPreview.Builder addAllCustomConstraints(Iterable<String> values)
       Output only. The names of the constraints against which all
       `OrgPolicyViolations` were evaluated.
      
       If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains
       the name of the configured custom constraint, applicable to the specified
       policies. Otherwise it contains the name of the constraint specified in
       `CustomConstraintOverlay`.
      
       Format:
       `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
      
       Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
       
      repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The customConstraints to add.
      Returns:
      This builder for chaining.
    • clearCustomConstraints

      public OrgPolicyViolationsPreview.Builder clearCustomConstraints()
       Output only. The names of the constraints against which all
       `OrgPolicyViolations` were evaluated.
      
       If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains
       the name of the configured custom constraint, applicable to the specified
       policies. Otherwise it contains the name of the constraint specified in
       `CustomConstraintOverlay`.
      
       Format:
       `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
      
       Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
       
      repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addCustomConstraintsBytes

      public OrgPolicyViolationsPreview.Builder addCustomConstraintsBytes(com.google.protobuf.ByteString value)
       Output only. The names of the constraints against which all
       `OrgPolicyViolations` were evaluated.
      
       If `OrgPolicyOverlay` only contains `PolicyOverlay` then it contains
       the name of the configured custom constraint, applicable to the specified
       policies. Otherwise it contains the name of the constraint specified in
       `CustomConstraintOverlay`.
      
       Format:
       `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
      
       Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
       
      repeated string custom_constraints = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the customConstraints to add.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when this `OrgPolicyViolationsPreview` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when this `OrgPolicyViolationsPreview` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface OrgPolicyViolationsPreviewOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public OrgPolicyViolationsPreview.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this `OrgPolicyViolationsPreview` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public OrgPolicyViolationsPreview.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when this `OrgPolicyViolationsPreview` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public OrgPolicyViolationsPreview.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this `OrgPolicyViolationsPreview` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public OrgPolicyViolationsPreview.Builder clearCreateTime()
       Output only. Time when this `OrgPolicyViolationsPreview` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time when this `OrgPolicyViolationsPreview` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when this `OrgPolicyViolationsPreview` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface OrgPolicyViolationsPreviewOrBuilder