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

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

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

        public CreateAutoscalingPolicyRequest 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<CreateAutoscalingPolicyRequest.Builder>
      • getParent

        public String getParent()
         Required. The "resource name" of the region or location, as described
         in https://cloud.google.com/apis/design/resource_names.
        
         * For `projects.regions.autoscalingPolicies.create`, the resource name
           of the region has the following format:
           `projects/{project_id}/regions/{region}`
        
         * For `projects.locations.autoscalingPolicies.create`, the resource name
           of the location has the following format:
           `projects/{project_id}/locations/{location}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateAutoscalingPolicyRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The "resource name" of the region or location, as described
         in https://cloud.google.com/apis/design/resource_names.
        
         * For `projects.regions.autoscalingPolicies.create`, the resource name
           of the region has the following format:
           `projects/{project_id}/regions/{region}`
        
         * For `projects.locations.autoscalingPolicies.create`, the resource name
           of the location has the following format:
           `projects/{project_id}/locations/{location}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateAutoscalingPolicyRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateAutoscalingPolicyRequest.Builder setParent​(String value)
         Required. The "resource name" of the region or location, as described
         in https://cloud.google.com/apis/design/resource_names.
        
         * For `projects.regions.autoscalingPolicies.create`, the resource name
           of the region has the following format:
           `projects/{project_id}/regions/{region}`
        
         * For `projects.locations.autoscalingPolicies.create`, the resource name
           of the location has the following format:
           `projects/{project_id}/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 CreateAutoscalingPolicyRequest.Builder clearParent()
         Required. The "resource name" of the region or location, as described
         in https://cloud.google.com/apis/design/resource_names.
        
         * For `projects.regions.autoscalingPolicies.create`, the resource name
           of the region has the following format:
           `projects/{project_id}/regions/{region}`
        
         * For `projects.locations.autoscalingPolicies.create`, the resource name
           of the location has the following format:
           `projects/{project_id}/locations/{location}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateAutoscalingPolicyRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The "resource name" of the region or location, as described
         in https://cloud.google.com/apis/design/resource_names.
        
         * For `projects.regions.autoscalingPolicies.create`, the resource name
           of the region has the following format:
           `projects/{project_id}/regions/{region}`
        
         * For `projects.locations.autoscalingPolicies.create`, the resource name
           of the location has the following format:
           `projects/{project_id}/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.
      • hasPolicy

        public boolean hasPolicy()
         Required. The autoscaling policy to create.
         
        .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasPolicy in interface CreateAutoscalingPolicyRequestOrBuilder
        Returns:
        Whether the policy field is set.
      • clearPolicy

        public CreateAutoscalingPolicyRequest.Builder clearPolicy()
         Required. The autoscaling policy to create.
         
        .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • getPolicyBuilder

        public AutoscalingPolicy.Builder getPolicyBuilder()
         Required. The autoscaling policy to create.
         
        .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];