Class CreateReservationRequest.Builder

  • All Implemented Interfaces:
    CreateReservationRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CreateReservationRequest

    public static final class CreateReservationRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CreateReservationRequest.Builder>
    implements CreateReservationRequestOrBuilder
     The request for
     [ReservationService.CreateReservation][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation].
     
    Protobuf type google.cloud.bigquery.reservation.v1.CreateReservationRequest
    • 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. Project, location. E.g.,
         `projects/myproject/locations/US`
         
        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. Project, location. E.g.,
         `projects/myproject/locations/US`
         
        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. Project, location. E.g.,
         `projects/myproject/locations/US`
         
        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. Project, location. E.g.,
         `projects/myproject/locations/US`
         
        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. Project, location. E.g.,
         `projects/myproject/locations/US`
         
        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.
      • getReservationId

        public String getReservationId()
         The reservation ID. It must only contain lower case alphanumeric
         characters or dashes. It must start with a letter and must not end
         with a dash. Its maximum length is 64 characters.
         
        string reservation_id = 2;
        Specified by:
        getReservationId in interface CreateReservationRequestOrBuilder
        Returns:
        The reservationId.
      • getReservationIdBytes

        public com.google.protobuf.ByteString getReservationIdBytes()
         The reservation ID. It must only contain lower case alphanumeric
         characters or dashes. It must start with a letter and must not end
         with a dash. Its maximum length is 64 characters.
         
        string reservation_id = 2;
        Specified by:
        getReservationIdBytes in interface CreateReservationRequestOrBuilder
        Returns:
        The bytes for reservationId.
      • setReservationId

        public CreateReservationRequest.Builder setReservationId​(String value)
         The reservation ID. It must only contain lower case alphanumeric
         characters or dashes. It must start with a letter and must not end
         with a dash. Its maximum length is 64 characters.
         
        string reservation_id = 2;
        Parameters:
        value - The reservationId to set.
        Returns:
        This builder for chaining.
      • clearReservationId

        public CreateReservationRequest.Builder clearReservationId()
         The reservation ID. It must only contain lower case alphanumeric
         characters or dashes. It must start with a letter and must not end
         with a dash. Its maximum length is 64 characters.
         
        string reservation_id = 2;
        Returns:
        This builder for chaining.
      • setReservationIdBytes

        public CreateReservationRequest.Builder setReservationIdBytes​(com.google.protobuf.ByteString value)
         The reservation ID. It must only contain lower case alphanumeric
         characters or dashes. It must start with a letter and must not end
         with a dash. Its maximum length is 64 characters.
         
        string reservation_id = 2;
        Parameters:
        value - The bytes for reservationId to set.
        Returns:
        This builder for chaining.
      • hasReservation

        public boolean hasReservation()
         Definition of the new reservation to create.
         
        .google.cloud.bigquery.reservation.v1.Reservation reservation = 3;
        Specified by:
        hasReservation in interface CreateReservationRequestOrBuilder
        Returns:
        Whether the reservation field is set.
      • clearReservation

        public CreateReservationRequest.Builder clearReservation()
         Definition of the new reservation to create.
         
        .google.cloud.bigquery.reservation.v1.Reservation reservation = 3;
      • getReservationBuilder

        public Reservation.Builder getReservationBuilder()
         Definition of the new reservation to create.
         
        .google.cloud.bigquery.reservation.v1.Reservation reservation = 3;
      • 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>