Class ListOrgPolicyViolationsResponse.Builder

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

public static final class ListOrgPolicyViolationsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListOrgPolicyViolationsResponse.Builder> implements ListOrgPolicyViolationsResponseOrBuilder
 ListOrgPolicyViolationsResponse is the response message for
 [OrgPolicyViolationsPreviewService.ListOrgPolicyViolations][google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.ListOrgPolicyViolations]
 
Protobuf type google.cloud.policysimulator.v1.ListOrgPolicyViolationsResponse
  • 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<ListOrgPolicyViolationsResponse.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<ListOrgPolicyViolationsResponse.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<ListOrgPolicyViolationsResponse.Builder>
    • getDefaultInstanceForType

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

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

      public ListOrgPolicyViolationsResponse.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<ListOrgPolicyViolationsResponse.Builder>
      Throws:
      IOException
    • getOrgPolicyViolationsList

      public List<OrgPolicyViolation> getOrgPolicyViolationsList()
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
      Specified by:
      getOrgPolicyViolationsList in interface ListOrgPolicyViolationsResponseOrBuilder
    • getOrgPolicyViolationsCount

      public int getOrgPolicyViolationsCount()
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
      Specified by:
      getOrgPolicyViolationsCount in interface ListOrgPolicyViolationsResponseOrBuilder
    • getOrgPolicyViolations

      public OrgPolicyViolation getOrgPolicyViolations(int index)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
      Specified by:
      getOrgPolicyViolations in interface ListOrgPolicyViolationsResponseOrBuilder
    • setOrgPolicyViolations

      public ListOrgPolicyViolationsResponse.Builder setOrgPolicyViolations(int index, OrgPolicyViolation value)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • setOrgPolicyViolations

      public ListOrgPolicyViolationsResponse.Builder setOrgPolicyViolations(int index, OrgPolicyViolation.Builder builderForValue)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • addOrgPolicyViolations

      public ListOrgPolicyViolationsResponse.Builder addOrgPolicyViolations(OrgPolicyViolation value)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • addOrgPolicyViolations

      public ListOrgPolicyViolationsResponse.Builder addOrgPolicyViolations(int index, OrgPolicyViolation value)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • addOrgPolicyViolations

      public ListOrgPolicyViolationsResponse.Builder addOrgPolicyViolations(OrgPolicyViolation.Builder builderForValue)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • addOrgPolicyViolations

      public ListOrgPolicyViolationsResponse.Builder addOrgPolicyViolations(int index, OrgPolicyViolation.Builder builderForValue)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • addAllOrgPolicyViolations

      public ListOrgPolicyViolationsResponse.Builder addAllOrgPolicyViolations(Iterable<? extends OrgPolicyViolation> values)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • clearOrgPolicyViolations

      public ListOrgPolicyViolationsResponse.Builder clearOrgPolicyViolations()
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • removeOrgPolicyViolations

      public ListOrgPolicyViolationsResponse.Builder removeOrgPolicyViolations(int index)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • getOrgPolicyViolationsBuilder

      public OrgPolicyViolation.Builder getOrgPolicyViolationsBuilder(int index)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • getOrgPolicyViolationsOrBuilder

      public OrgPolicyViolationOrBuilder getOrgPolicyViolationsOrBuilder(int index)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
      Specified by:
      getOrgPolicyViolationsOrBuilder in interface ListOrgPolicyViolationsResponseOrBuilder
    • getOrgPolicyViolationsOrBuilderList

      public List<? extends OrgPolicyViolationOrBuilder> getOrgPolicyViolationsOrBuilderList()
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
      Specified by:
      getOrgPolicyViolationsOrBuilderList in interface ListOrgPolicyViolationsResponseOrBuilder
    • addOrgPolicyViolationsBuilder

      public OrgPolicyViolation.Builder addOrgPolicyViolationsBuilder()
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • addOrgPolicyViolationsBuilder

      public OrgPolicyViolation.Builder addOrgPolicyViolationsBuilder(int index)
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • getOrgPolicyViolationsBuilderList

      public List<OrgPolicyViolation.Builder> getOrgPolicyViolationsBuilderList()
       The list of OrgPolicyViolations
       
      repeated .google.cloud.policysimulator.v1.OrgPolicyViolation org_policy_violations = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token that you can use to retrieve the next page of results.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListOrgPolicyViolationsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token that you can use to retrieve the next page of results.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListOrgPolicyViolationsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListOrgPolicyViolationsResponse.Builder setNextPageToken(String value)
       A token that you can use to retrieve the next page of results.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListOrgPolicyViolationsResponse.Builder clearNextPageToken()
       A token that you can use to retrieve the next page of results.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListOrgPolicyViolationsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token that you can use to retrieve the next page of results.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.