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

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

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

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

        public QueuedResource.Guaranteed.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<QueuedResource.Guaranteed.Builder>
      • isInitialized

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

        public QueuedResource.Guaranteed.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<QueuedResource.Guaranteed.Builder>
        Throws:
        IOException
      • hasMinDuration

        public boolean hasMinDuration()
         Optional. Defines the minimum duration of the guarantee. If specified,
         the requested resources will only be provisioned if they can be
         allocated for at least the given duration.
         
        .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasMinDuration in interface QueuedResource.GuaranteedOrBuilder
        Returns:
        Whether the minDuration field is set.
      • getMinDuration

        public com.google.protobuf.Duration getMinDuration()
         Optional. Defines the minimum duration of the guarantee. If specified,
         the requested resources will only be provisioned if they can be
         allocated for at least the given duration.
         
        .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMinDuration in interface QueuedResource.GuaranteedOrBuilder
        Returns:
        The minDuration.
      • setMinDuration

        public QueuedResource.Guaranteed.Builder setMinDuration​(com.google.protobuf.Duration value)
         Optional. Defines the minimum duration of the guarantee. If specified,
         the requested resources will only be provisioned if they can be
         allocated for at least the given duration.
         
        .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      • setMinDuration

        public QueuedResource.Guaranteed.Builder setMinDuration​(com.google.protobuf.Duration.Builder builderForValue)
         Optional. Defines the minimum duration of the guarantee. If specified,
         the requested resources will only be provisioned if they can be
         allocated for at least the given duration.
         
        .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      • mergeMinDuration

        public QueuedResource.Guaranteed.Builder mergeMinDuration​(com.google.protobuf.Duration value)
         Optional. Defines the minimum duration of the guarantee. If specified,
         the requested resources will only be provisioned if they can be
         allocated for at least the given duration.
         
        .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      • clearMinDuration

        public QueuedResource.Guaranteed.Builder clearMinDuration()
         Optional. Defines the minimum duration of the guarantee. If specified,
         the requested resources will only be provisioned if they can be
         allocated for at least the given duration.
         
        .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      • getMinDurationBuilder

        public com.google.protobuf.Duration.Builder getMinDurationBuilder()
         Optional. Defines the minimum duration of the guarantee. If specified,
         the requested resources will only be provisioned if they can be
         allocated for at least the given duration.
         
        .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
      • getMinDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder()
         Optional. Defines the minimum duration of the guarantee. If specified,
         the requested resources will only be provisioned if they can be
         allocated for at least the given duration.
         
        .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMinDurationOrBuilder in interface QueuedResource.GuaranteedOrBuilder
      • getReserved

        public boolean getReserved()
         Optional. Specifies the request should be scheduled on reserved capacity.
         
        bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReserved in interface QueuedResource.GuaranteedOrBuilder
        Returns:
        The reserved.
      • setReserved

        public QueuedResource.Guaranteed.Builder setReserved​(boolean value)
         Optional. Specifies the request should be scheduled on reserved capacity.
         
        bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The reserved to set.
        Returns:
        This builder for chaining.
      • clearReserved

        public QueuedResource.Guaranteed.Builder clearReserved()
         Optional. Specifies the request should be scheduled on reserved capacity.
         
        bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final QueuedResource.Guaranteed.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<QueuedResource.Guaranteed.Builder>
      • mergeUnknownFields

        public final QueuedResource.Guaranteed.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<QueuedResource.Guaranteed.Builder>