Class ListComponentsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListComponentsResponse.Builder>
com.google.cloud.securitycenter.settings.v1beta1.ListComponentsResponse.Builder
All Implemented Interfaces:
ListComponentsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListComponentsResponse

public static final class ListComponentsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListComponentsResponse.Builder> implements ListComponentsResponseOrBuilder
 Response message for ListComponents.
 
Protobuf type google.cloud.securitycenter.settings.v1beta1.ListComponentsResponse
  • 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<ListComponentsResponse.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<ListComponentsResponse.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<ListComponentsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListComponentsResponse.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<ListComponentsResponse.Builder>
      Throws:
      IOException
    • getComponentsList

      public com.google.protobuf.ProtocolStringList getComponentsList()
       The components from the specified organization.
       
      repeated string components = 1;
      Specified by:
      getComponentsList in interface ListComponentsResponseOrBuilder
      Returns:
      A list containing the components.
    • getComponentsCount

      public int getComponentsCount()
       The components from the specified organization.
       
      repeated string components = 1;
      Specified by:
      getComponentsCount in interface ListComponentsResponseOrBuilder
      Returns:
      The count of components.
    • getComponents

      public String getComponents(int index)
       The components from the specified organization.
       
      repeated string components = 1;
      Specified by:
      getComponents in interface ListComponentsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The components at the given index.
    • getComponentsBytes

      public com.google.protobuf.ByteString getComponentsBytes(int index)
       The components from the specified organization.
       
      repeated string components = 1;
      Specified by:
      getComponentsBytes in interface ListComponentsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the components at the given index.
    • setComponents

      public ListComponentsResponse.Builder setComponents(int index, String value)
       The components from the specified organization.
       
      repeated string components = 1;
      Parameters:
      index - The index to set the value at.
      value - The components to set.
      Returns:
      This builder for chaining.
    • addComponents

      public ListComponentsResponse.Builder addComponents(String value)
       The components from the specified organization.
       
      repeated string components = 1;
      Parameters:
      value - The components to add.
      Returns:
      This builder for chaining.
    • addAllComponents

      public ListComponentsResponse.Builder addAllComponents(Iterable<String> values)
       The components from the specified organization.
       
      repeated string components = 1;
      Parameters:
      values - The components to add.
      Returns:
      This builder for chaining.
    • clearComponents

      public ListComponentsResponse.Builder clearComponents()
       The components from the specified organization.
       
      repeated string components = 1;
      Returns:
      This builder for chaining.
    • addComponentsBytes

      public ListComponentsResponse.Builder addComponentsBytes(com.google.protobuf.ByteString value)
       The components from the specified organization.
       
      repeated string components = 1;
      Parameters:
      value - The bytes of the components to add.
      Returns:
      This builder for chaining.
    • getNextPageToken

      public String getNextPageToken()
       A token that can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListComponentsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

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

      public ListComponentsResponse.Builder setNextPageToken(String value)
       A token that can be sent as `page_token` to retrieve the next page.
       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 ListComponentsResponse.Builder clearNextPageToken()
       A token that can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListComponentsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token that can be sent as `page_token` to retrieve the next page.
       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.