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

com.google.api.services.cloudbuild.v2.model.Repository Maven / Gradle / Ivy

There is a newer version: v2-rev20250114-2.0.0
Show 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.cloudbuild.v2.model;

/**
 * A repository associated to a parent connection.
 *
 * 

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 Build 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 Repository extends com.google.api.client.json.GenericJson { /** * Optional. Allows clients to store small amounts of arbitrary data. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map annotations; /** * Output only. Server assigned timestamp for when the connection was created. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * This checksum is computed by the server based on the value of other fields, and may be sent on * update and delete requests to ensure the client has an up-to-date value before proceeding. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String etag; /** * Immutable. Resource name of the repository, in the format * `projects/locations/connections/repositories`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Required. Git Clone HTTPS URI. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String remoteUri; /** * Output only. Server assigned timestamp for when the connection was updated. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * Output only. External ID of the webhook created for the repository. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String webhookId; /** * Optional. Allows clients to store small amounts of arbitrary data. * @return value or {@code null} for none */ public java.util.Map getAnnotations() { return annotations; } /** * Optional. Allows clients to store small amounts of arbitrary data. * @param annotations annotations or {@code null} for none */ public Repository setAnnotations(java.util.Map annotations) { this.annotations = annotations; return this; } /** * Output only. Server assigned timestamp for when the connection was created. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * Output only. Server assigned timestamp for when the connection was created. * @param createTime createTime or {@code null} for none */ public Repository setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * This checksum is computed by the server based on the value of other fields, and may be sent on * update and delete requests to ensure the client has an up-to-date value before proceeding. * @return value or {@code null} for none */ public java.lang.String getEtag() { return etag; } /** * This checksum is computed by the server based on the value of other fields, and may be sent on * update and delete requests to ensure the client has an up-to-date value before proceeding. * @param etag etag or {@code null} for none */ public Repository setEtag(java.lang.String etag) { this.etag = etag; return this; } /** * Immutable. Resource name of the repository, in the format * `projects/locations/connections/repositories`. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Immutable. Resource name of the repository, in the format * `projects/locations/connections/repositories`. * @param name name or {@code null} for none */ public Repository setName(java.lang.String name) { this.name = name; return this; } /** * Required. Git Clone HTTPS URI. * @return value or {@code null} for none */ public java.lang.String getRemoteUri() { return remoteUri; } /** * Required. Git Clone HTTPS URI. * @param remoteUri remoteUri or {@code null} for none */ public Repository setRemoteUri(java.lang.String remoteUri) { this.remoteUri = remoteUri; return this; } /** * Output only. Server assigned timestamp for when the connection was updated. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * Output only. Server assigned timestamp for when the connection was updated. * @param updateTime updateTime or {@code null} for none */ public Repository setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } /** * Output only. External ID of the webhook created for the repository. * @return value or {@code null} for none */ public java.lang.String getWebhookId() { return webhookId; } /** * Output only. External ID of the webhook created for the repository. * @param webhookId webhookId or {@code null} for none */ public Repository setWebhookId(java.lang.String webhookId) { this.webhookId = webhookId; return this; } @Override public Repository set(String fieldName, Object value) { return (Repository) super.set(fieldName, value); } @Override public Repository clone() { return (Repository) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy