Class ListCustomConstraintsResponse.Builder

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

public static final class ListCustomConstraintsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListCustomConstraintsResponse.Builder> implements ListCustomConstraintsResponseOrBuilder
 The response returned from the [ListCustomConstraints]
 [google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints] method. It will
 be empty if no custom or managed constraints are set on the organization
 resource.
 
Protobuf type google.cloud.orgpolicy.v2.ListCustomConstraintsResponse
  • 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<ListCustomConstraintsResponse.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<ListCustomConstraintsResponse.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<ListCustomConstraintsResponse.Builder>
    • getDefaultInstanceForType

      public ListCustomConstraintsResponse 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 ListCustomConstraintsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ListCustomConstraintsResponse.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<ListCustomConstraintsResponse.Builder>
      Throws:
      IOException
    • getCustomConstraintsList

      public List<CustomConstraint> getCustomConstraintsList()
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
      Specified by:
      getCustomConstraintsList in interface ListCustomConstraintsResponseOrBuilder
    • getCustomConstraintsCount

      public int getCustomConstraintsCount()
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
      Specified by:
      getCustomConstraintsCount in interface ListCustomConstraintsResponseOrBuilder
    • getCustomConstraints

      public CustomConstraint getCustomConstraints(int index)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
      Specified by:
      getCustomConstraints in interface ListCustomConstraintsResponseOrBuilder
    • setCustomConstraints

      public ListCustomConstraintsResponse.Builder setCustomConstraints(int index, CustomConstraint value)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • setCustomConstraints

      public ListCustomConstraintsResponse.Builder setCustomConstraints(int index, CustomConstraint.Builder builderForValue)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • addCustomConstraints

      public ListCustomConstraintsResponse.Builder addCustomConstraints(CustomConstraint value)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • addCustomConstraints

      public ListCustomConstraintsResponse.Builder addCustomConstraints(int index, CustomConstraint value)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • addCustomConstraints

      public ListCustomConstraintsResponse.Builder addCustomConstraints(CustomConstraint.Builder builderForValue)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • addCustomConstraints

      public ListCustomConstraintsResponse.Builder addCustomConstraints(int index, CustomConstraint.Builder builderForValue)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • addAllCustomConstraints

      public ListCustomConstraintsResponse.Builder addAllCustomConstraints(Iterable<? extends CustomConstraint> values)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • clearCustomConstraints

      public ListCustomConstraintsResponse.Builder clearCustomConstraints()
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • removeCustomConstraints

      public ListCustomConstraintsResponse.Builder removeCustomConstraints(int index)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • getCustomConstraintsBuilder

      public CustomConstraint.Builder getCustomConstraintsBuilder(int index)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • getCustomConstraintsOrBuilder

      public CustomConstraintOrBuilder getCustomConstraintsOrBuilder(int index)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
      Specified by:
      getCustomConstraintsOrBuilder in interface ListCustomConstraintsResponseOrBuilder
    • getCustomConstraintsOrBuilderList

      public List<? extends CustomConstraintOrBuilder> getCustomConstraintsOrBuilderList()
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
      Specified by:
      getCustomConstraintsOrBuilderList in interface ListCustomConstraintsResponseOrBuilder
    • addCustomConstraintsBuilder

      public CustomConstraint.Builder addCustomConstraintsBuilder()
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • addCustomConstraintsBuilder

      public CustomConstraint.Builder addCustomConstraintsBuilder(int index)
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • getCustomConstraintsBuilderList

      public List<CustomConstraint.Builder> getCustomConstraintsBuilderList()
       All custom and managed constraints that exist on the organization resource.
       It will be empty if no custom constraints are set.
       
      repeated .google.cloud.orgpolicy.v2.CustomConstraint custom_constraints = 1;
    • getNextPageToken

      public String getNextPageToken()
       Page token used to retrieve the next page. This is currently not used, but
       the server may at any point start supplying a valid token.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListCustomConstraintsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Page token used to retrieve the next page. This is currently not used, but
       the server may at any point start supplying a valid token.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListCustomConstraintsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListCustomConstraintsResponse.Builder setNextPageToken(String value)
       Page token used to retrieve the next page. This is currently not used, but
       the server may at any point start supplying a valid token.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListCustomConstraintsResponse.Builder clearNextPageToken()
       Page token used to retrieve the next page. This is currently not used, but
       the server may at any point start supplying a valid token.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListCustomConstraintsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Page token used to retrieve the next page. This is currently not used, but
       the server may at any point start supplying a valid token.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.