com.google.api.services.dataflow.model.ReportedParallelism Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.dataflow.model;
/**
* Represents the level of parallelism in a WorkItem's input, reported by the worker.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Dataflow API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ReportedParallelism extends com.google.api.client.json.GenericJson {
/**
* Specifies whether the parallelism is infinite. If true, "value" is ignored. Infinite
* parallelism means the service will assume that the work item can always be split into more non-
* empty work items by dynamic splitting. This is a work-around for lack of support for infinity
* by the current JSON-based Java RPC stack.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean isInfinite;
/**
* Specifies the level of parallelism in case it is finite.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Double value;
/**
* Specifies whether the parallelism is infinite. If true, "value" is ignored. Infinite
* parallelism means the service will assume that the work item can always be split into more non-
* empty work items by dynamic splitting. This is a work-around for lack of support for infinity
* by the current JSON-based Java RPC stack.
* @return value or {@code null} for none
*/
public java.lang.Boolean getIsInfinite() {
return isInfinite;
}
/**
* Specifies whether the parallelism is infinite. If true, "value" is ignored. Infinite
* parallelism means the service will assume that the work item can always be split into more non-
* empty work items by dynamic splitting. This is a work-around for lack of support for infinity
* by the current JSON-based Java RPC stack.
* @param isInfinite isInfinite or {@code null} for none
*/
public ReportedParallelism setIsInfinite(java.lang.Boolean isInfinite) {
this.isInfinite = isInfinite;
return this;
}
/**
* Specifies the level of parallelism in case it is finite.
* @return value or {@code null} for none
*/
public java.lang.Double getValue() {
return value;
}
/**
* Specifies the level of parallelism in case it is finite.
* @param value value or {@code null} for none
*/
public ReportedParallelism setValue(java.lang.Double value) {
this.value = value;
return this;
}
@Override
public ReportedParallelism set(String fieldName, Object value) {
return (ReportedParallelism) super.set(fieldName, value);
}
@Override
public ReportedParallelism clone() {
return (ReportedParallelism) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy