com.google.events.cloud.apigeeregistry.v1.ApiDeployment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-cloudevent-types Show documentation
Show all versions of google-cloudevent-types Show documentation
Types in Java for CloudEvents issued by Google.
/*
* Copyright 2023 Google LLC
*
* 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
*
* https://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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/events/cloud/apigeeregistry/v1/data.proto
package com.google.events.cloud.apigeeregistry.v1;
/**
*
*
*
* Describes a service running at particular address that
* provides a particular version of an API. ApiDeployments have revisions which
* correspond to different configurations of a single deployment in time.
* Revision identifiers should be updated whenever the served API spec or
* endpoint address changes.
*
*
* Protobuf type {@code google.events.cloud.apigeeregistry.v1.ApiDeployment}
*/
public final class ApiDeployment extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.events.cloud.apigeeregistry.v1.ApiDeployment)
ApiDeploymentOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiDeployment.newBuilder() to construct.
private ApiDeployment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ApiDeployment() {
name_ = "";
displayName_ = "";
description_ = "";
revisionId_ = "";
apiSpecRevision_ = "";
endpointUri_ = "";
externalChannelUri_ = "";
intendedAudience_ = "";
accessGuidance_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ApiDeployment();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.events.cloud.apigeeregistry.v1.Data
.internal_static_google_events_cloud_apigeeregistry_v1_ApiDeployment_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 14:
return internalGetLabels();
case 15:
return internalGetAnnotations();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.events.cloud.apigeeregistry.v1.Data
.internal_static_google_events_cloud_apigeeregistry_v1_ApiDeployment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.events.cloud.apigeeregistry.v1.ApiDeployment.class,
com.google.events.cloud.apigeeregistry.v1.ApiDeployment.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Resource name.
*
*
* string name = 1;
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
*
*
* Resource name.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
* Human-meaningful name.
*
*
* string display_name = 2;
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
}
}
/**
*
*
*
* Human-meaningful name.
*
*
* string display_name = 2;
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
*
* A detailed description.
*
*
* string description = 3;
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
*
*
* A detailed description.
*
*
* string description = 3;
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REVISION_ID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object revisionId_ = "";
/**
*
*
*
* Output only. Immutable. The revision ID of the deployment.
* A new revision is committed whenever the deployment contents are changed.
* The format is an 8-character hexadecimal string.
*
*
* string revision_id = 4;
*
* @return The revisionId.
*/
@java.lang.Override
public java.lang.String getRevisionId() {
java.lang.Object ref = revisionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
revisionId_ = s;
return s;
}
}
/**
*
*
*
* Output only. Immutable. The revision ID of the deployment.
* A new revision is committed whenever the deployment contents are changed.
* The format is an 8-character hexadecimal string.
*
*
* string revision_id = 4;
*
* @return The bytes for revisionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRevisionIdBytes() {
java.lang.Object ref = revisionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
revisionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATE_TIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return createTime_ != null;
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp revisionCreateTime_;
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*
* @return Whether the revisionCreateTime field is set.
*/
@java.lang.Override
public boolean hasRevisionCreateTime() {
return revisionCreateTime_ != null;
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*
* @return The revisionCreateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getRevisionCreateTime() {
return revisionCreateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: revisionCreateTime_;
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() {
return revisionCreateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: revisionCreateTime_;
}
public static final int REVISION_UPDATE_TIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp revisionUpdateTime_;
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*
* @return Whether the revisionUpdateTime field is set.
*/
@java.lang.Override
public boolean hasRevisionUpdateTime() {
return revisionUpdateTime_ != null;
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*
* @return The revisionUpdateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getRevisionUpdateTime() {
return revisionUpdateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: revisionUpdateTime_;
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getRevisionUpdateTimeOrBuilder() {
return revisionUpdateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: revisionUpdateTime_;
}
public static final int API_SPEC_REVISION_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object apiSpecRevision_ = "";
/**
*
*
*
* The full resource name (including revision ID) of the spec of the API being
* served by the deployment. Changes to this value will update the revision.
* Format: `apis/{api}/deployments/{deployment}`
*
*
* string api_spec_revision = 8;
*
* @return The apiSpecRevision.
*/
@java.lang.Override
public java.lang.String getApiSpecRevision() {
java.lang.Object ref = apiSpecRevision_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiSpecRevision_ = s;
return s;
}
}
/**
*
*
*
* The full resource name (including revision ID) of the spec of the API being
* served by the deployment. Changes to this value will update the revision.
* Format: `apis/{api}/deployments/{deployment}`
*
*
* string api_spec_revision = 8;
*
* @return The bytes for apiSpecRevision.
*/
@java.lang.Override
public com.google.protobuf.ByteString getApiSpecRevisionBytes() {
java.lang.Object ref = apiSpecRevision_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
apiSpecRevision_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENDPOINT_URI_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object endpointUri_ = "";
/**
*
*
*
* The address where the deployment is serving. Changes to this value will
* update the revision.
*
*
* string endpoint_uri = 9;
*
* @return The endpointUri.
*/
@java.lang.Override
public java.lang.String getEndpointUri() {
java.lang.Object ref = endpointUri_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endpointUri_ = s;
return s;
}
}
/**
*
*
*
* The address where the deployment is serving. Changes to this value will
* update the revision.
*
*
* string endpoint_uri = 9;
*
* @return The bytes for endpointUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEndpointUriBytes() {
java.lang.Object ref = endpointUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
endpointUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTERNAL_CHANNEL_URI_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object externalChannelUri_ = "";
/**
*
*
*
* The address of the external channel of the API (e.g., the Developer
* Portal). Changes to this value will not affect the revision.
*
*
* string external_channel_uri = 10;
*
* @return The externalChannelUri.
*/
@java.lang.Override
public java.lang.String getExternalChannelUri() {
java.lang.Object ref = externalChannelUri_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
externalChannelUri_ = s;
return s;
}
}
/**
*
*
*
* The address of the external channel of the API (e.g., the Developer
* Portal). Changes to this value will not affect the revision.
*
*
* string external_channel_uri = 10;
*
* @return The bytes for externalChannelUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getExternalChannelUriBytes() {
java.lang.Object ref = externalChannelUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
externalChannelUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INTENDED_AUDIENCE_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object intendedAudience_ = "";
/**
*
*
*
* Text briefly identifying the intended audience of the API. Changes to this
* value will not affect the revision.
*
*
* string intended_audience = 11;
*
* @return The intendedAudience.
*/
@java.lang.Override
public java.lang.String getIntendedAudience() {
java.lang.Object ref = intendedAudience_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
intendedAudience_ = s;
return s;
}
}
/**
*
*
*
* Text briefly identifying the intended audience of the API. Changes to this
* value will not affect the revision.
*
*
* string intended_audience = 11;
*
* @return The bytes for intendedAudience.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIntendedAudienceBytes() {
java.lang.Object ref = intendedAudience_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
intendedAudience_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCESS_GUIDANCE_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object accessGuidance_ = "";
/**
*
*
*
* Text briefly describing how to access the endpoint. Changes to this value
* will not affect the revision.
*
*
* string access_guidance = 12;
*
* @return The accessGuidance.
*/
@java.lang.Override
public java.lang.String getAccessGuidance() {
java.lang.Object ref = accessGuidance_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
accessGuidance_ = s;
return s;
}
}
/**
*
*
*
* Text briefly describing how to access the endpoint. Changes to this value
* will not affect the revision.
*
*
* string access_guidance = 12;
*
* @return The bytes for accessGuidance.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAccessGuidanceBytes() {
java.lang.Object ref = accessGuidance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
accessGuidance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 14;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.events.cloud.apigeeregistry.v1.Data
.internal_static_google_events_cloud_apigeeregistry_v1_ApiDeployment_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ANNOTATIONS_FIELD_NUMBER = 15;
private static final class AnnotationsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.events.cloud.apigeeregistry.v1.Data
.internal_static_google_events_cloud_apigeeregistry_v1_ApiDeployment_AnnotationsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField annotations_;
private com.google.protobuf.MapField
internalGetAnnotations() {
if (annotations_ == null) {
return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
}
return annotations_;
}
public int getAnnotationsCount() {
return internalGetAnnotations().getMap().size();
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
@java.lang.Override
public boolean containsAnnotations(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetAnnotations().getMap().containsKey(key);
}
/** Use {@link #getAnnotationsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAnnotations() {
return getAnnotationsMap();
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
@java.lang.Override
public java.util.Map getAnnotationsMap() {
return internalGetAnnotations().getMap();
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
@java.lang.Override
public /* nullable */ java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetAnnotations().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
@java.lang.Override
public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revisionId_);
}
if (createTime_ != null) {
output.writeMessage(5, getCreateTime());
}
if (revisionCreateTime_ != null) {
output.writeMessage(6, getRevisionCreateTime());
}
if (revisionUpdateTime_ != null) {
output.writeMessage(7, getRevisionUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiSpecRevision_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, apiSpecRevision_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, endpointUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalChannelUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, externalChannelUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intendedAudience_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, intendedAudience_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessGuidance_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, accessGuidance_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 14);
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 15);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_);
}
if (createTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
}
if (revisionCreateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRevisionCreateTime());
}
if (revisionUpdateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRevisionUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiSpecRevision_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, apiSpecRevision_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, endpointUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalChannelUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, externalChannelUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intendedAudience_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, intendedAudience_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessGuidance_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, accessGuidance_);
}
for (java.util.Map.Entry entry :
internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry labels__ =
LabelsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, labels__);
}
for (java.util.Map.Entry entry :
internalGetAnnotations().getMap().entrySet()) {
com.google.protobuf.MapEntry annotations__ =
AnnotationsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, annotations__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.events.cloud.apigeeregistry.v1.ApiDeployment)) {
return super.equals(obj);
}
com.google.events.cloud.apigeeregistry.v1.ApiDeployment other =
(com.google.events.cloud.apigeeregistry.v1.ApiDeployment) obj;
if (!getName().equals(other.getName())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (!getRevisionId().equals(other.getRevisionId())) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false;
if (hasRevisionCreateTime()) {
if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false;
}
if (hasRevisionUpdateTime() != other.hasRevisionUpdateTime()) return false;
if (hasRevisionUpdateTime()) {
if (!getRevisionUpdateTime().equals(other.getRevisionUpdateTime())) return false;
}
if (!getApiSpecRevision().equals(other.getApiSpecRevision())) return false;
if (!getEndpointUri().equals(other.getEndpointUri())) return false;
if (!getExternalChannelUri().equals(other.getExternalChannelUri())) return false;
if (!getIntendedAudience().equals(other.getIntendedAudience())) return false;
if (!getAccessGuidance().equals(other.getAccessGuidance())) return false;
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + REVISION_ID_FIELD_NUMBER;
hash = (53 * hash) + getRevisionId().hashCode();
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasRevisionCreateTime()) {
hash = (37 * hash) + REVISION_CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getRevisionCreateTime().hashCode();
}
if (hasRevisionUpdateTime()) {
hash = (37 * hash) + REVISION_UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getRevisionUpdateTime().hashCode();
}
hash = (37 * hash) + API_SPEC_REVISION_FIELD_NUMBER;
hash = (53 * hash) + getApiSpecRevision().hashCode();
hash = (37 * hash) + ENDPOINT_URI_FIELD_NUMBER;
hash = (53 * hash) + getEndpointUri().hashCode();
hash = (37 * hash) + EXTERNAL_CHANNEL_URI_FIELD_NUMBER;
hash = (53 * hash) + getExternalChannelUri().hashCode();
hash = (37 * hash) + INTENDED_AUDIENCE_FIELD_NUMBER;
hash = (53 * hash) + getIntendedAudience().hashCode();
hash = (37 * hash) + ACCESS_GUIDANCE_FIELD_NUMBER;
hash = (53 * hash) + getAccessGuidance().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (!internalGetAnnotations().getMap().isEmpty()) {
hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetAnnotations().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.events.cloud.apigeeregistry.v1.ApiDeployment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Describes a service running at particular address that
* provides a particular version of an API. ApiDeployments have revisions which
* correspond to different configurations of a single deployment in time.
* Revision identifiers should be updated whenever the served API spec or
* endpoint address changes.
*
*
* Protobuf type {@code google.events.cloud.apigeeregistry.v1.ApiDeployment}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.events.cloud.apigeeregistry.v1.ApiDeployment)
com.google.events.cloud.apigeeregistry.v1.ApiDeploymentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.events.cloud.apigeeregistry.v1.Data
.internal_static_google_events_cloud_apigeeregistry_v1_ApiDeployment_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 14:
return internalGetLabels();
case 15:
return internalGetAnnotations();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 14:
return internalGetMutableLabels();
case 15:
return internalGetMutableAnnotations();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.events.cloud.apigeeregistry.v1.Data
.internal_static_google_events_cloud_apigeeregistry_v1_ApiDeployment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.events.cloud.apigeeregistry.v1.ApiDeployment.class,
com.google.events.cloud.apigeeregistry.v1.ApiDeployment.Builder.class);
}
// Construct using com.google.events.cloud.apigeeregistry.v1.ApiDeployment.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
displayName_ = "";
description_ = "";
revisionId_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
revisionCreateTime_ = null;
if (revisionCreateTimeBuilder_ != null) {
revisionCreateTimeBuilder_.dispose();
revisionCreateTimeBuilder_ = null;
}
revisionUpdateTime_ = null;
if (revisionUpdateTimeBuilder_ != null) {
revisionUpdateTimeBuilder_.dispose();
revisionUpdateTimeBuilder_ = null;
}
apiSpecRevision_ = "";
endpointUri_ = "";
externalChannelUri_ = "";
intendedAudience_ = "";
accessGuidance_ = "";
internalGetMutableLabels().clear();
internalGetMutableAnnotations().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.events.cloud.apigeeregistry.v1.Data
.internal_static_google_events_cloud_apigeeregistry_v1_ApiDeployment_descriptor;
}
@java.lang.Override
public com.google.events.cloud.apigeeregistry.v1.ApiDeployment getDefaultInstanceForType() {
return com.google.events.cloud.apigeeregistry.v1.ApiDeployment.getDefaultInstance();
}
@java.lang.Override
public com.google.events.cloud.apigeeregistry.v1.ApiDeployment build() {
com.google.events.cloud.apigeeregistry.v1.ApiDeployment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.events.cloud.apigeeregistry.v1.ApiDeployment buildPartial() {
com.google.events.cloud.apigeeregistry.v1.ApiDeployment result =
new com.google.events.cloud.apigeeregistry.v1.ApiDeployment(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.events.cloud.apigeeregistry.v1.ApiDeployment result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.revisionId_ = revisionId_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.revisionCreateTime_ =
revisionCreateTimeBuilder_ == null
? revisionCreateTime_
: revisionCreateTimeBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.revisionUpdateTime_ =
revisionUpdateTimeBuilder_ == null
? revisionUpdateTime_
: revisionUpdateTimeBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.apiSpecRevision_ = apiSpecRevision_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.endpointUri_ = endpointUri_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.externalChannelUri_ = externalChannelUri_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.intendedAudience_ = intendedAudience_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.accessGuidance_ = accessGuidance_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.events.cloud.apigeeregistry.v1.ApiDeployment) {
return mergeFrom((com.google.events.cloud.apigeeregistry.v1.ApiDeployment) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.events.cloud.apigeeregistry.v1.ApiDeployment other) {
if (other == com.google.events.cloud.apigeeregistry.v1.ApiDeployment.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getRevisionId().isEmpty()) {
revisionId_ = other.revisionId_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasRevisionCreateTime()) {
mergeRevisionCreateTime(other.getRevisionCreateTime());
}
if (other.hasRevisionUpdateTime()) {
mergeRevisionUpdateTime(other.getRevisionUpdateTime());
}
if (!other.getApiSpecRevision().isEmpty()) {
apiSpecRevision_ = other.apiSpecRevision_;
bitField0_ |= 0x00000080;
onChanged();
}
if (!other.getEndpointUri().isEmpty()) {
endpointUri_ = other.endpointUri_;
bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getExternalChannelUri().isEmpty()) {
externalChannelUri_ = other.externalChannelUri_;
bitField0_ |= 0x00000200;
onChanged();
}
if (!other.getIntendedAudience().isEmpty()) {
intendedAudience_ = other.intendedAudience_;
bitField0_ |= 0x00000400;
onChanged();
}
if (!other.getAccessGuidance().isEmpty()) {
accessGuidance_ = other.accessGuidance_;
bitField0_ |= 0x00000800;
onChanged();
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00001000;
internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
bitField0_ |= 0x00002000;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
revisionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
input.readMessage(
getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
input.readMessage(
getRevisionUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66:
{
apiSpecRevision_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 74:
{
endpointUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
case 82:
{
externalChannelUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 82
case 90:
{
intendedAudience_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 98:
{
accessGuidance_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 98
case 114:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00001000;
break;
} // case 114
case 122:
{
com.google.protobuf.MapEntry annotations__ =
input.readMessage(
AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableAnnotations()
.getMutableMap()
.put(annotations__.getKey(), annotations__.getValue());
bitField0_ |= 0x00002000;
break;
} // case 122
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Resource name.
*
*
* string name = 1;
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Resource name.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Resource name.
*
*
* string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Resource name.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Resource name.
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
* Human-meaningful name.
*
*
* string display_name = 2;
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Human-meaningful name.
*
*
* string display_name = 2;
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Human-meaningful name.
*
*
* string display_name = 2;
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Human-meaningful name.
*
*
* string display_name = 2;
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Human-meaningful name.
*
*
* string display_name = 2;
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* A detailed description.
*
*
* string description = 3;
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A detailed description.
*
*
* string description = 3;
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A detailed description.
*
*
* string description = 3;
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* A detailed description.
*
*
* string description = 3;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* A detailed description.
*
*
* string description = 3;
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object revisionId_ = "";
/**
*
*
*
* Output only. Immutable. The revision ID of the deployment.
* A new revision is committed whenever the deployment contents are changed.
* The format is an 8-character hexadecimal string.
*
*
* string revision_id = 4;
*
* @return The revisionId.
*/
public java.lang.String getRevisionId() {
java.lang.Object ref = revisionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
revisionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. Immutable. The revision ID of the deployment.
* A new revision is committed whenever the deployment contents are changed.
* The format is an 8-character hexadecimal string.
*
*
* string revision_id = 4;
*
* @return The bytes for revisionId.
*/
public com.google.protobuf.ByteString getRevisionIdBytes() {
java.lang.Object ref = revisionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
revisionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. Immutable. The revision ID of the deployment.
* A new revision is committed whenever the deployment contents are changed.
* The format is an 8-character hexadecimal string.
*
*
* string revision_id = 4;
*
* @param value The revisionId to set.
* @return This builder for chaining.
*/
public Builder setRevisionId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
revisionId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. Immutable. The revision ID of the deployment.
* A new revision is committed whenever the deployment contents are changed.
* The format is an 8-character hexadecimal string.
*
*
* string revision_id = 4;
*
* @return This builder for chaining.
*/
public Builder clearRevisionId() {
revisionId_ = getDefaultInstance().getRevisionId();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Output only. Immutable. The revision ID of the deployment.
* A new revision is committed whenever the deployment contents are changed.
* The format is an 8-character hexadecimal string.
*
*
* string revision_id = 4;
*
* @param value The bytes for revisionId to set.
* @return This builder for chaining.
*/
public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
revisionId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000010);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. Creation timestamp; when the deployment resource was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp revisionCreateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
revisionCreateTimeBuilder_;
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*
* @return Whether the revisionCreateTime field is set.
*/
public boolean hasRevisionCreateTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*
* @return The revisionCreateTime.
*/
public com.google.protobuf.Timestamp getRevisionCreateTime() {
if (revisionCreateTimeBuilder_ == null) {
return revisionCreateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: revisionCreateTime_;
} else {
return revisionCreateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*/
public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) {
if (revisionCreateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
revisionCreateTime_ = value;
} else {
revisionCreateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*/
public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (revisionCreateTimeBuilder_ == null) {
revisionCreateTime_ = builderForValue.build();
} else {
revisionCreateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*/
public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) {
if (revisionCreateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& revisionCreateTime_ != null
&& revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getRevisionCreateTimeBuilder().mergeFrom(value);
} else {
revisionCreateTime_ = value;
}
} else {
revisionCreateTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*/
public Builder clearRevisionCreateTime() {
bitField0_ = (bitField0_ & ~0x00000020);
revisionCreateTime_ = null;
if (revisionCreateTimeBuilder_ != null) {
revisionCreateTimeBuilder_.dispose();
revisionCreateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*/
public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getRevisionCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() {
if (revisionCreateTimeBuilder_ != null) {
return revisionCreateTimeBuilder_.getMessageOrBuilder();
} else {
return revisionCreateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: revisionCreateTime_;
}
}
/**
*
*
*
* Output only. Revision creation timestamp; when the represented revision was
* created.
*
*
* .google.protobuf.Timestamp revision_create_time = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getRevisionCreateTimeFieldBuilder() {
if (revisionCreateTimeBuilder_ == null) {
revisionCreateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getRevisionCreateTime(), getParentForChildren(), isClean());
revisionCreateTime_ = null;
}
return revisionCreateTimeBuilder_;
}
private com.google.protobuf.Timestamp revisionUpdateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
revisionUpdateTimeBuilder_;
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*
* @return Whether the revisionUpdateTime field is set.
*/
public boolean hasRevisionUpdateTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*
* @return The revisionUpdateTime.
*/
public com.google.protobuf.Timestamp getRevisionUpdateTime() {
if (revisionUpdateTimeBuilder_ == null) {
return revisionUpdateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: revisionUpdateTime_;
} else {
return revisionUpdateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*/
public Builder setRevisionUpdateTime(com.google.protobuf.Timestamp value) {
if (revisionUpdateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
revisionUpdateTime_ = value;
} else {
revisionUpdateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*/
public Builder setRevisionUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (revisionUpdateTimeBuilder_ == null) {
revisionUpdateTime_ = builderForValue.build();
} else {
revisionUpdateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*/
public Builder mergeRevisionUpdateTime(com.google.protobuf.Timestamp value) {
if (revisionUpdateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& revisionUpdateTime_ != null
&& revisionUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getRevisionUpdateTimeBuilder().mergeFrom(value);
} else {
revisionUpdateTime_ = value;
}
} else {
revisionUpdateTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*/
public Builder clearRevisionUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000040);
revisionUpdateTime_ = null;
if (revisionUpdateTimeBuilder_ != null) {
revisionUpdateTimeBuilder_.dispose();
revisionUpdateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*/
public com.google.protobuf.Timestamp.Builder getRevisionUpdateTimeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getRevisionUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*/
public com.google.protobuf.TimestampOrBuilder getRevisionUpdateTimeOrBuilder() {
if (revisionUpdateTimeBuilder_ != null) {
return revisionUpdateTimeBuilder_.getMessageOrBuilder();
} else {
return revisionUpdateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: revisionUpdateTime_;
}
}
/**
*
*
*
* Output only. Last update timestamp: when the represented revision was last
* modified.
*
*
* .google.protobuf.Timestamp revision_update_time = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getRevisionUpdateTimeFieldBuilder() {
if (revisionUpdateTimeBuilder_ == null) {
revisionUpdateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getRevisionUpdateTime(), getParentForChildren(), isClean());
revisionUpdateTime_ = null;
}
return revisionUpdateTimeBuilder_;
}
private java.lang.Object apiSpecRevision_ = "";
/**
*
*
*
* The full resource name (including revision ID) of the spec of the API being
* served by the deployment. Changes to this value will update the revision.
* Format: `apis/{api}/deployments/{deployment}`
*
*
* string api_spec_revision = 8;
*
* @return The apiSpecRevision.
*/
public java.lang.String getApiSpecRevision() {
java.lang.Object ref = apiSpecRevision_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiSpecRevision_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The full resource name (including revision ID) of the spec of the API being
* served by the deployment. Changes to this value will update the revision.
* Format: `apis/{api}/deployments/{deployment}`
*
*
* string api_spec_revision = 8;
*
* @return The bytes for apiSpecRevision.
*/
public com.google.protobuf.ByteString getApiSpecRevisionBytes() {
java.lang.Object ref = apiSpecRevision_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
apiSpecRevision_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The full resource name (including revision ID) of the spec of the API being
* served by the deployment. Changes to this value will update the revision.
* Format: `apis/{api}/deployments/{deployment}`
*
*
* string api_spec_revision = 8;
*
* @param value The apiSpecRevision to set.
* @return This builder for chaining.
*/
public Builder setApiSpecRevision(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiSpecRevision_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The full resource name (including revision ID) of the spec of the API being
* served by the deployment. Changes to this value will update the revision.
* Format: `apis/{api}/deployments/{deployment}`
*
*
* string api_spec_revision = 8;
*
* @return This builder for chaining.
*/
public Builder clearApiSpecRevision() {
apiSpecRevision_ = getDefaultInstance().getApiSpecRevision();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
*
*
* The full resource name (including revision ID) of the spec of the API being
* served by the deployment. Changes to this value will update the revision.
* Format: `apis/{api}/deployments/{deployment}`
*
*
* string api_spec_revision = 8;
*
* @param value The bytes for apiSpecRevision to set.
* @return This builder for chaining.
*/
public Builder setApiSpecRevisionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiSpecRevision_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object endpointUri_ = "";
/**
*
*
*
* The address where the deployment is serving. Changes to this value will
* update the revision.
*
*
* string endpoint_uri = 9;
*
* @return The endpointUri.
*/
public java.lang.String getEndpointUri() {
java.lang.Object ref = endpointUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endpointUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The address where the deployment is serving. Changes to this value will
* update the revision.
*
*
* string endpoint_uri = 9;
*
* @return The bytes for endpointUri.
*/
public com.google.protobuf.ByteString getEndpointUriBytes() {
java.lang.Object ref = endpointUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
endpointUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The address where the deployment is serving. Changes to this value will
* update the revision.
*
*
* string endpoint_uri = 9;
*
* @param value The endpointUri to set.
* @return This builder for chaining.
*/
public Builder setEndpointUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
endpointUri_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* The address where the deployment is serving. Changes to this value will
* update the revision.
*
*
* string endpoint_uri = 9;
*
* @return This builder for chaining.
*/
public Builder clearEndpointUri() {
endpointUri_ = getDefaultInstance().getEndpointUri();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
*
*
* The address where the deployment is serving. Changes to this value will
* update the revision.
*
*
* string endpoint_uri = 9;
*
* @param value The bytes for endpointUri to set.
* @return This builder for chaining.
*/
public Builder setEndpointUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
endpointUri_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object externalChannelUri_ = "";
/**
*
*
*
* The address of the external channel of the API (e.g., the Developer
* Portal). Changes to this value will not affect the revision.
*
*
* string external_channel_uri = 10;
*
* @return The externalChannelUri.
*/
public java.lang.String getExternalChannelUri() {
java.lang.Object ref = externalChannelUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
externalChannelUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The address of the external channel of the API (e.g., the Developer
* Portal). Changes to this value will not affect the revision.
*
*
* string external_channel_uri = 10;
*
* @return The bytes for externalChannelUri.
*/
public com.google.protobuf.ByteString getExternalChannelUriBytes() {
java.lang.Object ref = externalChannelUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
externalChannelUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The address of the external channel of the API (e.g., the Developer
* Portal). Changes to this value will not affect the revision.
*
*
* string external_channel_uri = 10;
*
* @param value The externalChannelUri to set.
* @return This builder for chaining.
*/
public Builder setExternalChannelUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
externalChannelUri_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* The address of the external channel of the API (e.g., the Developer
* Portal). Changes to this value will not affect the revision.
*
*
* string external_channel_uri = 10;
*
* @return This builder for chaining.
*/
public Builder clearExternalChannelUri() {
externalChannelUri_ = getDefaultInstance().getExternalChannelUri();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*
*
* The address of the external channel of the API (e.g., the Developer
* Portal). Changes to this value will not affect the revision.
*
*
* string external_channel_uri = 10;
*
* @param value The bytes for externalChannelUri to set.
* @return This builder for chaining.
*/
public Builder setExternalChannelUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
externalChannelUri_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object intendedAudience_ = "";
/**
*
*
*
* Text briefly identifying the intended audience of the API. Changes to this
* value will not affect the revision.
*
*
* string intended_audience = 11;
*
* @return The intendedAudience.
*/
public java.lang.String getIntendedAudience() {
java.lang.Object ref = intendedAudience_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
intendedAudience_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Text briefly identifying the intended audience of the API. Changes to this
* value will not affect the revision.
*
*
* string intended_audience = 11;
*
* @return The bytes for intendedAudience.
*/
public com.google.protobuf.ByteString getIntendedAudienceBytes() {
java.lang.Object ref = intendedAudience_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
intendedAudience_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Text briefly identifying the intended audience of the API. Changes to this
* value will not affect the revision.
*
*
* string intended_audience = 11;
*
* @param value The intendedAudience to set.
* @return This builder for chaining.
*/
public Builder setIntendedAudience(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
intendedAudience_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* Text briefly identifying the intended audience of the API. Changes to this
* value will not affect the revision.
*
*
* string intended_audience = 11;
*
* @return This builder for chaining.
*/
public Builder clearIntendedAudience() {
intendedAudience_ = getDefaultInstance().getIntendedAudience();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
*
*
* Text briefly identifying the intended audience of the API. Changes to this
* value will not affect the revision.
*
*
* string intended_audience = 11;
*
* @param value The bytes for intendedAudience to set.
* @return This builder for chaining.
*/
public Builder setIntendedAudienceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
intendedAudience_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.lang.Object accessGuidance_ = "";
/**
*
*
*
* Text briefly describing how to access the endpoint. Changes to this value
* will not affect the revision.
*
*
* string access_guidance = 12;
*
* @return The accessGuidance.
*/
public java.lang.String getAccessGuidance() {
java.lang.Object ref = accessGuidance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
accessGuidance_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Text briefly describing how to access the endpoint. Changes to this value
* will not affect the revision.
*
*
* string access_guidance = 12;
*
* @return The bytes for accessGuidance.
*/
public com.google.protobuf.ByteString getAccessGuidanceBytes() {
java.lang.Object ref = accessGuidance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
accessGuidance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Text briefly describing how to access the endpoint. Changes to this value
* will not affect the revision.
*
*
* string access_guidance = 12;
*
* @param value The accessGuidance to set.
* @return This builder for chaining.
*/
public Builder setAccessGuidance(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
accessGuidance_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*
*
* Text briefly describing how to access the endpoint. Changes to this value
* will not affect the revision.
*
*
* string access_guidance = 12;
*
* @return This builder for chaining.
*/
public Builder clearAccessGuidance() {
accessGuidance_ = getDefaultInstance().getAccessGuidance();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
*
*
* Text briefly describing how to access the endpoint. Changes to this value
* will not affect the revision.
*
*
* string access_guidance = 12;
*
* @param value The bytes for accessGuidance to set.
* @return This builder for chaining.
*/
public Builder setAccessGuidanceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
accessGuidance_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00001000;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00001000);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
bitField0_ |= 0x00001000;
return internalGetMutableLabels().getMutableMap();
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap().put(key, value);
bitField0_ |= 0x00001000;
return this;
}
/**
*
*
*
* Labels attach identifying metadata to resources. Identifying metadata can
* be used to filter list operations.
* Label keys and values can be no longer than 64 characters
* (Unicode codepoints), can only contain lowercase letters, numeric
* characters, underscores and dashes. International characters are allowed.
* No more than 64 user labels can be associated with one resource (System
* labels are excluded).
* See https://goo.gl/xmQnxf for more information and examples of labels.
* System reserved label keys are prefixed with
* `apigeeregistry.googleapis.com/` and cannot be changed.
*
*
* map<string, string> labels = 14;
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
bitField0_ |= 0x00001000;
return this;
}
private com.google.protobuf.MapField annotations_;
private com.google.protobuf.MapField
internalGetAnnotations() {
if (annotations_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AnnotationsDefaultEntryHolder.defaultEntry);
}
return annotations_;
}
private com.google.protobuf.MapField
internalGetMutableAnnotations() {
if (annotations_ == null) {
annotations_ =
com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
}
if (!annotations_.isMutable()) {
annotations_ = annotations_.copy();
}
bitField0_ |= 0x00002000;
onChanged();
return annotations_;
}
public int getAnnotationsCount() {
return internalGetAnnotations().getMap().size();
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
@java.lang.Override
public boolean containsAnnotations(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetAnnotations().getMap().containsKey(key);
}
/** Use {@link #getAnnotationsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAnnotations() {
return getAnnotationsMap();
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
@java.lang.Override
public java.util.Map getAnnotationsMap() {
return internalGetAnnotations().getMap();
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
@java.lang.Override
public /* nullable */ java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetAnnotations().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
@java.lang.Override
public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAnnotations() {
bitField0_ = (bitField0_ & ~0x00002000);
internalGetMutableAnnotations().getMutableMap().clear();
return this;
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
public Builder removeAnnotations(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableAnnotations().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableAnnotations() {
bitField0_ |= 0x00002000;
return internalGetMutableAnnotations().getMutableMap();
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
public Builder putAnnotations(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableAnnotations().getMutableMap().put(key, value);
bitField0_ |= 0x00002000;
return this;
}
/**
*
*
*
* Annotations attach non-identifying metadata to resources.
* Annotation keys and values are less restricted than those of labels, but
* should be generally used for small values of broad interest. Larger, topic-
* specific metadata should be stored in Artifacts.
*
*
* map<string, string> annotations = 15;
*/
public Builder putAllAnnotations(java.util.Map values) {
internalGetMutableAnnotations().getMutableMap().putAll(values);
bitField0_ |= 0x00002000;
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.events.cloud.apigeeregistry.v1.ApiDeployment)
}
// @@protoc_insertion_point(class_scope:google.events.cloud.apigeeregistry.v1.ApiDeployment)
private static final com.google.events.cloud.apigeeregistry.v1.ApiDeployment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.events.cloud.apigeeregistry.v1.ApiDeployment();
}
public static com.google.events.cloud.apigeeregistry.v1.ApiDeployment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApiDeployment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.events.cloud.apigeeregistry.v1.ApiDeployment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}