All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.containeranalysis.v1.model.Digest Maven / Gradle / Ivy

The newest version!
/*
 * 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;

/**
 * Digest information.
 *
 * 

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 Digest extends com.google.api.client.json.GenericJson { /** * `SHA1`, `SHA512` etc. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String algo; /** * Value of the digest. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String digestBytes; /** * `SHA1`, `SHA512` etc. * @return value or {@code null} for none */ public java.lang.String getAlgo() { return algo; } /** * `SHA1`, `SHA512` etc. * @param algo algo or {@code null} for none */ public Digest setAlgo(java.lang.String algo) { this.algo = algo; return this; } /** * Value of the digest. * @see #decodeDigestBytes() * @return value or {@code null} for none */ public java.lang.String getDigestBytes() { return digestBytes; } /** * Value of the digest. * @see #getDigestBytes() * @return Base64 decoded value or {@code null} for none * * @since 1.14 */ public byte[] decodeDigestBytes() { return com.google.api.client.util.Base64.decodeBase64(digestBytes); } /** * Value of the digest. * @see #encodeDigestBytes() * @param digestBytes digestBytes or {@code null} for none */ public Digest setDigestBytes(java.lang.String digestBytes) { this.digestBytes = digestBytes; return this; } /** * Value of the digest. * @see #setDigestBytes() * *

* The value is encoded Base64 or {@code null} for none. *

* * @since 1.14 */ public Digest encodeDigestBytes(byte[] digestBytes) { this.digestBytes = com.google.api.client.util.Base64.encodeBase64URLSafeString(digestBytes); return this; } @Override public Digest set(String fieldName, Object value) { return (Digest) super.set(fieldName, value); } @Override public Digest clone() { return (Digest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy