com.google.api.services.containeranalysis.v1.model.Metadata 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.containeranalysis.v1.model;
/**
* Other properties of the build.
*
* 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 Container Analysis 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 Metadata extends com.google.api.client.json.GenericJson {
/**
* The timestamp of when the build completed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String buildFinishedOn;
/**
* Identifies the particular build invocation, which can be useful for finding associated logs or
* other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String buildInvocationId;
/**
* The timestamp of when the build started.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String buildStartedOn;
/**
* Indicates that the builder claims certain fields in this message to be complete.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Completeness completeness;
/**
* If true, the builder claims that running the recipe on materials will produce bit-for-bit
* identical output.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean reproducible;
/**
* The timestamp of when the build completed.
* @return value or {@code null} for none
*/
public String getBuildFinishedOn() {
return buildFinishedOn;
}
/**
* The timestamp of when the build completed.
* @param buildFinishedOn buildFinishedOn or {@code null} for none
*/
public Metadata setBuildFinishedOn(String buildFinishedOn) {
this.buildFinishedOn = buildFinishedOn;
return this;
}
/**
* Identifies the particular build invocation, which can be useful for finding associated logs or
* other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
* @return value or {@code null} for none
*/
public java.lang.String getBuildInvocationId() {
return buildInvocationId;
}
/**
* Identifies the particular build invocation, which can be useful for finding associated logs or
* other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
* @param buildInvocationId buildInvocationId or {@code null} for none
*/
public Metadata setBuildInvocationId(java.lang.String buildInvocationId) {
this.buildInvocationId = buildInvocationId;
return this;
}
/**
* The timestamp of when the build started.
* @return value or {@code null} for none
*/
public String getBuildStartedOn() {
return buildStartedOn;
}
/**
* The timestamp of when the build started.
* @param buildStartedOn buildStartedOn or {@code null} for none
*/
public Metadata setBuildStartedOn(String buildStartedOn) {
this.buildStartedOn = buildStartedOn;
return this;
}
/**
* Indicates that the builder claims certain fields in this message to be complete.
* @return value or {@code null} for none
*/
public Completeness getCompleteness() {
return completeness;
}
/**
* Indicates that the builder claims certain fields in this message to be complete.
* @param completeness completeness or {@code null} for none
*/
public Metadata setCompleteness(Completeness completeness) {
this.completeness = completeness;
return this;
}
/**
* If true, the builder claims that running the recipe on materials will produce bit-for-bit
* identical output.
* @return value or {@code null} for none
*/
public java.lang.Boolean getReproducible() {
return reproducible;
}
/**
* If true, the builder claims that running the recipe on materials will produce bit-for-bit
* identical output.
* @param reproducible reproducible or {@code null} for none
*/
public Metadata setReproducible(java.lang.Boolean reproducible) {
this.reproducible = reproducible;
return this;
}
@Override
public Metadata set(String fieldName, Object value) {
return (Metadata) super.set(fieldName, value);
}
@Override
public Metadata clone() {
return (Metadata) super.clone();
}
}