Class MergeCapacityCommitmentsRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.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.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
      • getParent

        public String getParent()
         Parent resource that identifies admin project and location e.g.,
          `projects/myproject/locations/us`
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface MergeCapacityCommitmentsRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Parent resource that identifies admin project and location e.g.,
          `projects/myproject/locations/us`
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface MergeCapacityCommitmentsRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public MergeCapacityCommitmentsRequest.Builder setParent​(String value)
         Parent resource that identifies admin project and location e.g.,
          `projects/myproject/locations/us`
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public MergeCapacityCommitmentsRequest.Builder clearParent()
         Parent resource that identifies admin project and location e.g.,
          `projects/myproject/locations/us`
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public MergeCapacityCommitmentsRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Parent resource that identifies admin project and location e.g.,
          `projects/myproject/locations/us`
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getCapacityCommitmentIdsList

        public com.google.protobuf.ProtocolStringList getCapacityCommitmentIdsList()
         Ids of capacity commitments to merge.
         These capacity commitments must exist under admin project and location
         specified in the parent.
         ID is the last portion of capacity commitment name e.g., 'abc' for
         projects/myproject/locations/US/capacityCommitments/abc
         
        repeated string capacity_commitment_ids = 2;
        Specified by:
        getCapacityCommitmentIdsList in interface MergeCapacityCommitmentsRequestOrBuilder
        Returns:
        A list containing the capacityCommitmentIds.
      • getCapacityCommitmentIdsCount

        public int getCapacityCommitmentIdsCount()
         Ids of capacity commitments to merge.
         These capacity commitments must exist under admin project and location
         specified in the parent.
         ID is the last portion of capacity commitment name e.g., 'abc' for
         projects/myproject/locations/US/capacityCommitments/abc
         
        repeated string capacity_commitment_ids = 2;
        Specified by:
        getCapacityCommitmentIdsCount in interface MergeCapacityCommitmentsRequestOrBuilder
        Returns:
        The count of capacityCommitmentIds.
      • getCapacityCommitmentIds

        public String getCapacityCommitmentIds​(int index)
         Ids of capacity commitments to merge.
         These capacity commitments must exist under admin project and location
         specified in the parent.
         ID is the last portion of capacity commitment name e.g., 'abc' for
         projects/myproject/locations/US/capacityCommitments/abc
         
        repeated string capacity_commitment_ids = 2;
        Specified by:
        getCapacityCommitmentIds in interface MergeCapacityCommitmentsRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The capacityCommitmentIds at the given index.
      • getCapacityCommitmentIdsBytes

        public com.google.protobuf.ByteString getCapacityCommitmentIdsBytes​(int index)
         Ids of capacity commitments to merge.
         These capacity commitments must exist under admin project and location
         specified in the parent.
         ID is the last portion of capacity commitment name e.g., 'abc' for
         projects/myproject/locations/US/capacityCommitments/abc
         
        repeated string capacity_commitment_ids = 2;
        Specified by:
        getCapacityCommitmentIdsBytes in interface MergeCapacityCommitmentsRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the capacityCommitmentIds at the given index.
      • setCapacityCommitmentIds

        public MergeCapacityCommitmentsRequest.Builder setCapacityCommitmentIds​(int index,
                                                                                String value)
         Ids of capacity commitments to merge.
         These capacity commitments must exist under admin project and location
         specified in the parent.
         ID is the last portion of capacity commitment name e.g., 'abc' for
         projects/myproject/locations/US/capacityCommitments/abc
         
        repeated string capacity_commitment_ids = 2;
        Parameters:
        index - The index to set the value at.
        value - The capacityCommitmentIds to set.
        Returns:
        This builder for chaining.
      • addCapacityCommitmentIds

        public MergeCapacityCommitmentsRequest.Builder addCapacityCommitmentIds​(String value)
         Ids of capacity commitments to merge.
         These capacity commitments must exist under admin project and location
         specified in the parent.
         ID is the last portion of capacity commitment name e.g., 'abc' for
         projects/myproject/locations/US/capacityCommitments/abc
         
        repeated string capacity_commitment_ids = 2;
        Parameters:
        value - The capacityCommitmentIds to add.
        Returns:
        This builder for chaining.
      • addAllCapacityCommitmentIds

        public MergeCapacityCommitmentsRequest.Builder addAllCapacityCommitmentIds​(Iterable<String> values)
         Ids of capacity commitments to merge.
         These capacity commitments must exist under admin project and location
         specified in the parent.
         ID is the last portion of capacity commitment name e.g., 'abc' for
         projects/myproject/locations/US/capacityCommitments/abc
         
        repeated string capacity_commitment_ids = 2;
        Parameters:
        values - The capacityCommitmentIds to add.
        Returns:
        This builder for chaining.
      • clearCapacityCommitmentIds

        public MergeCapacityCommitmentsRequest.Builder clearCapacityCommitmentIds()
         Ids of capacity commitments to merge.
         These capacity commitments must exist under admin project and location
         specified in the parent.
         ID is the last portion of capacity commitment name e.g., 'abc' for
         projects/myproject/locations/US/capacityCommitments/abc
         
        repeated string capacity_commitment_ids = 2;
        Returns:
        This builder for chaining.
      • addCapacityCommitmentIdsBytes

        public MergeCapacityCommitmentsRequest.Builder addCapacityCommitmentIdsBytes​(com.google.protobuf.ByteString value)
         Ids of capacity commitments to merge.
         These capacity commitments must exist under admin project and location
         specified in the parent.
         ID is the last portion of capacity commitment name e.g., 'abc' for
         projects/myproject/locations/US/capacityCommitments/abc
         
        repeated string capacity_commitment_ids = 2;
        Parameters:
        value - The bytes of the capacityCommitmentIds to add.
        Returns:
        This builder for chaining.