Class ListMeshesResponse.Builder

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

public static final class ListMeshesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListMeshesResponse.Builder> implements ListMeshesResponseOrBuilder
 Response returned by the ListMeshes method.
 
Protobuf type google.cloud.networkservices.v1.ListMeshesResponse
  • 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<ListMeshesResponse.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<ListMeshesResponse.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<ListMeshesResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListMeshesResponse.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<ListMeshesResponse.Builder>
      Throws:
      IOException
    • getMeshesList

      public List<Mesh> getMeshesList()
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
      Specified by:
      getMeshesList in interface ListMeshesResponseOrBuilder
    • getMeshesCount

      public int getMeshesCount()
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
      Specified by:
      getMeshesCount in interface ListMeshesResponseOrBuilder
    • getMeshes

      public Mesh getMeshes(int index)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
      Specified by:
      getMeshes in interface ListMeshesResponseOrBuilder
    • setMeshes

      public ListMeshesResponse.Builder setMeshes(int index, Mesh value)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • setMeshes

      public ListMeshesResponse.Builder setMeshes(int index, Mesh.Builder builderForValue)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • addMeshes

      public ListMeshesResponse.Builder addMeshes(Mesh value)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • addMeshes

      public ListMeshesResponse.Builder addMeshes(int index, Mesh value)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • addMeshes

      public ListMeshesResponse.Builder addMeshes(Mesh.Builder builderForValue)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • addMeshes

      public ListMeshesResponse.Builder addMeshes(int index, Mesh.Builder builderForValue)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • addAllMeshes

      public ListMeshesResponse.Builder addAllMeshes(Iterable<? extends Mesh> values)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • clearMeshes

      public ListMeshesResponse.Builder clearMeshes()
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • removeMeshes

      public ListMeshesResponse.Builder removeMeshes(int index)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • getMeshesBuilder

      public Mesh.Builder getMeshesBuilder(int index)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • getMeshesOrBuilder

      public MeshOrBuilder getMeshesOrBuilder(int index)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
      Specified by:
      getMeshesOrBuilder in interface ListMeshesResponseOrBuilder
    • getMeshesOrBuilderList

      public List<? extends MeshOrBuilder> getMeshesOrBuilderList()
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
      Specified by:
      getMeshesOrBuilderList in interface ListMeshesResponseOrBuilder
    • addMeshesBuilder

      public Mesh.Builder addMeshesBuilder()
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • addMeshesBuilder

      public Mesh.Builder addMeshesBuilder(int index)
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • getMeshesBuilderList

      public List<Mesh.Builder> getMeshesBuilderList()
       List of Mesh resources.
       
      repeated .google.cloud.networkservices.v1.Mesh meshes = 1;
    • getNextPageToken

      public String getNextPageToken()
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListMeshesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListMeshesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListMeshesResponse.Builder setNextPageToken(String value)
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListMeshesResponse.Builder clearNextPageToken()
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListMeshesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       If there might be more results than those appearing in this response, then
       `next_page_token` is included. To get the next set of results, call this
       method again using the value of `next_page_token` as `page_token`.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getUnreachableList

      public com.google.protobuf.ProtocolStringList getUnreachableList()
       Unreachable resources. Populated when the request opts into
       `return_partial_success` and reading across collections e.g. when
       attempting to list all resources across all supported locations.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface ListMeshesResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Unreachable resources. Populated when the request opts into
       `return_partial_success` and reading across collections e.g. when
       attempting to list all resources across all supported locations.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface ListMeshesResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       Unreachable resources. Populated when the request opts into
       `return_partial_success` and reading across collections e.g. when
       attempting to list all resources across all supported locations.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachable in interface ListMeshesResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The unreachable at the given index.
    • getUnreachableBytes

      public com.google.protobuf.ByteString getUnreachableBytes(int index)
       Unreachable resources. Populated when the request opts into
       `return_partial_success` and reading across collections e.g. when
       attempting to list all resources across all supported locations.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableBytes in interface ListMeshesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListMeshesResponse.Builder setUnreachable(int index, String value)
       Unreachable resources. Populated when the request opts into
       `return_partial_success` and reading across collections e.g. when
       attempting to list all resources across all supported locations.
       
      repeated string unreachable = 3;
      Parameters:
      index - The index to set the value at.
      value - The unreachable to set.
      Returns:
      This builder for chaining.
    • addUnreachable

      public ListMeshesResponse.Builder addUnreachable(String value)
       Unreachable resources. Populated when the request opts into
       `return_partial_success` and reading across collections e.g. when
       attempting to list all resources across all supported locations.
       
      repeated string unreachable = 3;
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public ListMeshesResponse.Builder addAllUnreachable(Iterable<String> values)
       Unreachable resources. Populated when the request opts into
       `return_partial_success` and reading across collections e.g. when
       attempting to list all resources across all supported locations.
       
      repeated string unreachable = 3;
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public ListMeshesResponse.Builder clearUnreachable()
       Unreachable resources. Populated when the request opts into
       `return_partial_success` and reading across collections e.g. when
       attempting to list all resources across all supported locations.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListMeshesResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       Unreachable resources. Populated when the request opts into
       `return_partial_success` and reading across collections e.g. when
       attempting to list all resources across all supported locations.
       
      repeated string unreachable = 3;
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.