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

com.google.cloud.deploy.v1.SkaffoldVersion Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 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/cloud/deploy/v1/cloud_deploy.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.deploy.v1;

/**
 *
 *
 * 
 * Details of a supported Skaffold version.
 * 
* * Protobuf type {@code google.cloud.deploy.v1.SkaffoldVersion} */ public final class SkaffoldVersion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.SkaffoldVersion) SkaffoldVersionOrBuilder { private static final long serialVersionUID = 0L; // Use SkaffoldVersion.newBuilder() to construct. private SkaffoldVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SkaffoldVersion() { version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SkaffoldVersion(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.deploy.v1.CloudDeployProto .internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.deploy.v1.CloudDeployProto .internal_static_google_cloud_deploy_v1_SkaffoldVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.deploy.v1.SkaffoldVersion.class, com.google.cloud.deploy.v1.SkaffoldVersion.Builder.class); } private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** * * *
   * Release version number. For example, "1.20.3".
   * 
* * string version = 1; * * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** * * *
   * Release version number. For example, "1.20.3".
   * 
* * string version = 1; * * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAINTENANCE_MODE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp maintenanceModeTime_; /** * * *
   * The time at which this version of Skaffold will enter maintenance mode.
   * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; * * @return Whether the maintenanceModeTime field is set. */ @java.lang.Override public boolean hasMaintenanceModeTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The time at which this version of Skaffold will enter maintenance mode.
   * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; * * @return The maintenanceModeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMaintenanceModeTime() { return maintenanceModeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maintenanceModeTime_; } /** * * *
   * The time at which this version of Skaffold will enter maintenance mode.
   * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() { return maintenanceModeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maintenanceModeTime_; } public static final int SUPPORT_EXPIRATION_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp supportExpirationTime_; /** * * *
   * The time at which this version of Skaffold will no longer be supported.
   * 
* * .google.protobuf.Timestamp support_expiration_time = 4; * * @return Whether the supportExpirationTime field is set. */ @java.lang.Override public boolean hasSupportExpirationTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The time at which this version of Skaffold will no longer be supported.
   * 
* * .google.protobuf.Timestamp support_expiration_time = 4; * * @return The supportExpirationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSupportExpirationTime() { return supportExpirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : supportExpirationTime_; } /** * * *
   * The time at which this version of Skaffold will no longer be supported.
   * 
* * .google.protobuf.Timestamp support_expiration_time = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSupportExpirationTimeOrBuilder() { return supportExpirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : supportExpirationTime_; } public static final int SUPPORT_END_DATE_FIELD_NUMBER = 2; private com.google.type.Date supportEndDate_; /** * * *
   * Date when this version is expected to no longer be supported.
   * 
* * .google.type.Date support_end_date = 2; * * @return Whether the supportEndDate field is set. */ @java.lang.Override public boolean hasSupportEndDate() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Date when this version is expected to no longer be supported.
   * 
* * .google.type.Date support_end_date = 2; * * @return The supportEndDate. */ @java.lang.Override public com.google.type.Date getSupportEndDate() { return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; } /** * * *
   * Date when this version is expected to no longer be supported.
   * 
* * .google.type.Date support_end_date = 2; */ @java.lang.Override public com.google.type.DateOrBuilder getSupportEndDateOrBuilder() { return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; } 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(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(2, getSupportEndDate()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getMaintenanceModeTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getSupportExpirationTime()); } 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(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSupportEndDate()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaintenanceModeTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSupportExpirationTime()); } 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.cloud.deploy.v1.SkaffoldVersion)) { return super.equals(obj); } com.google.cloud.deploy.v1.SkaffoldVersion other = (com.google.cloud.deploy.v1.SkaffoldVersion) obj; if (!getVersion().equals(other.getVersion())) return false; if (hasMaintenanceModeTime() != other.hasMaintenanceModeTime()) return false; if (hasMaintenanceModeTime()) { if (!getMaintenanceModeTime().equals(other.getMaintenanceModeTime())) return false; } if (hasSupportExpirationTime() != other.hasSupportExpirationTime()) return false; if (hasSupportExpirationTime()) { if (!getSupportExpirationTime().equals(other.getSupportExpirationTime())) return false; } if (hasSupportEndDate() != other.hasSupportEndDate()) return false; if (hasSupportEndDate()) { if (!getSupportEndDate().equals(other.getSupportEndDate())) 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) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); if (hasMaintenanceModeTime()) { hash = (37 * hash) + MAINTENANCE_MODE_TIME_FIELD_NUMBER; hash = (53 * hash) + getMaintenanceModeTime().hashCode(); } if (hasSupportExpirationTime()) { hash = (37 * hash) + SUPPORT_EXPIRATION_TIME_FIELD_NUMBER; hash = (53 * hash) + getSupportExpirationTime().hashCode(); } if (hasSupportEndDate()) { hash = (37 * hash) + SUPPORT_END_DATE_FIELD_NUMBER; hash = (53 * hash) + getSupportEndDate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.deploy.v1.SkaffoldVersion 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.cloud.deploy.v1.SkaffoldVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.SkaffoldVersion 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.cloud.deploy.v1.SkaffoldVersion parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.SkaffoldVersion 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.cloud.deploy.v1.SkaffoldVersion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.SkaffoldVersion 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.cloud.deploy.v1.SkaffoldVersion 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; } /** * * *
   * Details of a supported Skaffold version.
   * 
* * Protobuf type {@code google.cloud.deploy.v1.SkaffoldVersion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.SkaffoldVersion) com.google.cloud.deploy.v1.SkaffoldVersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.deploy.v1.CloudDeployProto .internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.deploy.v1.CloudDeployProto .internal_static_google_cloud_deploy_v1_SkaffoldVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.deploy.v1.SkaffoldVersion.class, com.google.cloud.deploy.v1.SkaffoldVersion.Builder.class); } // Construct using com.google.cloud.deploy.v1.SkaffoldVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMaintenanceModeTimeFieldBuilder(); getSupportExpirationTimeFieldBuilder(); getSupportEndDateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; version_ = ""; maintenanceModeTime_ = null; if (maintenanceModeTimeBuilder_ != null) { maintenanceModeTimeBuilder_.dispose(); maintenanceModeTimeBuilder_ = null; } supportExpirationTime_ = null; if (supportExpirationTimeBuilder_ != null) { supportExpirationTimeBuilder_.dispose(); supportExpirationTimeBuilder_ = null; } supportEndDate_ = null; if (supportEndDateBuilder_ != null) { supportEndDateBuilder_.dispose(); supportEndDateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.deploy.v1.CloudDeployProto .internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor; } @java.lang.Override public com.google.cloud.deploy.v1.SkaffoldVersion getDefaultInstanceForType() { return com.google.cloud.deploy.v1.SkaffoldVersion.getDefaultInstance(); } @java.lang.Override public com.google.cloud.deploy.v1.SkaffoldVersion build() { com.google.cloud.deploy.v1.SkaffoldVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.deploy.v1.SkaffoldVersion buildPartial() { com.google.cloud.deploy.v1.SkaffoldVersion result = new com.google.cloud.deploy.v1.SkaffoldVersion(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.deploy.v1.SkaffoldVersion result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.version_ = version_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.maintenanceModeTime_ = maintenanceModeTimeBuilder_ == null ? maintenanceModeTime_ : maintenanceModeTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.supportExpirationTime_ = supportExpirationTimeBuilder_ == null ? supportExpirationTime_ : supportExpirationTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.supportEndDate_ = supportEndDateBuilder_ == null ? supportEndDate_ : supportEndDateBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.cloud.deploy.v1.SkaffoldVersion) { return mergeFrom((com.google.cloud.deploy.v1.SkaffoldVersion) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.deploy.v1.SkaffoldVersion other) { if (other == com.google.cloud.deploy.v1.SkaffoldVersion.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasMaintenanceModeTime()) { mergeMaintenanceModeTime(other.getMaintenanceModeTime()); } if (other.hasSupportExpirationTime()) { mergeSupportExpirationTime(other.getSupportExpirationTime()); } if (other.hasSupportEndDate()) { mergeSupportEndDate(other.getSupportEndDate()); } 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: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSupportEndDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 18 case 26: { input.readMessage( getMaintenanceModeTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 26 case 34: { input.readMessage( getSupportExpirationTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 34 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 version_ = ""; /** * * *
     * Release version number. For example, "1.20.3".
     * 
* * string version = 1; * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Release version number. For example, "1.20.3".
     * 
* * string version = 1; * * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Release version number. For example, "1.20.3".
     * 
* * string version = 1; * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Release version number. For example, "1.20.3".
     * 
* * string version = 1; * * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Release version number. For example, "1.20.3".
     * 
* * string version = 1; * * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Timestamp maintenanceModeTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> maintenanceModeTimeBuilder_; /** * * *
     * The time at which this version of Skaffold will enter maintenance mode.
     * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; * * @return Whether the maintenanceModeTime field is set. */ public boolean hasMaintenanceModeTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The time at which this version of Skaffold will enter maintenance mode.
     * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; * * @return The maintenanceModeTime. */ public com.google.protobuf.Timestamp getMaintenanceModeTime() { if (maintenanceModeTimeBuilder_ == null) { return maintenanceModeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maintenanceModeTime_; } else { return maintenanceModeTimeBuilder_.getMessage(); } } /** * * *
     * The time at which this version of Skaffold will enter maintenance mode.
     * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; */ public Builder setMaintenanceModeTime(com.google.protobuf.Timestamp value) { if (maintenanceModeTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maintenanceModeTime_ = value; } else { maintenanceModeTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The time at which this version of Skaffold will enter maintenance mode.
     * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; */ public Builder setMaintenanceModeTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (maintenanceModeTimeBuilder_ == null) { maintenanceModeTime_ = builderForValue.build(); } else { maintenanceModeTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The time at which this version of Skaffold will enter maintenance mode.
     * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; */ public Builder mergeMaintenanceModeTime(com.google.protobuf.Timestamp value) { if (maintenanceModeTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && maintenanceModeTime_ != null && maintenanceModeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getMaintenanceModeTimeBuilder().mergeFrom(value); } else { maintenanceModeTime_ = value; } } else { maintenanceModeTimeBuilder_.mergeFrom(value); } if (maintenanceModeTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * The time at which this version of Skaffold will enter maintenance mode.
     * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; */ public Builder clearMaintenanceModeTime() { bitField0_ = (bitField0_ & ~0x00000002); maintenanceModeTime_ = null; if (maintenanceModeTimeBuilder_ != null) { maintenanceModeTimeBuilder_.dispose(); maintenanceModeTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The time at which this version of Skaffold will enter maintenance mode.
     * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; */ public com.google.protobuf.Timestamp.Builder getMaintenanceModeTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMaintenanceModeTimeFieldBuilder().getBuilder(); } /** * * *
     * The time at which this version of Skaffold will enter maintenance mode.
     * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; */ public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() { if (maintenanceModeTimeBuilder_ != null) { return maintenanceModeTimeBuilder_.getMessageOrBuilder(); } else { return maintenanceModeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : maintenanceModeTime_; } } /** * * *
     * The time at which this version of Skaffold will enter maintenance mode.
     * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMaintenanceModeTimeFieldBuilder() { if (maintenanceModeTimeBuilder_ == null) { maintenanceModeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getMaintenanceModeTime(), getParentForChildren(), isClean()); maintenanceModeTime_ = null; } return maintenanceModeTimeBuilder_; } private com.google.protobuf.Timestamp supportExpirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> supportExpirationTimeBuilder_; /** * * *
     * The time at which this version of Skaffold will no longer be supported.
     * 
* * .google.protobuf.Timestamp support_expiration_time = 4; * * @return Whether the supportExpirationTime field is set. */ public boolean hasSupportExpirationTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * The time at which this version of Skaffold will no longer be supported.
     * 
* * .google.protobuf.Timestamp support_expiration_time = 4; * * @return The supportExpirationTime. */ public com.google.protobuf.Timestamp getSupportExpirationTime() { if (supportExpirationTimeBuilder_ == null) { return supportExpirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : supportExpirationTime_; } else { return supportExpirationTimeBuilder_.getMessage(); } } /** * * *
     * The time at which this version of Skaffold will no longer be supported.
     * 
* * .google.protobuf.Timestamp support_expiration_time = 4; */ public Builder setSupportExpirationTime(com.google.protobuf.Timestamp value) { if (supportExpirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } supportExpirationTime_ = value; } else { supportExpirationTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The time at which this version of Skaffold will no longer be supported.
     * 
* * .google.protobuf.Timestamp support_expiration_time = 4; */ public Builder setSupportExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (supportExpirationTimeBuilder_ == null) { supportExpirationTime_ = builderForValue.build(); } else { supportExpirationTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The time at which this version of Skaffold will no longer be supported.
     * 
* * .google.protobuf.Timestamp support_expiration_time = 4; */ public Builder mergeSupportExpirationTime(com.google.protobuf.Timestamp value) { if (supportExpirationTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && supportExpirationTime_ != null && supportExpirationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSupportExpirationTimeBuilder().mergeFrom(value); } else { supportExpirationTime_ = value; } } else { supportExpirationTimeBuilder_.mergeFrom(value); } if (supportExpirationTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * The time at which this version of Skaffold will no longer be supported.
     * 
* * .google.protobuf.Timestamp support_expiration_time = 4; */ public Builder clearSupportExpirationTime() { bitField0_ = (bitField0_ & ~0x00000004); supportExpirationTime_ = null; if (supportExpirationTimeBuilder_ != null) { supportExpirationTimeBuilder_.dispose(); supportExpirationTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The time at which this version of Skaffold will no longer be supported.
     * 
* * .google.protobuf.Timestamp support_expiration_time = 4; */ public com.google.protobuf.Timestamp.Builder getSupportExpirationTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSupportExpirationTimeFieldBuilder().getBuilder(); } /** * * *
     * The time at which this version of Skaffold will no longer be supported.
     * 
* * .google.protobuf.Timestamp support_expiration_time = 4; */ public com.google.protobuf.TimestampOrBuilder getSupportExpirationTimeOrBuilder() { if (supportExpirationTimeBuilder_ != null) { return supportExpirationTimeBuilder_.getMessageOrBuilder(); } else { return supportExpirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : supportExpirationTime_; } } /** * * *
     * The time at which this version of Skaffold will no longer be supported.
     * 
* * .google.protobuf.Timestamp support_expiration_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSupportExpirationTimeFieldBuilder() { if (supportExpirationTimeBuilder_ == null) { supportExpirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getSupportExpirationTime(), getParentForChildren(), isClean()); supportExpirationTime_ = null; } return supportExpirationTimeBuilder_; } private com.google.type.Date supportEndDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> supportEndDateBuilder_; /** * * *
     * Date when this version is expected to no longer be supported.
     * 
* * .google.type.Date support_end_date = 2; * * @return Whether the supportEndDate field is set. */ public boolean hasSupportEndDate() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Date when this version is expected to no longer be supported.
     * 
* * .google.type.Date support_end_date = 2; * * @return The supportEndDate. */ public com.google.type.Date getSupportEndDate() { if (supportEndDateBuilder_ == null) { return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; } else { return supportEndDateBuilder_.getMessage(); } } /** * * *
     * Date when this version is expected to no longer be supported.
     * 
* * .google.type.Date support_end_date = 2; */ public Builder setSupportEndDate(com.google.type.Date value) { if (supportEndDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } supportEndDate_ = value; } else { supportEndDateBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Date when this version is expected to no longer be supported.
     * 
* * .google.type.Date support_end_date = 2; */ public Builder setSupportEndDate(com.google.type.Date.Builder builderForValue) { if (supportEndDateBuilder_ == null) { supportEndDate_ = builderForValue.build(); } else { supportEndDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Date when this version is expected to no longer be supported.
     * 
* * .google.type.Date support_end_date = 2; */ public Builder mergeSupportEndDate(com.google.type.Date value) { if (supportEndDateBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && supportEndDate_ != null && supportEndDate_ != com.google.type.Date.getDefaultInstance()) { getSupportEndDateBuilder().mergeFrom(value); } else { supportEndDate_ = value; } } else { supportEndDateBuilder_.mergeFrom(value); } if (supportEndDate_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Date when this version is expected to no longer be supported.
     * 
* * .google.type.Date support_end_date = 2; */ public Builder clearSupportEndDate() { bitField0_ = (bitField0_ & ~0x00000008); supportEndDate_ = null; if (supportEndDateBuilder_ != null) { supportEndDateBuilder_.dispose(); supportEndDateBuilder_ = null; } onChanged(); return this; } /** * * *
     * Date when this version is expected to no longer be supported.
     * 
* * .google.type.Date support_end_date = 2; */ public com.google.type.Date.Builder getSupportEndDateBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSupportEndDateFieldBuilder().getBuilder(); } /** * * *
     * Date when this version is expected to no longer be supported.
     * 
* * .google.type.Date support_end_date = 2; */ public com.google.type.DateOrBuilder getSupportEndDateOrBuilder() { if (supportEndDateBuilder_ != null) { return supportEndDateBuilder_.getMessageOrBuilder(); } else { return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; } } /** * * *
     * Date when this version is expected to no longer be supported.
     * 
* * .google.type.Date support_end_date = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getSupportEndDateFieldBuilder() { if (supportEndDateBuilder_ == null) { supportEndDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( getSupportEndDate(), getParentForChildren(), isClean()); supportEndDate_ = null; } return supportEndDateBuilder_; } @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.cloud.deploy.v1.SkaffoldVersion) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.SkaffoldVersion) private static final com.google.cloud.deploy.v1.SkaffoldVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.SkaffoldVersion(); } public static com.google.cloud.deploy.v1.SkaffoldVersion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SkaffoldVersion 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.cloud.deploy.v1.SkaffoldVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy