Class NodeGroupOperationMetadata.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroupOperationMetadata.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroupOperationMetadata.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroupOperationMetadata.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<NodeGroupOperationMetadata.Builder>
      • getDefaultInstanceForType

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

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

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

        public NodeGroupOperationMetadata.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<NodeGroupOperationMetadata.Builder>
        Throws:
        IOException
      • getNodeGroupIdBytes

        public com.google.protobuf.ByteString getNodeGroupIdBytes()
         Output only. Node group ID for the operation.
         
        string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNodeGroupIdBytes in interface NodeGroupOperationMetadataOrBuilder
        Returns:
        The bytes for nodeGroupId.
      • setNodeGroupId

        public NodeGroupOperationMetadata.Builder setNodeGroupId​(String value)
         Output only. Node group ID for the operation.
         
        string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The nodeGroupId to set.
        Returns:
        This builder for chaining.
      • clearNodeGroupId

        public NodeGroupOperationMetadata.Builder clearNodeGroupId()
         Output only. Node group ID for the operation.
         
        string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNodeGroupIdBytes

        public NodeGroupOperationMetadata.Builder setNodeGroupIdBytes​(com.google.protobuf.ByteString value)
         Output only. Node group ID for the operation.
         
        string node_group_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for nodeGroupId to set.
        Returns:
        This builder for chaining.
      • getClusterUuid

        public String getClusterUuid()
         Output only. Cluster UUID associated with the node group operation.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterUuid in interface NodeGroupOperationMetadataOrBuilder
        Returns:
        The clusterUuid.
      • getClusterUuidBytes

        public com.google.protobuf.ByteString getClusterUuidBytes()
         Output only. Cluster UUID associated with the node group operation.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterUuidBytes in interface NodeGroupOperationMetadataOrBuilder
        Returns:
        The bytes for clusterUuid.
      • setClusterUuid

        public NodeGroupOperationMetadata.Builder setClusterUuid​(String value)
         Output only. Cluster UUID associated with the node group operation.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The clusterUuid to set.
        Returns:
        This builder for chaining.
      • clearClusterUuid

        public NodeGroupOperationMetadata.Builder clearClusterUuid()
         Output only. Cluster UUID associated with the node group operation.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setClusterUuidBytes

        public NodeGroupOperationMetadata.Builder setClusterUuidBytes​(com.google.protobuf.ByteString value)
         Output only. Cluster UUID associated with the node group operation.
         
        string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for clusterUuid to set.
        Returns:
        This builder for chaining.
      • hasStatus

        public boolean hasStatus()
         Output only. Current operation status.
         
        .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStatus in interface NodeGroupOperationMetadataOrBuilder
        Returns:
        Whether the status field is set.
      • clearStatus

        public NodeGroupOperationMetadata.Builder clearStatus()
         Output only. Current operation status.
         
        .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusBuilder

        public ClusterOperationStatus.Builder getStatusBuilder()
         Output only. Current operation status.
         
        .google.cloud.dataproc.v1.ClusterOperationStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusHistoryCount

        public int getStatusHistoryCount()
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusHistoryCount in interface NodeGroupOperationMetadataOrBuilder
      • setStatusHistory

        public NodeGroupOperationMetadata.Builder setStatusHistory​(int index,
                                                                   ClusterOperationStatus value)
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStatusHistory

        public NodeGroupOperationMetadata.Builder addStatusHistory​(ClusterOperationStatus value)
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStatusHistory

        public NodeGroupOperationMetadata.Builder addStatusHistory​(int index,
                                                                   ClusterOperationStatus value)
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStatusHistory

        public NodeGroupOperationMetadata.Builder clearStatusHistory()
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeStatusHistory

        public NodeGroupOperationMetadata.Builder removeStatusHistory​(int index)
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusHistoryBuilder

        public ClusterOperationStatus.Builder getStatusHistoryBuilder​(int index)
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStatusHistoryBuilder

        public ClusterOperationStatus.Builder addStatusHistoryBuilder()
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStatusHistoryBuilder

        public ClusterOperationStatus.Builder addStatusHistoryBuilder​(int index)
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusHistoryBuilderList

        public List<ClusterOperationStatus.Builder> getStatusHistoryBuilderList()
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getOperationTypeValue

        public int getOperationTypeValue()
         The operation type.
         
        .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5;
        Specified by:
        getOperationTypeValue in interface NodeGroupOperationMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for operationType.
      • setOperationTypeValue

        public NodeGroupOperationMetadata.Builder setOperationTypeValue​(int value)
         The operation type.
         
        .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5;
        Parameters:
        value - The enum numeric value on the wire for operationType to set.
        Returns:
        This builder for chaining.
      • clearOperationType

        public NodeGroupOperationMetadata.Builder clearOperationType()
         The operation type.
         
        .google.cloud.dataproc.v1.NodeGroupOperationMetadata.NodeGroupOperationType operation_type = 5;
        Returns:
        This builder for chaining.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Output only. Short description of operation.
         
        string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDescriptionBytes in interface NodeGroupOperationMetadataOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public NodeGroupOperationMetadata.Builder setDescription​(String value)
         Output only. Short description of operation.
         
        string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public NodeGroupOperationMetadata.Builder clearDescription()
         Output only. Short description of operation.
         
        string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public NodeGroupOperationMetadata.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Output only. Short description of operation.
         
        string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • removeLabels

        public NodeGroupOperationMetadata.Builder removeLabels​(String key)
         Output only. Labels associated with the operation.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • getWarningsList

        public com.google.protobuf.ProtocolStringList getWarningsList()
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getWarningsList in interface NodeGroupOperationMetadataOrBuilder
        Returns:
        A list containing the warnings.
      • getWarningsCount

        public int getWarningsCount()
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getWarningsCount in interface NodeGroupOperationMetadataOrBuilder
        Returns:
        The count of warnings.
      • getWarnings

        public String getWarnings​(int index)
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getWarnings in interface NodeGroupOperationMetadataOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The warnings at the given index.
      • getWarningsBytes

        public com.google.protobuf.ByteString getWarningsBytes​(int index)
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getWarningsBytes in interface NodeGroupOperationMetadataOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the warnings at the given index.
      • setWarnings

        public NodeGroupOperationMetadata.Builder setWarnings​(int index,
                                                              String value)
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The warnings to set.
        Returns:
        This builder for chaining.
      • addWarnings

        public NodeGroupOperationMetadata.Builder addWarnings​(String value)
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The warnings to add.
        Returns:
        This builder for chaining.
      • addAllWarnings

        public NodeGroupOperationMetadata.Builder addAllWarnings​(Iterable<String> values)
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The warnings to add.
        Returns:
        This builder for chaining.
      • clearWarnings

        public NodeGroupOperationMetadata.Builder clearWarnings()
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • addWarningsBytes

        public NodeGroupOperationMetadata.Builder addWarningsBytes​(com.google.protobuf.ByteString value)
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes of the warnings to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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