Class ListConstraintsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListConstraintsResponse.Builder>
com.google.cloud.orgpolicy.v2.ListConstraintsResponse.Builder
All Implemented Interfaces:
ListConstraintsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListConstraintsResponse

public static final class ListConstraintsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListConstraintsResponse.Builder> implements ListConstraintsResponseOrBuilder
 The response returned from the [ListConstraints]
 [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
 
Protobuf type google.cloud.orgpolicy.v2.ListConstraintsResponse
  • 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<ListConstraintsResponse.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<ListConstraintsResponse.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<ListConstraintsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListConstraintsResponse.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<ListConstraintsResponse.Builder>
      Throws:
      IOException
    • getConstraintsList

      public List<Constraint> getConstraintsList()
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
      Specified by:
      getConstraintsList in interface ListConstraintsResponseOrBuilder
    • getConstraintsCount

      public int getConstraintsCount()
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
      Specified by:
      getConstraintsCount in interface ListConstraintsResponseOrBuilder
    • getConstraints

      public Constraint getConstraints(int index)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
      Specified by:
      getConstraints in interface ListConstraintsResponseOrBuilder
    • setConstraints

      public ListConstraintsResponse.Builder setConstraints(int index, Constraint value)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • setConstraints

      public ListConstraintsResponse.Builder setConstraints(int index, Constraint.Builder builderForValue)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • addConstraints

      public ListConstraintsResponse.Builder addConstraints(Constraint value)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • addConstraints

      public ListConstraintsResponse.Builder addConstraints(int index, Constraint value)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • addConstraints

      public ListConstraintsResponse.Builder addConstraints(Constraint.Builder builderForValue)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • addConstraints

      public ListConstraintsResponse.Builder addConstraints(int index, Constraint.Builder builderForValue)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • addAllConstraints

      public ListConstraintsResponse.Builder addAllConstraints(Iterable<? extends Constraint> values)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • clearConstraints

      public ListConstraintsResponse.Builder clearConstraints()
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • removeConstraints

      public ListConstraintsResponse.Builder removeConstraints(int index)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • getConstraintsBuilder

      public Constraint.Builder getConstraintsBuilder(int index)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • getConstraintsOrBuilder

      public ConstraintOrBuilder getConstraintsOrBuilder(int index)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
      Specified by:
      getConstraintsOrBuilder in interface ListConstraintsResponseOrBuilder
    • getConstraintsOrBuilderList

      public List<? extends ConstraintOrBuilder> getConstraintsOrBuilderList()
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
      Specified by:
      getConstraintsOrBuilderList in interface ListConstraintsResponseOrBuilder
    • addConstraintsBuilder

      public Constraint.Builder addConstraintsBuilder()
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • addConstraintsBuilder

      public Constraint.Builder addConstraintsBuilder(int index)
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • getConstraintsBuilderList

      public List<Constraint.Builder> getConstraintsBuilderList()
       The collection of constraints that are available on the targeted resource.
       
      repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1;
    • getNextPageToken

      public String getNextPageToken()
       Page token used to retrieve the next page. This is currently not used.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListConstraintsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Page token used to retrieve the next page. This is currently not used.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListConstraintsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListConstraintsResponse.Builder setNextPageToken(String value)
       Page token used to retrieve the next page. This is currently not used.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListConstraintsResponse.Builder clearNextPageToken()
       Page token used to retrieve the next page. This is currently not used.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListConstraintsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Page token used to retrieve the next page. This is currently not used.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.