Class ClusterOperationMetadata.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<ClusterOperationMetadata.Builder>
      • internalGetMutableMapField

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

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

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

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

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

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

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

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

        public ClusterOperationMetadata.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<ClusterOperationMetadata.Builder>
        Throws:
        IOException
      • getClusterName

        public String getClusterName()
         Output only. Name of the cluster for the operation.
         
        string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterName in interface ClusterOperationMetadataOrBuilder
        Returns:
        The clusterName.
      • getClusterNameBytes

        public com.google.protobuf.ByteString getClusterNameBytes()
         Output only. Name of the cluster for the operation.
         
        string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterNameBytes in interface ClusterOperationMetadataOrBuilder
        Returns:
        The bytes for clusterName.
      • setClusterName

        public ClusterOperationMetadata.Builder setClusterName​(String value)
         Output only. Name of the cluster for the operation.
         
        string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The clusterName to set.
        Returns:
        This builder for chaining.
      • clearClusterName

        public ClusterOperationMetadata.Builder clearClusterName()
         Output only. Name of the cluster for the operation.
         
        string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setClusterNameBytes

        public ClusterOperationMetadata.Builder setClusterNameBytes​(com.google.protobuf.ByteString value)
         Output only. Name of the cluster for the operation.
         
        string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for clusterName to set.
        Returns:
        This builder for chaining.
      • getClusterUuid

        public String getClusterUuid()
         Output only. Cluster UUID for the operation.
         
        string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterUuid in interface ClusterOperationMetadataOrBuilder
        Returns:
        The clusterUuid.
      • getClusterUuidBytes

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

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

        public ClusterOperationMetadata.Builder clearClusterUuid()
         Output only. Cluster UUID for the operation.
         
        string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setClusterUuidBytes

        public ClusterOperationMetadata.Builder setClusterUuidBytes​(com.google.protobuf.ByteString value)
         Output only. Cluster UUID for the operation.
         
        string cluster_uuid = 8 [(.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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStatus in interface ClusterOperationMetadataOrBuilder
        Returns:
        Whether the status field is set.
      • clearStatus

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

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

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

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

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

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

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

        public ClusterOperationMetadata.Builder removeStatusHistory​(int index)
         Output only. The previous operation status.
         
        repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getOperationTypeBytes

        public com.google.protobuf.ByteString getOperationTypeBytes()
         Output only. The operation type.
         
        string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOperationTypeBytes in interface ClusterOperationMetadataOrBuilder
        Returns:
        The bytes for operationType.
      • setOperationType

        public ClusterOperationMetadata.Builder setOperationType​(String value)
         Output only. The operation type.
         
        string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The operationType to set.
        Returns:
        This builder for chaining.
      • clearOperationType

        public ClusterOperationMetadata.Builder clearOperationType()
         Output only. The operation type.
         
        string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setOperationTypeBytes

        public ClusterOperationMetadata.Builder setOperationTypeBytes​(com.google.protobuf.ByteString value)
         Output only. The operation type.
         
        string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for operationType to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         Output only. Short description of operation.
         
        string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDescription in interface ClusterOperationMetadataOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

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

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

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

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

        public boolean containsLabels​(String key)
         Output only. Labels associated with the operation
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        containsLabels in interface ClusterOperationMetadataOrBuilder
      • removeLabels

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

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

        public ClusterOperationMetadata.Builder putLabels​(String key,
                                                          String value)
         Output only. Labels associated with the operation
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getWarningsList

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

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

        public String getWarnings​(int index)
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getWarnings in interface ClusterOperationMetadataOrBuilder
        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 = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getWarningsBytes in interface ClusterOperationMetadataOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the warnings at the given index.
      • setWarnings

        public ClusterOperationMetadata.Builder setWarnings​(int index,
                                                            String value)
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 14 [(.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 ClusterOperationMetadata.Builder addWarnings​(String value)
         Output only. Errors encountered during operation execution.
         
        repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The warnings to add.
        Returns:
        This builder for chaining.
      • addAllWarnings

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

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

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

        public com.google.protobuf.ProtocolStringList getChildOperationIdsList()
         Output only. Child operation ids
         
        repeated string child_operation_ids = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChildOperationIdsList in interface ClusterOperationMetadataOrBuilder
        Returns:
        A list containing the childOperationIds.
      • getChildOperationIdsCount

        public int getChildOperationIdsCount()
         Output only. Child operation ids
         
        repeated string child_operation_ids = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChildOperationIdsCount in interface ClusterOperationMetadataOrBuilder
        Returns:
        The count of childOperationIds.
      • getChildOperationIds

        public String getChildOperationIds​(int index)
         Output only. Child operation ids
         
        repeated string child_operation_ids = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChildOperationIds in interface ClusterOperationMetadataOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The childOperationIds at the given index.
      • getChildOperationIdsBytes

        public com.google.protobuf.ByteString getChildOperationIdsBytes​(int index)
         Output only. Child operation ids
         
        repeated string child_operation_ids = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChildOperationIdsBytes in interface ClusterOperationMetadataOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the childOperationIds at the given index.
      • setChildOperationIds

        public ClusterOperationMetadata.Builder setChildOperationIds​(int index,
                                                                     String value)
         Output only. Child operation ids
         
        repeated string child_operation_ids = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The childOperationIds to set.
        Returns:
        This builder for chaining.
      • addChildOperationIds

        public ClusterOperationMetadata.Builder addChildOperationIds​(String value)
         Output only. Child operation ids
         
        repeated string child_operation_ids = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The childOperationIds to add.
        Returns:
        This builder for chaining.
      • addAllChildOperationIds

        public ClusterOperationMetadata.Builder addAllChildOperationIds​(Iterable<String> values)
         Output only. Child operation ids
         
        repeated string child_operation_ids = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The childOperationIds to add.
        Returns:
        This builder for chaining.
      • clearChildOperationIds

        public ClusterOperationMetadata.Builder clearChildOperationIds()
         Output only. Child operation ids
         
        repeated string child_operation_ids = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • addChildOperationIdsBytes

        public ClusterOperationMetadata.Builder addChildOperationIdsBytes​(com.google.protobuf.ByteString value)
         Output only. Child operation ids
         
        repeated string child_operation_ids = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes of the childOperationIds to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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