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

com.google.api.services.cloudfunctions.v2.model.OperationMetadataV1 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.cloudfunctions.v2.model;

/**
 * Metadata describing an Operation
 *
 * 

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 Cloud Functions 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 OperationMetadataV1 extends com.google.api.client.json.GenericJson { /** * The Cloud Build ID of the function created or updated by an API call. This field is only * populated for Create and Update operations. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String buildId; /** * The Cloud Build Name of the function deployment. This field is only populated for Create and * Update operations. `projects//locations//builds/`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String buildName; /** * The original request that started the operation. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map request; /** * An identifier for Firebase function sources. Disclaimer: This field is only supported for * Firebase function deployments. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceToken; /** * Target of the operation - for example * `projects/project-1/locations/region-1/functions/function-1` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String target; /** * Type of operation. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String type; /** * The last update timestamp of the operation. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * Version id of the function created or updated by an API call. This field is only populated for * Create and Update operations. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long versionId; /** * The Cloud Build ID of the function created or updated by an API call. This field is only * populated for Create and Update operations. * @return value or {@code null} for none */ public java.lang.String getBuildId() { return buildId; } /** * The Cloud Build ID of the function created or updated by an API call. This field is only * populated for Create and Update operations. * @param buildId buildId or {@code null} for none */ public OperationMetadataV1 setBuildId(java.lang.String buildId) { this.buildId = buildId; return this; } /** * The Cloud Build Name of the function deployment. This field is only populated for Create and * Update operations. `projects//locations//builds/`. * @return value or {@code null} for none */ public java.lang.String getBuildName() { return buildName; } /** * The Cloud Build Name of the function deployment. This field is only populated for Create and * Update operations. `projects//locations//builds/`. * @param buildName buildName or {@code null} for none */ public OperationMetadataV1 setBuildName(java.lang.String buildName) { this.buildName = buildName; return this; } /** * The original request that started the operation. * @return value or {@code null} for none */ public java.util.Map getRequest() { return request; } /** * The original request that started the operation. * @param request request or {@code null} for none */ public OperationMetadataV1 setRequest(java.util.Map request) { this.request = request; return this; } /** * An identifier for Firebase function sources. Disclaimer: This field is only supported for * Firebase function deployments. * @return value or {@code null} for none */ public java.lang.String getSourceToken() { return sourceToken; } /** * An identifier for Firebase function sources. Disclaimer: This field is only supported for * Firebase function deployments. * @param sourceToken sourceToken or {@code null} for none */ public OperationMetadataV1 setSourceToken(java.lang.String sourceToken) { this.sourceToken = sourceToken; return this; } /** * Target of the operation - for example * `projects/project-1/locations/region-1/functions/function-1` * @return value or {@code null} for none */ public java.lang.String getTarget() { return target; } /** * Target of the operation - for example * `projects/project-1/locations/region-1/functions/function-1` * @param target target or {@code null} for none */ public OperationMetadataV1 setTarget(java.lang.String target) { this.target = target; return this; } /** * Type of operation. * @return value or {@code null} for none */ public java.lang.String getType() { return type; } /** * Type of operation. * @param type type or {@code null} for none */ public OperationMetadataV1 setType(java.lang.String type) { this.type = type; return this; } /** * The last update timestamp of the operation. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * The last update timestamp of the operation. * @param updateTime updateTime or {@code null} for none */ public OperationMetadataV1 setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } /** * Version id of the function created or updated by an API call. This field is only populated for * Create and Update operations. * @return value or {@code null} for none */ public java.lang.Long getVersionId() { return versionId; } /** * Version id of the function created or updated by an API call. This field is only populated for * Create and Update operations. * @param versionId versionId or {@code null} for none */ public OperationMetadataV1 setVersionId(java.lang.Long versionId) { this.versionId = versionId; return this; } @Override public OperationMetadataV1 set(String fieldName, Object value) { return (OperationMetadataV1) super.set(fieldName, value); } @Override public OperationMetadataV1 clone() { return (OperationMetadataV1) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy