io.grafeas.v1.DeploymentOccurrence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grafeas Show documentation
Show all versions of grafeas Show documentation
Java idiomatic client for Grafeas.
/*
* Copyright 2019 The Grafeas Authors. All rights reserved.
*
* 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: grafeas/v1/deployment.proto
package io.grafeas.v1;
/**
*
*
*
* The period during which some deployable was active in a runtime.
*
*
* Protobuf type {@code grafeas.v1.DeploymentOccurrence}
*/
public final class DeploymentOccurrence extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:grafeas.v1.DeploymentOccurrence)
DeploymentOccurrenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeploymentOccurrence.newBuilder() to construct.
private DeploymentOccurrence(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeploymentOccurrence() {
userEmail_ = "";
config_ = "";
address_ = "";
resourceUri_ = com.google.protobuf.LazyStringArrayList.emptyList();
platform_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DeploymentOccurrence();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.grafeas.v1.Deployment.internal_static_grafeas_v1_DeploymentOccurrence_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grafeas.v1.Deployment
.internal_static_grafeas_v1_DeploymentOccurrence_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grafeas.v1.DeploymentOccurrence.class,
io.grafeas.v1.DeploymentOccurrence.Builder.class);
}
/**
*
*
*
* Types of platforms.
*
*
* Protobuf enum {@code grafeas.v1.DeploymentOccurrence.Platform}
*/
public enum Platform implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Unknown.
*
*
* PLATFORM_UNSPECIFIED = 0;
*/
PLATFORM_UNSPECIFIED(0),
/**
*
*
*
* Google Container Engine.
*
*
* GKE = 1;
*/
GKE(1),
/**
*
*
*
* Google App Engine: Flexible Environment.
*
*
* FLEX = 2;
*/
FLEX(2),
/**
*
*
*
* Custom user-defined platform.
*
*
* CUSTOM = 3;
*/
CUSTOM(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Unknown.
*
*
* PLATFORM_UNSPECIFIED = 0;
*/
public static final int PLATFORM_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Google Container Engine.
*
*
* GKE = 1;
*/
public static final int GKE_VALUE = 1;
/**
*
*
*
* Google App Engine: Flexible Environment.
*
*
* FLEX = 2;
*/
public static final int FLEX_VALUE = 2;
/**
*
*
*
* Custom user-defined platform.
*
*
* CUSTOM = 3;
*/
public static final int CUSTOM_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Platform valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Platform forNumber(int value) {
switch (value) {
case 0:
return PLATFORM_UNSPECIFIED;
case 1:
return GKE;
case 2:
return FLEX;
case 3:
return CUSTOM;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Platform findValueByNumber(int number) {
return Platform.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return io.grafeas.v1.DeploymentOccurrence.getDescriptor().getEnumTypes().get(0);
}
private static final Platform[] VALUES = values();
public static Platform valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Platform(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:grafeas.v1.DeploymentOccurrence.Platform)
}
public static final int USER_EMAIL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object userEmail_ = "";
/**
*
*
*
* Identity of the user that triggered this deployment.
*
*
* string user_email = 1;
*
* @return The userEmail.
*/
@java.lang.Override
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
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();
userEmail_ = s;
return s;
}
}
/**
*
*
*
* Identity of the user that triggered this deployment.
*
*
* string user_email = 1;
*
* @return The bytes for userEmail.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPLOY_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp deployTime_;
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*
* @return Whether the deployTime field is set.
*/
@java.lang.Override
public boolean hasDeployTime() {
return deployTime_ != null;
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*
* @return The deployTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDeployTime() {
return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_;
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() {
return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_;
}
public static final int UNDEPLOY_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp undeployTime_;
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*
* @return Whether the undeployTime field is set.
*/
@java.lang.Override
public boolean hasUndeployTime() {
return undeployTime_ != null;
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*
* @return The undeployTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUndeployTime() {
return undeployTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: undeployTime_;
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUndeployTimeOrBuilder() {
return undeployTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: undeployTime_;
}
public static final int CONFIG_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object config_ = "";
/**
*
*
*
* Configuration used to create this deployment.
*
*
* string config = 4;
*
* @return The config.
*/
@java.lang.Override
public java.lang.String getConfig() {
java.lang.Object ref = config_;
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();
config_ = s;
return s;
}
}
/**
*
*
*
* Configuration used to create this deployment.
*
*
* string config = 4;
*
* @return The bytes for config.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConfigBytes() {
java.lang.Object ref = config_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
config_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object address_ = "";
/**
*
*
*
* Address of the runtime element hosting this deployment.
*
*
* string address = 5;
*
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
*
*
*
* Address of the runtime element hosting this deployment.
*
*
* string address = 5;
*
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_URI_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList resourceUri_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @return A list containing the resourceUri.
*/
public com.google.protobuf.ProtocolStringList getResourceUriList() {
return resourceUri_;
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @return The count of resourceUri.
*/
public int getResourceUriCount() {
return resourceUri_.size();
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @param index The index of the element to return.
* @return The resourceUri at the given index.
*/
public java.lang.String getResourceUri(int index) {
return resourceUri_.get(index);
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @param index The index of the value to return.
* @return The bytes of the resourceUri at the given index.
*/
public com.google.protobuf.ByteString getResourceUriBytes(int index) {
return resourceUri_.getByteString(index);
}
public static final int PLATFORM_FIELD_NUMBER = 7;
private int platform_ = 0;
/**
*
*
*
* Platform hosting this deployment.
*
*
* .grafeas.v1.DeploymentOccurrence.Platform platform = 7;
*
* @return The enum numeric value on the wire for platform.
*/
@java.lang.Override
public int getPlatformValue() {
return platform_;
}
/**
*
*
*
* Platform hosting this deployment.
*
*
* .grafeas.v1.DeploymentOccurrence.Platform platform = 7;
*
* @return The platform.
*/
@java.lang.Override
public io.grafeas.v1.DeploymentOccurrence.Platform getPlatform() {
io.grafeas.v1.DeploymentOccurrence.Platform result =
io.grafeas.v1.DeploymentOccurrence.Platform.forNumber(platform_);
return result == null ? io.grafeas.v1.DeploymentOccurrence.Platform.UNRECOGNIZED : result;
}
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(userEmail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userEmail_);
}
if (deployTime_ != null) {
output.writeMessage(2, getDeployTime());
}
if (undeployTime_ != null) {
output.writeMessage(3, getUndeployTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(config_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, config_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, address_);
}
for (int i = 0; i < resourceUri_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resourceUri_.getRaw(i));
}
if (platform_ != io.grafeas.v1.DeploymentOccurrence.Platform.PLATFORM_UNSPECIFIED.getNumber()) {
output.writeEnum(7, platform_);
}
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(userEmail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userEmail_);
}
if (deployTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeployTime());
}
if (undeployTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUndeployTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(config_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, config_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, address_);
}
{
int dataSize = 0;
for (int i = 0; i < resourceUri_.size(); i++) {
dataSize += computeStringSizeNoTag(resourceUri_.getRaw(i));
}
size += dataSize;
size += 1 * getResourceUriList().size();
}
if (platform_ != io.grafeas.v1.DeploymentOccurrence.Platform.PLATFORM_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, platform_);
}
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 io.grafeas.v1.DeploymentOccurrence)) {
return super.equals(obj);
}
io.grafeas.v1.DeploymentOccurrence other = (io.grafeas.v1.DeploymentOccurrence) obj;
if (!getUserEmail().equals(other.getUserEmail())) return false;
if (hasDeployTime() != other.hasDeployTime()) return false;
if (hasDeployTime()) {
if (!getDeployTime().equals(other.getDeployTime())) return false;
}
if (hasUndeployTime() != other.hasUndeployTime()) return false;
if (hasUndeployTime()) {
if (!getUndeployTime().equals(other.getUndeployTime())) return false;
}
if (!getConfig().equals(other.getConfig())) return false;
if (!getAddress().equals(other.getAddress())) return false;
if (!getResourceUriList().equals(other.getResourceUriList())) return false;
if (platform_ != other.platform_) 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) + USER_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getUserEmail().hashCode();
if (hasDeployTime()) {
hash = (37 * hash) + DEPLOY_TIME_FIELD_NUMBER;
hash = (53 * hash) + getDeployTime().hashCode();
}
if (hasUndeployTime()) {
hash = (37 * hash) + UNDEPLOY_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUndeployTime().hashCode();
}
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConfig().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (getResourceUriCount() > 0) {
hash = (37 * hash) + RESOURCE_URI_FIELD_NUMBER;
hash = (53 * hash) + getResourceUriList().hashCode();
}
hash = (37 * hash) + PLATFORM_FIELD_NUMBER;
hash = (53 * hash) + platform_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.DeploymentOccurrence parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.DeploymentOccurrence parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.DeploymentOccurrence parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.DeploymentOccurrence parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.DeploymentOccurrence parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.DeploymentOccurrence parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.DeploymentOccurrence parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.DeploymentOccurrence 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 io.grafeas.v1.DeploymentOccurrence parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.DeploymentOccurrence 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 io.grafeas.v1.DeploymentOccurrence parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.DeploymentOccurrence 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(io.grafeas.v1.DeploymentOccurrence 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;
}
/**
*
*
*
* The period during which some deployable was active in a runtime.
*
*
* Protobuf type {@code grafeas.v1.DeploymentOccurrence}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:grafeas.v1.DeploymentOccurrence)
io.grafeas.v1.DeploymentOccurrenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.grafeas.v1.Deployment.internal_static_grafeas_v1_DeploymentOccurrence_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grafeas.v1.Deployment
.internal_static_grafeas_v1_DeploymentOccurrence_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grafeas.v1.DeploymentOccurrence.class,
io.grafeas.v1.DeploymentOccurrence.Builder.class);
}
// Construct using io.grafeas.v1.DeploymentOccurrence.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
userEmail_ = "";
deployTime_ = null;
if (deployTimeBuilder_ != null) {
deployTimeBuilder_.dispose();
deployTimeBuilder_ = null;
}
undeployTime_ = null;
if (undeployTimeBuilder_ != null) {
undeployTimeBuilder_.dispose();
undeployTimeBuilder_ = null;
}
config_ = "";
address_ = "";
resourceUri_ = com.google.protobuf.LazyStringArrayList.emptyList();
platform_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.grafeas.v1.Deployment.internal_static_grafeas_v1_DeploymentOccurrence_descriptor;
}
@java.lang.Override
public io.grafeas.v1.DeploymentOccurrence getDefaultInstanceForType() {
return io.grafeas.v1.DeploymentOccurrence.getDefaultInstance();
}
@java.lang.Override
public io.grafeas.v1.DeploymentOccurrence build() {
io.grafeas.v1.DeploymentOccurrence result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grafeas.v1.DeploymentOccurrence buildPartial() {
io.grafeas.v1.DeploymentOccurrence result = new io.grafeas.v1.DeploymentOccurrence(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(io.grafeas.v1.DeploymentOccurrence result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.userEmail_ = userEmail_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.deployTime_ = deployTimeBuilder_ == null ? deployTime_ : deployTimeBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.undeployTime_ =
undeployTimeBuilder_ == null ? undeployTime_ : undeployTimeBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.config_ = config_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.address_ = address_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
resourceUri_.makeImmutable();
result.resourceUri_ = resourceUri_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.platform_ = platform_;
}
}
@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 io.grafeas.v1.DeploymentOccurrence) {
return mergeFrom((io.grafeas.v1.DeploymentOccurrence) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grafeas.v1.DeploymentOccurrence other) {
if (other == io.grafeas.v1.DeploymentOccurrence.getDefaultInstance()) return this;
if (!other.getUserEmail().isEmpty()) {
userEmail_ = other.userEmail_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasDeployTime()) {
mergeDeployTime(other.getDeployTime());
}
if (other.hasUndeployTime()) {
mergeUndeployTime(other.getUndeployTime());
}
if (!other.getConfig().isEmpty()) {
config_ = other.config_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.resourceUri_.isEmpty()) {
if (resourceUri_.isEmpty()) {
resourceUri_ = other.resourceUri_;
bitField0_ |= 0x00000020;
} else {
ensureResourceUriIsMutable();
resourceUri_.addAll(other.resourceUri_);
}
onChanged();
}
if (other.platform_ != 0) {
setPlatformValue(other.getPlatformValue());
}
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:
{
userEmail_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getDeployTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getUndeployTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
config_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
address_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
java.lang.String s = input.readStringRequireUtf8();
ensureResourceUriIsMutable();
resourceUri_.add(s);
break;
} // case 50
case 56:
{
platform_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 56
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 userEmail_ = "";
/**
*
*
*
* Identity of the user that triggered this deployment.
*
*
* string user_email = 1;
*
* @return The userEmail.
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userEmail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Identity of the user that triggered this deployment.
*
*
* string user_email = 1;
*
* @return The bytes for userEmail.
*/
public com.google.protobuf.ByteString getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Identity of the user that triggered this deployment.
*
*
* string user_email = 1;
*
* @param value The userEmail to set.
* @return This builder for chaining.
*/
public Builder setUserEmail(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userEmail_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Identity of the user that triggered this deployment.
*
*
* string user_email = 1;
*
* @return This builder for chaining.
*/
public Builder clearUserEmail() {
userEmail_ = getDefaultInstance().getUserEmail();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Identity of the user that triggered this deployment.
*
*
* string user_email = 1;
*
* @param value The bytes for userEmail to set.
* @return This builder for chaining.
*/
public Builder setUserEmailBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userEmail_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Timestamp deployTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
deployTimeBuilder_;
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*
* @return Whether the deployTime field is set.
*/
public boolean hasDeployTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*
* @return The deployTime.
*/
public com.google.protobuf.Timestamp getDeployTime() {
if (deployTimeBuilder_ == null) {
return deployTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: deployTime_;
} else {
return deployTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*/
public Builder setDeployTime(com.google.protobuf.Timestamp value) {
if (deployTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deployTime_ = value;
} else {
deployTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*/
public Builder setDeployTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (deployTimeBuilder_ == null) {
deployTime_ = builderForValue.build();
} else {
deployTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*/
public Builder mergeDeployTime(com.google.protobuf.Timestamp value) {
if (deployTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& deployTime_ != null
&& deployTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getDeployTimeBuilder().mergeFrom(value);
} else {
deployTime_ = value;
}
} else {
deployTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*/
public Builder clearDeployTime() {
bitField0_ = (bitField0_ & ~0x00000002);
deployTime_ = null;
if (deployTimeBuilder_ != null) {
deployTimeBuilder_.dispose();
deployTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*/
public com.google.protobuf.Timestamp.Builder getDeployTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDeployTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*/
public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() {
if (deployTimeBuilder_ != null) {
return deployTimeBuilder_.getMessageOrBuilder();
} else {
return deployTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: deployTime_;
}
}
/**
*
*
*
* Required. Beginning of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp deploy_time = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getDeployTimeFieldBuilder() {
if (deployTimeBuilder_ == null) {
deployTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getDeployTime(), getParentForChildren(), isClean());
deployTime_ = null;
}
return deployTimeBuilder_;
}
private com.google.protobuf.Timestamp undeployTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
undeployTimeBuilder_;
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*
* @return Whether the undeployTime field is set.
*/
public boolean hasUndeployTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*
* @return The undeployTime.
*/
public com.google.protobuf.Timestamp getUndeployTime() {
if (undeployTimeBuilder_ == null) {
return undeployTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: undeployTime_;
} else {
return undeployTimeBuilder_.getMessage();
}
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*/
public Builder setUndeployTime(com.google.protobuf.Timestamp value) {
if (undeployTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
undeployTime_ = value;
} else {
undeployTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*/
public Builder setUndeployTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (undeployTimeBuilder_ == null) {
undeployTime_ = builderForValue.build();
} else {
undeployTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*/
public Builder mergeUndeployTime(com.google.protobuf.Timestamp value) {
if (undeployTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& undeployTime_ != null
&& undeployTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUndeployTimeBuilder().mergeFrom(value);
} else {
undeployTime_ = value;
}
} else {
undeployTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*/
public Builder clearUndeployTime() {
bitField0_ = (bitField0_ & ~0x00000004);
undeployTime_ = null;
if (undeployTimeBuilder_ != null) {
undeployTimeBuilder_.dispose();
undeployTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*/
public com.google.protobuf.Timestamp.Builder getUndeployTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getUndeployTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*/
public com.google.protobuf.TimestampOrBuilder getUndeployTimeOrBuilder() {
if (undeployTimeBuilder_ != null) {
return undeployTimeBuilder_.getMessageOrBuilder();
} else {
return undeployTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: undeployTime_;
}
}
/**
*
*
*
* End of the lifetime of this deployment.
*
*
* .google.protobuf.Timestamp undeploy_time = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUndeployTimeFieldBuilder() {
if (undeployTimeBuilder_ == null) {
undeployTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUndeployTime(), getParentForChildren(), isClean());
undeployTime_ = null;
}
return undeployTimeBuilder_;
}
private java.lang.Object config_ = "";
/**
*
*
*
* Configuration used to create this deployment.
*
*
* string config = 4;
*
* @return The config.
*/
public java.lang.String getConfig() {
java.lang.Object ref = config_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
config_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Configuration used to create this deployment.
*
*
* string config = 4;
*
* @return The bytes for config.
*/
public com.google.protobuf.ByteString getConfigBytes() {
java.lang.Object ref = config_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
config_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Configuration used to create this deployment.
*
*
* string config = 4;
*
* @param value The config to set.
* @return This builder for chaining.
*/
public Builder setConfig(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Configuration used to create this deployment.
*
*
* string config = 4;
*
* @return This builder for chaining.
*/
public Builder clearConfig() {
config_ = getDefaultInstance().getConfig();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Configuration used to create this deployment.
*
*
* string config = 4;
*
* @param value The bytes for config to set.
* @return This builder for chaining.
*/
public Builder setConfigBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
config_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object address_ = "";
/**
*
*
*
* Address of the runtime element hosting this deployment.
*
*
* string address = 5;
*
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Address of the runtime element hosting this deployment.
*
*
* string address = 5;
*
* @return The bytes for address.
*/
public com.google.protobuf.ByteString getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Address of the runtime element hosting this deployment.
*
*
* string address = 5;
*
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Address of the runtime element hosting this deployment.
*
*
* string address = 5;
*
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Address of the runtime element hosting this deployment.
*
*
* string address = 5;
*
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList resourceUri_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureResourceUriIsMutable() {
if (!resourceUri_.isModifiable()) {
resourceUri_ = new com.google.protobuf.LazyStringArrayList(resourceUri_);
}
bitField0_ |= 0x00000020;
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @return A list containing the resourceUri.
*/
public com.google.protobuf.ProtocolStringList getResourceUriList() {
resourceUri_.makeImmutable();
return resourceUri_;
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @return The count of resourceUri.
*/
public int getResourceUriCount() {
return resourceUri_.size();
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @param index The index of the element to return.
* @return The resourceUri at the given index.
*/
public java.lang.String getResourceUri(int index) {
return resourceUri_.get(index);
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @param index The index of the value to return.
* @return The bytes of the resourceUri at the given index.
*/
public com.google.protobuf.ByteString getResourceUriBytes(int index) {
return resourceUri_.getByteString(index);
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @param index The index to set the value at.
* @param value The resourceUri to set.
* @return This builder for chaining.
*/
public Builder setResourceUri(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceUriIsMutable();
resourceUri_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @param value The resourceUri to add.
* @return This builder for chaining.
*/
public Builder addResourceUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceUriIsMutable();
resourceUri_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @param values The resourceUri to add.
* @return This builder for chaining.
*/
public Builder addAllResourceUri(java.lang.Iterable values) {
ensureResourceUriIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceUri_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @return This builder for chaining.
*/
public Builder clearResourceUri() {
resourceUri_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
;
onChanged();
return this;
}
/**
*
*
*
* Output only. Resource URI for the artifact being deployed taken from
* the deployable field with the same name.
*
*
* repeated string resource_uri = 6;
*
* @param value The bytes of the resourceUri to add.
* @return This builder for chaining.
*/
public Builder addResourceUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureResourceUriIsMutable();
resourceUri_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private int platform_ = 0;
/**
*
*
*
* Platform hosting this deployment.
*
*
* .grafeas.v1.DeploymentOccurrence.Platform platform = 7;
*
* @return The enum numeric value on the wire for platform.
*/
@java.lang.Override
public int getPlatformValue() {
return platform_;
}
/**
*
*
*
* Platform hosting this deployment.
*
*
* .grafeas.v1.DeploymentOccurrence.Platform platform = 7;
*
* @param value The enum numeric value on the wire for platform to set.
* @return This builder for chaining.
*/
public Builder setPlatformValue(int value) {
platform_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Platform hosting this deployment.
*
*
* .grafeas.v1.DeploymentOccurrence.Platform platform = 7;
*
* @return The platform.
*/
@java.lang.Override
public io.grafeas.v1.DeploymentOccurrence.Platform getPlatform() {
io.grafeas.v1.DeploymentOccurrence.Platform result =
io.grafeas.v1.DeploymentOccurrence.Platform.forNumber(platform_);
return result == null ? io.grafeas.v1.DeploymentOccurrence.Platform.UNRECOGNIZED : result;
}
/**
*
*
*
* Platform hosting this deployment.
*
*
* .grafeas.v1.DeploymentOccurrence.Platform platform = 7;
*
* @param value The platform to set.
* @return This builder for chaining.
*/
public Builder setPlatform(io.grafeas.v1.DeploymentOccurrence.Platform value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
platform_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Platform hosting this deployment.
*
*
* .grafeas.v1.DeploymentOccurrence.Platform platform = 7;
*
* @return This builder for chaining.
*/
public Builder clearPlatform() {
bitField0_ = (bitField0_ & ~0x00000040);
platform_ = 0;
onChanged();
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:grafeas.v1.DeploymentOccurrence)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.DeploymentOccurrence)
private static final io.grafeas.v1.DeploymentOccurrence DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.DeploymentOccurrence();
}
public static io.grafeas.v1.DeploymentOccurrence getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentOccurrence 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 io.grafeas.v1.DeploymentOccurrence getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}