Class ListOperationsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListOperationsResponse.Builder>
com.google.longrunning.ListOperationsResponse.Builder
All Implemented Interfaces:
ListOperationsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListOperationsResponse

public static final class ListOperationsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListOperationsResponse.Builder> implements ListOperationsResponseOrBuilder
 The response message for
 [Operations.ListOperations][google.longrunning.Operations.ListOperations].
 
Protobuf type google.longrunning.ListOperationsResponse
  • 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<ListOperationsResponse.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<ListOperationsResponse.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<ListOperationsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListOperationsResponse.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<ListOperationsResponse.Builder>
      Throws:
      IOException
    • getOperationsList

      public List<Operation> getOperationsList()
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1;
      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;
      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;
      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;
    • 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;
    • 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;
    • 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;
    • 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;
    • 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;
    • 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;
    • clearOperations

      public ListOperationsResponse.Builder clearOperations()
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1;
    • 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;
    • getOperationsBuilder

      public Operation.Builder getOperationsBuilder(int index)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1;
    • getOperationsOrBuilder

      public OperationOrBuilder getOperationsOrBuilder(int index)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1;
      Specified by:
      getOperationsOrBuilder in interface ListOperationsResponseOrBuilder
    • getOperationsOrBuilderList

      public List<? extends OperationOrBuilder> getOperationsOrBuilderList()
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1;
      Specified by:
      getOperationsOrBuilderList in interface ListOperationsResponseOrBuilder
    • addOperationsBuilder

      public Operation.Builder addOperationsBuilder()
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1;
    • addOperationsBuilder

      public Operation.Builder addOperationsBuilder(int index)
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1;
    • getOperationsBuilderList

      public List<Operation.Builder> getOperationsBuilderList()
       A list of operations that matches the specified filter in the request.
       
      repeated .google.longrunning.Operation operations = 1;
    • getNextPageToken

      public String getNextPageToken()
       The standard List next-page token.
       
      string next_page_token = 2;
      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;
      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;
      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;
      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;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getUnreachableList

      public com.google.protobuf.ProtocolStringList 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 [(.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 [(.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 [(.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 [(.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 [(.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 [(.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 [(.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 [(.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 [(.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.