Class CreateNodeGroupRequest.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<CreateNodeGroupRequest.Builder>
      • clear

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

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

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

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

        public CreateNodeGroupRequest.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<CreateNodeGroupRequest.Builder>
      • clearField

        public CreateNodeGroupRequest.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<CreateNodeGroupRequest.Builder>
      • clearOneof

        public CreateNodeGroupRequest.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<CreateNodeGroupRequest.Builder>
      • setRepeatedField

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

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

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

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

        public String getParent()
         Required. The parent resource where this node group will be created.
         Format: `projects/{project}/regions/{region}/clusters/{cluster}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateNodeGroupRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent resource where this node group will be created.
         Format: `projects/{project}/regions/{region}/clusters/{cluster}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateNodeGroupRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateNodeGroupRequest.Builder setParent​(String value)
         Required. The parent resource where this node group will be created.
         Format: `projects/{project}/regions/{region}/clusters/{cluster}`
         
        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 CreateNodeGroupRequest.Builder clearParent()
         Required. The parent resource where this node group will be created.
         Format: `projects/{project}/regions/{region}/clusters/{cluster}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateNodeGroupRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent resource where this node group will be created.
         Format: `projects/{project}/regions/{region}/clusters/{cluster}`
         
        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.
      • hasNodeGroup

        public boolean hasNodeGroup()
         Required. The node group to create.
         
        .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasNodeGroup in interface CreateNodeGroupRequestOrBuilder
        Returns:
        Whether the nodeGroup field is set.
      • getNodeGroup

        public NodeGroup getNodeGroup()
         Required. The node group to create.
         
        .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNodeGroup in interface CreateNodeGroupRequestOrBuilder
        Returns:
        The nodeGroup.
      • setNodeGroup

        public CreateNodeGroupRequest.Builder setNodeGroup​(NodeGroup value)
         Required. The node group to create.
         
        .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED];
      • setNodeGroup

        public CreateNodeGroupRequest.Builder setNodeGroup​(NodeGroup.Builder builderForValue)
         Required. The node group to create.
         
        .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeNodeGroup

        public CreateNodeGroupRequest.Builder mergeNodeGroup​(NodeGroup value)
         Required. The node group to create.
         
        .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearNodeGroup

        public CreateNodeGroupRequest.Builder clearNodeGroup()
         Required. The node group to create.
         
        .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED];
      • getNodeGroupBuilder

        public NodeGroup.Builder getNodeGroupBuilder()
         Required. The node group to create.
         
        .google.cloud.dataproc.v1.NodeGroup node_group = 2 [(.google.api.field_behavior) = REQUIRED];
      • getNodeGroupId

        public String getNodeGroupId()
         Optional. An optional node group ID. Generated if not specified.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). Cannot begin or end with underscore
         or hyphen. Must consist of from 3 to 33 characters.
         
        string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getNodeGroupId in interface CreateNodeGroupRequestOrBuilder
        Returns:
        The nodeGroupId.
      • getNodeGroupIdBytes

        public com.google.protobuf.ByteString getNodeGroupIdBytes()
         Optional. An optional node group ID. Generated if not specified.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). Cannot begin or end with underscore
         or hyphen. Must consist of from 3 to 33 characters.
         
        string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getNodeGroupIdBytes in interface CreateNodeGroupRequestOrBuilder
        Returns:
        The bytes for nodeGroupId.
      • setNodeGroupId

        public CreateNodeGroupRequest.Builder setNodeGroupId​(String value)
         Optional. An optional node group ID. Generated if not specified.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). Cannot begin or end with underscore
         or hyphen. Must consist of from 3 to 33 characters.
         
        string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The nodeGroupId to set.
        Returns:
        This builder for chaining.
      • clearNodeGroupId

        public CreateNodeGroupRequest.Builder clearNodeGroupId()
         Optional. An optional node group ID. Generated if not specified.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). Cannot begin or end with underscore
         or hyphen. Must consist of from 3 to 33 characters.
         
        string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setNodeGroupIdBytes

        public CreateNodeGroupRequest.Builder setNodeGroupIdBytes​(com.google.protobuf.ByteString value)
         Optional. An optional node group ID. Generated if not specified.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). Cannot begin or end with underscore
         or hyphen. Must consist of from 3 to 33 characters.
         
        string node_group_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for nodeGroupId to set.
        Returns:
        This builder for chaining.
      • getRequestId

        public String getRequestId()
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: Set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestId in interface CreateNodeGroupRequestOrBuilder
        Returns:
        The requestId.
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: Set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestIdBytes in interface CreateNodeGroupRequestOrBuilder
        Returns:
        The bytes for requestId.
      • setRequestId

        public CreateNodeGroupRequest.Builder setRequestId​(String value)
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: Set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public CreateNodeGroupRequest.Builder clearRequestId()
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: Set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public CreateNodeGroupRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         Optional. A unique ID used to identify the request. If the server receives
         two
         [CreateNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: Set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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