Class LintPolicyRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LintPolicyRequest.Builder>
com.google.iam.admin.v1.LintPolicyRequest.Builder
All Implemented Interfaces:
LintPolicyRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LintPolicyRequest

public static final class LintPolicyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<LintPolicyRequest.Builder> implements LintPolicyRequestOrBuilder
 The request to lint a Cloud IAM policy object.
 
Protobuf type google.iam.admin.v1.LintPolicyRequest
  • 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<LintPolicyRequest.Builder>
    • clear

      public LintPolicyRequest.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<LintPolicyRequest.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<LintPolicyRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public LintPolicyRequest.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<LintPolicyRequest.Builder>
    • mergeFrom

      public LintPolicyRequest.Builder mergeFrom(LintPolicyRequest other)
    • isInitialized

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

      public LintPolicyRequest.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<LintPolicyRequest.Builder>
      Throws:
      IOException
    • getLintObjectCase

      public LintPolicyRequest.LintObjectCase getLintObjectCase()
      Specified by:
      getLintObjectCase in interface LintPolicyRequestOrBuilder
    • clearLintObject

      public LintPolicyRequest.Builder clearLintObject()
    • getFullResourceName

      public String getFullResourceName()
       The full resource name of the policy this lint request is about.
      
       The name follows the Google Cloud Platform (GCP) resource format.
       For example, a GCP project with ID `my-project` will be named
       `//cloudresourcemanager.googleapis.com/projects/my-project`.
      
       The resource name is not used to read the policy instance from the Cloud
       IAM database. The candidate policy for lint has to be provided in the same
       request object.
       
      string full_resource_name = 1;
      Specified by:
      getFullResourceName in interface LintPolicyRequestOrBuilder
      Returns:
      The fullResourceName.
    • getFullResourceNameBytes

      public com.google.protobuf.ByteString getFullResourceNameBytes()
       The full resource name of the policy this lint request is about.
      
       The name follows the Google Cloud Platform (GCP) resource format.
       For example, a GCP project with ID `my-project` will be named
       `//cloudresourcemanager.googleapis.com/projects/my-project`.
      
       The resource name is not used to read the policy instance from the Cloud
       IAM database. The candidate policy for lint has to be provided in the same
       request object.
       
      string full_resource_name = 1;
      Specified by:
      getFullResourceNameBytes in interface LintPolicyRequestOrBuilder
      Returns:
      The bytes for fullResourceName.
    • setFullResourceName

      public LintPolicyRequest.Builder setFullResourceName(String value)
       The full resource name of the policy this lint request is about.
      
       The name follows the Google Cloud Platform (GCP) resource format.
       For example, a GCP project with ID `my-project` will be named
       `//cloudresourcemanager.googleapis.com/projects/my-project`.
      
       The resource name is not used to read the policy instance from the Cloud
       IAM database. The candidate policy for lint has to be provided in the same
       request object.
       
      string full_resource_name = 1;
      Parameters:
      value - The fullResourceName to set.
      Returns:
      This builder for chaining.
    • clearFullResourceName

      public LintPolicyRequest.Builder clearFullResourceName()
       The full resource name of the policy this lint request is about.
      
       The name follows the Google Cloud Platform (GCP) resource format.
       For example, a GCP project with ID `my-project` will be named
       `//cloudresourcemanager.googleapis.com/projects/my-project`.
      
       The resource name is not used to read the policy instance from the Cloud
       IAM database. The candidate policy for lint has to be provided in the same
       request object.
       
      string full_resource_name = 1;
      Returns:
      This builder for chaining.
    • setFullResourceNameBytes

      public LintPolicyRequest.Builder setFullResourceNameBytes(com.google.protobuf.ByteString value)
       The full resource name of the policy this lint request is about.
      
       The name follows the Google Cloud Platform (GCP) resource format.
       For example, a GCP project with ID `my-project` will be named
       `//cloudresourcemanager.googleapis.com/projects/my-project`.
      
       The resource name is not used to read the policy instance from the Cloud
       IAM database. The candidate policy for lint has to be provided in the same
       request object.
       
      string full_resource_name = 1;
      Parameters:
      value - The bytes for fullResourceName to set.
      Returns:
      This builder for chaining.
    • hasCondition

      public boolean hasCondition()
       [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
       
      .google.type.Expr condition = 5;
      Specified by:
      hasCondition in interface LintPolicyRequestOrBuilder
      Returns:
      Whether the condition field is set.
    • getCondition

      public Expr getCondition()
       [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
       
      .google.type.Expr condition = 5;
      Specified by:
      getCondition in interface LintPolicyRequestOrBuilder
      Returns:
      The condition.
    • setCondition

      public LintPolicyRequest.Builder setCondition(Expr value)
       [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
       
      .google.type.Expr condition = 5;
    • setCondition

      public LintPolicyRequest.Builder setCondition(Expr.Builder builderForValue)
       [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
       
      .google.type.Expr condition = 5;
    • mergeCondition

      public LintPolicyRequest.Builder mergeCondition(Expr value)
       [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
       
      .google.type.Expr condition = 5;
    • clearCondition

      public LintPolicyRequest.Builder clearCondition()
       [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
       
      .google.type.Expr condition = 5;
    • getConditionBuilder

      public Expr.Builder getConditionBuilder()
       [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
       
      .google.type.Expr condition = 5;
    • getConditionOrBuilder

      public ExprOrBuilder getConditionOrBuilder()
       [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
       
      .google.type.Expr condition = 5;
      Specified by:
      getConditionOrBuilder in interface LintPolicyRequestOrBuilder