Class ListOperationsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<ListOperationsResponse,ListOperationsResponse.Builder>
com.google.longrunning.ListOperationsResponse.Builder
All Implemented Interfaces:
ListOperationsResponseOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
ListOperationsResponse

public static final class ListOperationsResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ListOperationsResponse,ListOperationsResponse.Builder> implements ListOperationsResponseOrBuilder
 The response message for
 [Operations.ListOperations][google.longrunning.Operations.ListOperations].
 
Protobuf type google.longrunning.ListOperationsResponse
  • Method Details

    • getOperationsList

      public List<Operation> getOperationsList()
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
      Specified by:
      getOperationsList in interface ListOperationsResponseOrBuilder
    • getOperationsCount

      public int getOperationsCount()
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
      Specified by:
      getOperationsCount in interface ListOperationsResponseOrBuilder
    • getOperations

      public Operation getOperations(int index)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
      Specified by:
      getOperations in interface ListOperationsResponseOrBuilder
    • setOperations

      public ListOperationsResponse.Builder setOperations(int index, Operation value)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
    • setOperations

      public ListOperationsResponse.Builder setOperations(int index, Operation.Builder builderForValue)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
    • addOperations

      public ListOperationsResponse.Builder addOperations(Operation value)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
    • addOperations

      public ListOperationsResponse.Builder addOperations(int index, Operation value)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
    • addOperations

      public ListOperationsResponse.Builder addOperations(Operation.Builder builderForValue)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
    • addOperations

      public ListOperationsResponse.Builder addOperations(int index, Operation.Builder builderForValue)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
    • addAllOperations

      public ListOperationsResponse.Builder addAllOperations(Iterable<? extends Operation> values)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
    • clearOperations

      public ListOperationsResponse.Builder clearOperations()
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
    • removeOperations

      public ListOperationsResponse.Builder removeOperations(int index)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1 [json_name = "operations"];
    • getNextPageToken

      public String getNextPageToken()
       The standard List next-page token.
       
      string next_page_token = 2 [json_name = "nextPageToken"];
      Specified by:
      getNextPageToken in interface ListOperationsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       The standard List next-page token.
       
      string next_page_token = 2 [json_name = "nextPageToken"];
      Specified by:
      getNextPageTokenBytes in interface ListOperationsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListOperationsResponse.Builder setNextPageToken(String value)
       The standard List next-page token.
       
      string next_page_token = 2 [json_name = "nextPageToken"];
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListOperationsResponse.Builder clearNextPageToken()
       The standard List next-page token.
       
      string next_page_token = 2 [json_name = "nextPageToken"];
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListOperationsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       The standard List next-page token.
       
      string next_page_token = 2 [json_name = "nextPageToken"];
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getUnreachableList

      public List<String> getUnreachableList()
       Unordered list. Unreachable resources. Populated when the request sets
       `ListOperationsRequest.return_partial_success` and reads across
       collections e.g. when attempting to list all resources across all supported
       locations.
       
      repeated string unreachable = 3 [json_name = "unreachable", (.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getUnreachableList in interface ListOperationsResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Unordered list. Unreachable resources. Populated when the request sets
       `ListOperationsRequest.return_partial_success` and reads across
       collections e.g. when attempting to list all resources across all supported
       locations.
       
      repeated string unreachable = 3 [json_name = "unreachable", (.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getUnreachableCount in interface ListOperationsResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       Unordered list. Unreachable resources. Populated when the request sets
       `ListOperationsRequest.return_partial_success` and reads across
       collections e.g. when attempting to list all resources across all supported
       locations.
       
      repeated string unreachable = 3 [json_name = "unreachable", (.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getUnreachable in interface ListOperationsResponseOrBuilder
      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)
       Unordered list. Unreachable resources. Populated when the request sets
       `ListOperationsRequest.return_partial_success` and reads across
       collections e.g. when attempting to list all resources across all supported
       locations.
       
      repeated string unreachable = 3 [json_name = "unreachable", (.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getUnreachableBytes in interface ListOperationsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListOperationsResponse.Builder setUnreachable(int index, String value)
       Unordered list. Unreachable resources. Populated when the request sets
       `ListOperationsRequest.return_partial_success` and reads across
       collections e.g. when attempting to list all resources across all supported
       locations.
       
      repeated string unreachable = 3 [json_name = "unreachable", (.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      index - The index to set the value at.
      value - The unreachable to set.
      Returns:
      This builder for chaining.
    • addUnreachable

      public ListOperationsResponse.Builder addUnreachable(String value)
       Unordered list. Unreachable resources. Populated when the request sets
       `ListOperationsRequest.return_partial_success` and reads across
       collections e.g. when attempting to list all resources across all supported
       locations.
       
      repeated string unreachable = 3 [json_name = "unreachable", (.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public ListOperationsResponse.Builder addAllUnreachable(Iterable<String> values)
       Unordered list. Unreachable resources. Populated when the request sets
       `ListOperationsRequest.return_partial_success` and reads across
       collections e.g. when attempting to list all resources across all supported
       locations.
       
      repeated string unreachable = 3 [json_name = "unreachable", (.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public ListOperationsResponse.Builder clearUnreachable()
       Unordered list. Unreachable resources. Populated when the request sets
       `ListOperationsRequest.return_partial_success` and reads across
       collections e.g. when attempting to list all resources across all supported
       locations.
       
      repeated string unreachable = 3 [json_name = "unreachable", (.google.api.field_behavior) = UNORDERED_LIST];
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListOperationsResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       Unordered list. Unreachable resources. Populated when the request sets
       `ListOperationsRequest.return_partial_success` and reads across
       collections e.g. when attempting to list all resources across all supported
       locations.
       
      repeated string unreachable = 3 [json_name = "unreachable", (.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.