Class AutoscalingConfig.Builder

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

    public static final class AutoscalingConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingConfig.Builder>
    implements AutoscalingConfigOrBuilder
     Autoscaling Policy config associated with the cluster.
     
    Protobuf type google.cloud.dataproc.v1.AutoscalingConfig
    • 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<AutoscalingConfig.Builder>
      • clear

        public AutoscalingConfig.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.GeneratedMessageV3.Builder<AutoscalingConfig.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<AutoscalingConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public AutoscalingConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingConfig.Builder>
      • setField

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

        public AutoscalingConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingConfig.Builder>
      • clearOneof

        public AutoscalingConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingConfig.Builder>
      • setRepeatedField

        public AutoscalingConfig.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<AutoscalingConfig.Builder>
      • addRepeatedField

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

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

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

        public AutoscalingConfig.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<AutoscalingConfig.Builder>
        Throws:
        IOException
      • getPolicyUri

        public String getPolicyUri()
         Optional. The autoscaling policy used by the cluster.
        
         Only resource names including projectid and location (region) are valid.
         Examples:
        
         * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
         * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
        
         Note that the policy must be in the same project and Dataproc region.
         
        string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPolicyUri in interface AutoscalingConfigOrBuilder
        Returns:
        The policyUri.
      • getPolicyUriBytes

        public com.google.protobuf.ByteString getPolicyUriBytes()
         Optional. The autoscaling policy used by the cluster.
        
         Only resource names including projectid and location (region) are valid.
         Examples:
        
         * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
         * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
        
         Note that the policy must be in the same project and Dataproc region.
         
        string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPolicyUriBytes in interface AutoscalingConfigOrBuilder
        Returns:
        The bytes for policyUri.
      • setPolicyUri

        public AutoscalingConfig.Builder setPolicyUri​(String value)
         Optional. The autoscaling policy used by the cluster.
        
         Only resource names including projectid and location (region) are valid.
         Examples:
        
         * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
         * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
        
         Note that the policy must be in the same project and Dataproc region.
         
        string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The policyUri to set.
        Returns:
        This builder for chaining.
      • clearPolicyUri

        public AutoscalingConfig.Builder clearPolicyUri()
         Optional. The autoscaling policy used by the cluster.
        
         Only resource names including projectid and location (region) are valid.
         Examples:
        
         * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
         * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
        
         Note that the policy must be in the same project and Dataproc region.
         
        string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setPolicyUriBytes

        public AutoscalingConfig.Builder setPolicyUriBytes​(com.google.protobuf.ByteString value)
         Optional. The autoscaling policy used by the cluster.
        
         Only resource names including projectid and location (region) are valid.
         Examples:
        
         * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
         * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
        
         Note that the policy must be in the same project and Dataproc region.
         
        string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for policyUri to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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