Class CreateReservationRequest.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<CreateReservationRequest.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<CreateReservationRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateReservationRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateReservationRequest.Builder>
      • addRepeatedField

        public CreateReservationRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateReservationRequest.Builder>
      • isInitialized

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

        public CreateReservationRequest.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<CreateReservationRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The parent location in which to create the reservation.
         Structured like `projects/{project_number}/locations/{location}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateReservationRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent location in which to create the reservation.
         Structured like `projects/{project_number}/locations/{location}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateReservationRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateReservationRequest.Builder setParent​(String value)
         Required. The parent location in which to create the reservation.
         Structured like `projects/{project_number}/locations/{location}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateReservationRequest.Builder clearParent()
         Required. The parent location in which to create the reservation.
         Structured like `projects/{project_number}/locations/{location}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateReservationRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent location in which to create the reservation.
         Structured like `projects/{project_number}/locations/{location}`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasReservation

        public boolean hasReservation()
         Required. Configuration of the reservation to create. Its `name` field is
         ignored.
         
        .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasReservation in interface CreateReservationRequestOrBuilder
        Returns:
        Whether the reservation field is set.
      • getReservation

        public Reservation getReservation()
         Required. Configuration of the reservation to create. Its `name` field is
         ignored.
         
        .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getReservation in interface CreateReservationRequestOrBuilder
        Returns:
        The reservation.
      • setReservation

        public CreateReservationRequest.Builder setReservation​(Reservation value)
         Required. Configuration of the reservation to create. Its `name` field is
         ignored.
         
        .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
      • setReservation

        public CreateReservationRequest.Builder setReservation​(Reservation.Builder builderForValue)
         Required. Configuration of the reservation to create. Its `name` field is
         ignored.
         
        .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeReservation

        public CreateReservationRequest.Builder mergeReservation​(Reservation value)
         Required. Configuration of the reservation to create. Its `name` field is
         ignored.
         
        .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearReservation

        public CreateReservationRequest.Builder clearReservation()
         Required. Configuration of the reservation to create. Its `name` field is
         ignored.
         
        .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
      • getReservationBuilder

        public Reservation.Builder getReservationBuilder()
         Required. Configuration of the reservation to create. Its `name` field is
         ignored.
         
        .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
      • getReservationId

        public String getReservationId()
         Required. The ID to use for the reservation, which will become the final
         component of the reservation's name.
        
         This value is structured like: `my-reservation-name`.
         
        string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getReservationId in interface CreateReservationRequestOrBuilder
        Returns:
        The reservationId.
      • getReservationIdBytes

        public com.google.protobuf.ByteString getReservationIdBytes()
         Required. The ID to use for the reservation, which will become the final
         component of the reservation's name.
        
         This value is structured like: `my-reservation-name`.
         
        string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getReservationIdBytes in interface CreateReservationRequestOrBuilder
        Returns:
        The bytes for reservationId.
      • setReservationId

        public CreateReservationRequest.Builder setReservationId​(String value)
         Required. The ID to use for the reservation, which will become the final
         component of the reservation's name.
        
         This value is structured like: `my-reservation-name`.
         
        string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The reservationId to set.
        Returns:
        This builder for chaining.
      • clearReservationId

        public CreateReservationRequest.Builder clearReservationId()
         Required. The ID to use for the reservation, which will become the final
         component of the reservation's name.
        
         This value is structured like: `my-reservation-name`.
         
        string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setReservationIdBytes

        public CreateReservationRequest.Builder setReservationIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID to use for the reservation, which will become the final
         component of the reservation's name.
        
         This value is structured like: `my-reservation-name`.
         
        string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for reservationId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateReservationRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateReservationRequest.Builder>
      • mergeUnknownFields

        public final CreateReservationRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateReservationRequest.Builder>