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

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

/**
 * Metadata describing the service and additional service specific information used to identify the
 * job or unit of work at hand.
 *
 * 

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 Service Control 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 ServiceMetadata extends com.google.api.client.json.GenericJson { /** * Additional metadata provided by service teams to describe service specific job information that * was triggered by the original principal. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map jobMetadata; /** * A string representing the principal_subject associated with the identity. For most identities, * the format will be `principal://iam.googleapis.com/{identity pool name}/subject/{subject)` * except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the * legacy format `serviceAccount:{identity pool name}[{subject}]` If the identity is a Google * account (e.g. workspace user account or service account), this will be the email of the * prefixed by `serviceAccount:`. For example: `serviceAccount:my-service- * [email protected]`. If the identity is an individual user, the identity * will be formatted as: `user:[email protected]`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String principalSubject; /** * The service's fully qualified domain name, e.g. "dataproc.googleapis.com". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String serviceDomain; /** * Additional metadata provided by service teams to describe service specific job information that * was triggered by the original principal. * @return value or {@code null} for none */ public java.util.Map getJobMetadata() { return jobMetadata; } /** * Additional metadata provided by service teams to describe service specific job information that * was triggered by the original principal. * @param jobMetadata jobMetadata or {@code null} for none */ public ServiceMetadata setJobMetadata(java.util.Map jobMetadata) { this.jobMetadata = jobMetadata; return this; } /** * A string representing the principal_subject associated with the identity. For most identities, * the format will be `principal://iam.googleapis.com/{identity pool name}/subject/{subject)` * except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the * legacy format `serviceAccount:{identity pool name}[{subject}]` If the identity is a Google * account (e.g. workspace user account or service account), this will be the email of the * prefixed by `serviceAccount:`. For example: `serviceAccount:my-service- * [email protected]`. If the identity is an individual user, the identity * will be formatted as: `user:[email protected]`. * @return value or {@code null} for none */ public java.lang.String getPrincipalSubject() { return principalSubject; } /** * A string representing the principal_subject associated with the identity. For most identities, * the format will be `principal://iam.googleapis.com/{identity pool name}/subject/{subject)` * except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the * legacy format `serviceAccount:{identity pool name}[{subject}]` If the identity is a Google * account (e.g. workspace user account or service account), this will be the email of the * prefixed by `serviceAccount:`. For example: `serviceAccount:my-service- * [email protected]`. If the identity is an individual user, the identity * will be formatted as: `user:[email protected]`. * @param principalSubject principalSubject or {@code null} for none */ public ServiceMetadata setPrincipalSubject(java.lang.String principalSubject) { this.principalSubject = principalSubject; return this; } /** * The service's fully qualified domain name, e.g. "dataproc.googleapis.com". * @return value or {@code null} for none */ public java.lang.String getServiceDomain() { return serviceDomain; } /** * The service's fully qualified domain name, e.g. "dataproc.googleapis.com". * @param serviceDomain serviceDomain or {@code null} for none */ public ServiceMetadata setServiceDomain(java.lang.String serviceDomain) { this.serviceDomain = serviceDomain; return this; } @Override public ServiceMetadata set(String fieldName, Object value) { return (ServiceMetadata) super.set(fieldName, value); } @Override public ServiceMetadata clone() { return (ServiceMetadata) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy