diff --git a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/package-info.java b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/package-info.java index 57e71b31..e8760ae2 100644 --- a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/package-info.java +++ b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Cloud OS Config API. + * A client to OS Config API. * *
The interfaces provided are listed below, along with usage samples. * diff --git a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/GrpcOsConfigServiceCallableFactory.java b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/GrpcOsConfigServiceCallableFactory.java index 197cf479..9d95aaae 100644 --- a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/GrpcOsConfigServiceCallableFactory.java +++ b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/GrpcOsConfigServiceCallableFactory.java @@ -36,7 +36,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC callable factory implementation for Cloud OS Config API. + * gRPC callable factory implementation for OS Config API. * *
This class is for advanced usage. */ diff --git a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/GrpcOsConfigServiceStub.java b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/GrpcOsConfigServiceStub.java index f42ba237..7f441ecf 100644 --- a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/GrpcOsConfigServiceStub.java +++ b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/GrpcOsConfigServiceStub.java @@ -52,7 +52,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Cloud OS Config API. + * gRPC stub implementation for OS Config API. * *
This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStub.java b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStub.java index 1037f5ca..7b5a302f 100644 --- a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStub.java +++ b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStub.java @@ -41,7 +41,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Cloud OS Config API. + * Base stub class for OS Config API. * *
This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/proto-google-cloud-os-config-v1/clirr-ignored-differences.xml b/proto-google-cloud-os-config-v1/clirr-ignored-differences.xml
new file mode 100644
index 00000000..069d6dc0
--- /dev/null
+++ b/proto-google-cloud-os-config-v1/clirr-ignored-differences.xml
@@ -0,0 +1,19 @@
+
+
+
+ * Specifies a fixed value. + *+ * + *
int32 fixed = 1;
+ *
+ * @return The fixed.
+ */
+ int getFixed();
+
+ /**
+ *
+ *
+ * + * Specifies the relative value defined as a percentage, which will be + * multiplied by a reference value. + *+ * + *
int32 percent = 2;
+ *
+ * @return The percent.
+ */
+ int getPercent();
+
+ public com.google.cloud.osconfig.v1.Common.FixedOrPercent.ModeCase getModeCase();
+ }
+ /**
+ *
+ *
+ * + * Message encapsulating a value that can be either absolute ("fixed") or + * relative ("percent") to a value. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.FixedOrPercent} + */ + public static final class FixedOrPercent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.FixedOrPercent) + FixedOrPercentOrBuilder { + private static final long serialVersionUID = 0L; + // Use FixedOrPercent.newBuilder() to construct. + private FixedOrPercent(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FixedOrPercent() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FixedOrPercent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FixedOrPercent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + modeCase_ = 1; + mode_ = input.readInt32(); + break; + } + case 16: + { + modeCase_ = 2; + mode_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Common + .internal_static_google_cloud_osconfig_v1_FixedOrPercent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Common + .internal_static_google_cloud_osconfig_v1_FixedOrPercent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Common.FixedOrPercent.class, + com.google.cloud.osconfig.v1.Common.FixedOrPercent.Builder.class); + } + + private int modeCase_ = 0; + private java.lang.Object mode_; + + public enum ModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIXED(1), + PERCENT(2), + MODE_NOT_SET(0); + private final int value; + + private ModeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ModeCase valueOf(int value) { + return forNumber(value); + } + + public static ModeCase forNumber(int value) { + switch (value) { + case 1: + return FIXED; + case 2: + return PERCENT; + case 0: + return MODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ModeCase getModeCase() { + return ModeCase.forNumber(modeCase_); + } + + public static final int FIXED_FIELD_NUMBER = 1; + /** + * + * + *
+ * Specifies a fixed value. + *+ * + *
int32 fixed = 1;
+ *
+ * @return The fixed.
+ */
+ @java.lang.Override
+ public int getFixed() {
+ if (modeCase_ == 1) {
+ return (java.lang.Integer) mode_;
+ }
+ return 0;
+ }
+
+ public static final int PERCENT_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Specifies the relative value defined as a percentage, which will be + * multiplied by a reference value. + *+ * + *
int32 percent = 2;
+ *
+ * @return The percent.
+ */
+ @java.lang.Override
+ public int getPercent() {
+ if (modeCase_ == 2) {
+ return (java.lang.Integer) mode_;
+ }
+ return 0;
+ }
+
+ 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 (modeCase_ == 1) {
+ output.writeInt32(1, (int) ((java.lang.Integer) mode_));
+ }
+ if (modeCase_ == 2) {
+ output.writeInt32(2, (int) ((java.lang.Integer) mode_));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (modeCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt32Size(
+ 1, (int) ((java.lang.Integer) mode_));
+ }
+ if (modeCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt32Size(
+ 2, (int) ((java.lang.Integer) mode_));
+ }
+ size += unknownFields.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.osconfig.v1.Common.FixedOrPercent)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent other =
+ (com.google.cloud.osconfig.v1.Common.FixedOrPercent) obj;
+
+ if (!getModeCase().equals(other.getModeCase())) return false;
+ switch (modeCase_) {
+ case 1:
+ if (getFixed() != other.getFixed()) return false;
+ break;
+ case 2:
+ if (getPercent() != other.getPercent()) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (modeCase_) {
+ case 1:
+ hash = (37 * hash) + FIXED_FIELD_NUMBER;
+ hash = (53 * hash) + getFixed();
+ break;
+ case 2:
+ hash = (37 * hash) + PERCENT_FIELD_NUMBER;
+ hash = (53 * hash) + getPercent();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.Common.FixedOrPercent parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Common.FixedOrPercent 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.osconfig.v1.Common.FixedOrPercent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Common.FixedOrPercent 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.osconfig.v1.Common.FixedOrPercent parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Common.FixedOrPercent parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.Common.FixedOrPercent parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Common.FixedOrPercent 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.osconfig.v1.Common.FixedOrPercent parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Common.FixedOrPercent 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.osconfig.v1.Common.FixedOrPercent parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Common.FixedOrPercent 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.osconfig.v1.Common.FixedOrPercent 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;
+ }
+ /**
+ *
+ *
+ * + * Message encapsulating a value that can be either absolute ("fixed") or + * relative ("percent") to a value. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.FixedOrPercent} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Specifies a fixed value. + *+ * + *
int32 fixed = 1;
+ *
+ * @return The fixed.
+ */
+ public int getFixed() {
+ if (modeCase_ == 1) {
+ return (java.lang.Integer) mode_;
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * Specifies a fixed value. + *+ * + *
int32 fixed = 1;
+ *
+ * @param value The fixed to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFixed(int value) {
+ modeCase_ = 1;
+ mode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Specifies a fixed value. + *+ * + *
int32 fixed = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFixed() {
+ if (modeCase_ == 1) {
+ modeCase_ = 0;
+ mode_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Specifies the relative value defined as a percentage, which will be + * multiplied by a reference value. + *+ * + *
int32 percent = 2;
+ *
+ * @return The percent.
+ */
+ public int getPercent() {
+ if (modeCase_ == 2) {
+ return (java.lang.Integer) mode_;
+ }
+ return 0;
+ }
+ /**
+ *
+ *
+ * + * Specifies the relative value defined as a percentage, which will be + * multiplied by a reference value. + *+ * + *
int32 percent = 2;
+ *
+ * @param value The percent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPercent(int value) {
+ modeCase_ = 2;
+ mode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Specifies the relative value defined as a percentage, which will be + * multiplied by a reference value. + *+ * + *
int32 percent = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPercent() {
+ if (modeCase_ == 2) {
+ modeCase_ = 0;
+ mode_ = null;
+ 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:google.cloud.osconfig.v1.FixedOrPercent)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.FixedOrPercent)
+ private static final com.google.cloud.osconfig.v1.Common.FixedOrPercent DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1.Common.FixedOrPercent();
+ }
+
+ public static com.google.cloud.osconfig.v1.Common.FixedOrPercent getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The inventory details of a VM. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory} + */ +public final class Inventory extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory) + InventoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Inventory.newBuilder() to construct. + private Inventory(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Inventory() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Inventory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Inventory( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.osconfig.v1.Inventory.OsInfo.Builder subBuilder = null; + if (osInfo_ != null) { + subBuilder = osInfo_.toBuilder(); + } + osInfo_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.OsInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(osInfo_); + osInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = + com.google.protobuf.MapField.newMapField(ItemsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.osconfig.v1.Inventory.Item> + items__ = + input.readMessage( + ItemsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + items_.getMutableMap().put(items__.getKey(), items__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetItems(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.class, + com.google.cloud.osconfig.v1.Inventory.Builder.class); + } + + public interface OsInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1.Inventory.OsInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * The VM hostname. + *+ * + *
string hostname = 9;
+ *
+ * @return The hostname.
+ */
+ java.lang.String getHostname();
+ /**
+ *
+ *
+ * + * The VM hostname. + *+ * + *
string hostname = 9;
+ *
+ * @return The bytes for hostname.
+ */
+ com.google.protobuf.ByteString getHostnameBytes();
+
+ /**
+ *
+ *
+ * + * The operating system long name. + * For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + * Datacenter'. + *+ * + *
string long_name = 2;
+ *
+ * @return The longName.
+ */
+ java.lang.String getLongName();
+ /**
+ *
+ *
+ * + * The operating system long name. + * For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + * Datacenter'. + *+ * + *
string long_name = 2;
+ *
+ * @return The bytes for longName.
+ */
+ com.google.protobuf.ByteString getLongNameBytes();
+
+ /**
+ *
+ *
+ * + * The operating system short name. + * For example, 'windows' or 'debian'. + *+ * + *
string short_name = 3;
+ *
+ * @return The shortName.
+ */
+ java.lang.String getShortName();
+ /**
+ *
+ *
+ * + * The operating system short name. + * For example, 'windows' or 'debian'. + *+ * + *
string short_name = 3;
+ *
+ * @return The bytes for shortName.
+ */
+ com.google.protobuf.ByteString getShortNameBytes();
+
+ /**
+ *
+ *
+ * + * The version of the operating system. + *+ * + *
string version = 4;
+ *
+ * @return The version.
+ */
+ java.lang.String getVersion();
+ /**
+ *
+ *
+ * + * The version of the operating system. + *+ * + *
string version = 4;
+ *
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+
+ /**
+ *
+ *
+ * + * The system architecture of the operating system. + *+ * + *
string architecture = 5;
+ *
+ * @return The architecture.
+ */
+ java.lang.String getArchitecture();
+ /**
+ *
+ *
+ * + * The system architecture of the operating system. + *+ * + *
string architecture = 5;
+ *
+ * @return The bytes for architecture.
+ */
+ com.google.protobuf.ByteString getArchitectureBytes();
+
+ /**
+ *
+ *
+ * + * The kernel version of the operating system. + *+ * + *
string kernel_version = 6;
+ *
+ * @return The kernelVersion.
+ */
+ java.lang.String getKernelVersion();
+ /**
+ *
+ *
+ * + * The kernel version of the operating system. + *+ * + *
string kernel_version = 6;
+ *
+ * @return The bytes for kernelVersion.
+ */
+ com.google.protobuf.ByteString getKernelVersionBytes();
+
+ /**
+ *
+ *
+ * + * The kernel release of the operating system. + *+ * + *
string kernel_release = 7;
+ *
+ * @return The kernelRelease.
+ */
+ java.lang.String getKernelRelease();
+ /**
+ *
+ *
+ * + * The kernel release of the operating system. + *+ * + *
string kernel_release = 7;
+ *
+ * @return The bytes for kernelRelease.
+ */
+ com.google.protobuf.ByteString getKernelReleaseBytes();
+
+ /**
+ *
+ *
+ * + * The current version of the OS Config agent running on the VM. + *+ * + *
string osconfig_agent_version = 8;
+ *
+ * @return The osconfigAgentVersion.
+ */
+ java.lang.String getOsconfigAgentVersion();
+ /**
+ *
+ *
+ * + * The current version of the OS Config agent running on the VM. + *+ * + *
string osconfig_agent_version = 8;
+ *
+ * @return The bytes for osconfigAgentVersion.
+ */
+ com.google.protobuf.ByteString getOsconfigAgentVersionBytes();
+ }
+ /**
+ *
+ *
+ * + * Operating system information for the VM. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.OsInfo} + */ + public static final class OsInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory.OsInfo) + OsInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use OsInfo.newBuilder() to construct. + private OsInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private OsInfo() { + hostname_ = ""; + longName_ = ""; + shortName_ = ""; + version_ = ""; + architecture_ = ""; + kernelVersion_ = ""; + kernelRelease_ = ""; + osconfigAgentVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OsInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OsInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + longName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + shortName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + architecture_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + kernelVersion_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + kernelRelease_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + osconfigAgentVersion_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + hostname_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_OsInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_OsInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.OsInfo.class, + com.google.cloud.osconfig.v1.Inventory.OsInfo.Builder.class); + } + + public static final int HOSTNAME_FIELD_NUMBER = 9; + private volatile java.lang.Object hostname_; + /** + * + * + *
+ * The VM hostname. + *+ * + *
string hostname = 9;
+ *
+ * @return The hostname.
+ */
+ @java.lang.Override
+ public java.lang.String getHostname() {
+ java.lang.Object ref = hostname_;
+ 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();
+ hostname_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The VM hostname. + *+ * + *
string hostname = 9;
+ *
+ * @return The bytes for hostname.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getHostnameBytes() {
+ java.lang.Object ref = hostname_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ hostname_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LONG_NAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object longName_;
+ /**
+ *
+ *
+ * + * The operating system long name. + * For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + * Datacenter'. + *+ * + *
string long_name = 2;
+ *
+ * @return The longName.
+ */
+ @java.lang.Override
+ public java.lang.String getLongName() {
+ java.lang.Object ref = longName_;
+ 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();
+ longName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The operating system long name. + * For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + * Datacenter'. + *+ * + *
string long_name = 2;
+ *
+ * @return The bytes for longName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLongNameBytes() {
+ java.lang.Object ref = longName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ longName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SHORT_NAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object shortName_;
+ /**
+ *
+ *
+ * + * The operating system short name. + * For example, 'windows' or 'debian'. + *+ * + *
string short_name = 3;
+ *
+ * @return The shortName.
+ */
+ @java.lang.Override
+ public java.lang.String getShortName() {
+ java.lang.Object ref = shortName_;
+ 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();
+ shortName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The operating system short name. + * For example, 'windows' or 'debian'. + *+ * + *
string short_name = 3;
+ *
+ * @return The bytes for shortName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getShortNameBytes() {
+ java.lang.Object ref = shortName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ shortName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 4;
+ private volatile java.lang.Object version_;
+ /**
+ *
+ *
+ * + * The version of the operating system. + *+ * + *
string version = 4;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The version of the operating system. + *+ * + *
string version = 4;
+ *
+ * @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 ARCHITECTURE_FIELD_NUMBER = 5;
+ private volatile java.lang.Object architecture_;
+ /**
+ *
+ *
+ * + * The system architecture of the operating system. + *+ * + *
string architecture = 5;
+ *
+ * @return The architecture.
+ */
+ @java.lang.Override
+ public java.lang.String getArchitecture() {
+ java.lang.Object ref = architecture_;
+ 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();
+ architecture_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The system architecture of the operating system. + *+ * + *
string architecture = 5;
+ *
+ * @return The bytes for architecture.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getArchitectureBytes() {
+ java.lang.Object ref = architecture_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ architecture_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KERNEL_VERSION_FIELD_NUMBER = 6;
+ private volatile java.lang.Object kernelVersion_;
+ /**
+ *
+ *
+ * + * The kernel version of the operating system. + *+ * + *
string kernel_version = 6;
+ *
+ * @return The kernelVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getKernelVersion() {
+ java.lang.Object ref = kernelVersion_;
+ 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();
+ kernelVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The kernel version of the operating system. + *+ * + *
string kernel_version = 6;
+ *
+ * @return The bytes for kernelVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKernelVersionBytes() {
+ java.lang.Object ref = kernelVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kernelVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KERNEL_RELEASE_FIELD_NUMBER = 7;
+ private volatile java.lang.Object kernelRelease_;
+ /**
+ *
+ *
+ * + * The kernel release of the operating system. + *+ * + *
string kernel_release = 7;
+ *
+ * @return The kernelRelease.
+ */
+ @java.lang.Override
+ public java.lang.String getKernelRelease() {
+ java.lang.Object ref = kernelRelease_;
+ 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();
+ kernelRelease_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The kernel release of the operating system. + *+ * + *
string kernel_release = 7;
+ *
+ * @return The bytes for kernelRelease.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKernelReleaseBytes() {
+ java.lang.Object ref = kernelRelease_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kernelRelease_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OSCONFIG_AGENT_VERSION_FIELD_NUMBER = 8;
+ private volatile java.lang.Object osconfigAgentVersion_;
+ /**
+ *
+ *
+ * + * The current version of the OS Config agent running on the VM. + *+ * + *
string osconfig_agent_version = 8;
+ *
+ * @return The osconfigAgentVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getOsconfigAgentVersion() {
+ java.lang.Object ref = osconfigAgentVersion_;
+ 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();
+ osconfigAgentVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The current version of the OS Config agent running on the VM. + *+ * + *
string osconfig_agent_version = 8;
+ *
+ * @return The bytes for osconfigAgentVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOsconfigAgentVersionBytes() {
+ java.lang.Object ref = osconfigAgentVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osconfigAgentVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getLongNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, longName_);
+ }
+ if (!getShortNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortName_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_);
+ }
+ if (!getArchitectureBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, architecture_);
+ }
+ if (!getKernelVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, kernelVersion_);
+ }
+ if (!getKernelReleaseBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, kernelRelease_);
+ }
+ if (!getOsconfigAgentVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, osconfigAgentVersion_);
+ }
+ if (!getHostnameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, hostname_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getLongNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, longName_);
+ }
+ if (!getShortNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shortName_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_);
+ }
+ if (!getArchitectureBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, architecture_);
+ }
+ if (!getKernelVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, kernelVersion_);
+ }
+ if (!getKernelReleaseBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kernelRelease_);
+ }
+ if (!getOsconfigAgentVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, osconfigAgentVersion_);
+ }
+ if (!getHostnameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, hostname_);
+ }
+ size += unknownFields.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.osconfig.v1.Inventory.OsInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.Inventory.OsInfo other =
+ (com.google.cloud.osconfig.v1.Inventory.OsInfo) obj;
+
+ if (!getHostname().equals(other.getHostname())) return false;
+ if (!getLongName().equals(other.getLongName())) return false;
+ if (!getShortName().equals(other.getShortName())) return false;
+ if (!getVersion().equals(other.getVersion())) return false;
+ if (!getArchitecture().equals(other.getArchitecture())) return false;
+ if (!getKernelVersion().equals(other.getKernelVersion())) return false;
+ if (!getKernelRelease().equals(other.getKernelRelease())) return false;
+ if (!getOsconfigAgentVersion().equals(other.getOsconfigAgentVersion())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + HOSTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getHostname().hashCode();
+ hash = (37 * hash) + LONG_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getLongName().hashCode();
+ hash = (37 * hash) + SHORT_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getShortName().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER;
+ hash = (53 * hash) + getArchitecture().hashCode();
+ hash = (37 * hash) + KERNEL_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getKernelVersion().hashCode();
+ hash = (37 * hash) + KERNEL_RELEASE_FIELD_NUMBER;
+ hash = (53 * hash) + getKernelRelease().hashCode();
+ hash = (37 * hash) + OSCONFIG_AGENT_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getOsconfigAgentVersion().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.OsInfo parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.OsInfo 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.osconfig.v1.Inventory.OsInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.OsInfo 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.osconfig.v1.Inventory.OsInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.OsInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.OsInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.OsInfo 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.osconfig.v1.Inventory.OsInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.OsInfo 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.osconfig.v1.Inventory.OsInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.OsInfo 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.osconfig.v1.Inventory.OsInfo 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;
+ }
+ /**
+ *
+ *
+ * + * Operating system information for the VM. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.OsInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The VM hostname. + *+ * + *
string hostname = 9;
+ *
+ * @return The hostname.
+ */
+ public java.lang.String getHostname() {
+ java.lang.Object ref = hostname_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ hostname_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The VM hostname. + *+ * + *
string hostname = 9;
+ *
+ * @return The bytes for hostname.
+ */
+ public com.google.protobuf.ByteString getHostnameBytes() {
+ java.lang.Object ref = hostname_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ hostname_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The VM hostname. + *+ * + *
string hostname = 9;
+ *
+ * @param value The hostname to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHostname(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ hostname_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The VM hostname. + *+ * + *
string hostname = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearHostname() {
+
+ hostname_ = getDefaultInstance().getHostname();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The VM hostname. + *+ * + *
string hostname = 9;
+ *
+ * @param value The bytes for hostname to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHostnameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ hostname_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object longName_ = "";
+ /**
+ *
+ *
+ * + * The operating system long name. + * For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + * Datacenter'. + *+ * + *
string long_name = 2;
+ *
+ * @return The longName.
+ */
+ public java.lang.String getLongName() {
+ java.lang.Object ref = longName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ longName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The operating system long name. + * For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + * Datacenter'. + *+ * + *
string long_name = 2;
+ *
+ * @return The bytes for longName.
+ */
+ public com.google.protobuf.ByteString getLongNameBytes() {
+ java.lang.Object ref = longName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ longName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The operating system long name. + * For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + * Datacenter'. + *+ * + *
string long_name = 2;
+ *
+ * @param value The longName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLongName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ longName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The operating system long name. + * For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + * Datacenter'. + *+ * + *
string long_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLongName() {
+
+ longName_ = getDefaultInstance().getLongName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The operating system long name. + * For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + * Datacenter'. + *+ * + *
string long_name = 2;
+ *
+ * @param value The bytes for longName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLongNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ longName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object shortName_ = "";
+ /**
+ *
+ *
+ * + * The operating system short name. + * For example, 'windows' or 'debian'. + *+ * + *
string short_name = 3;
+ *
+ * @return The shortName.
+ */
+ public java.lang.String getShortName() {
+ java.lang.Object ref = shortName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ shortName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The operating system short name. + * For example, 'windows' or 'debian'. + *+ * + *
string short_name = 3;
+ *
+ * @return The bytes for shortName.
+ */
+ public com.google.protobuf.ByteString getShortNameBytes() {
+ java.lang.Object ref = shortName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ shortName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The operating system short name. + * For example, 'windows' or 'debian'. + *+ * + *
string short_name = 3;
+ *
+ * @param value The shortName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setShortName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ shortName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The operating system short name. + * For example, 'windows' or 'debian'. + *+ * + *
string short_name = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearShortName() {
+
+ shortName_ = getDefaultInstance().getShortName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The operating system short name. + * For example, 'windows' or 'debian'. + *+ * + *
string short_name = 3;
+ *
+ * @param value The bytes for shortName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setShortNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ shortName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ *
+ *
+ * + * The version of the operating system. + *+ * + *
string version = 4;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The version of the operating system. + *+ * + *
string version = 4;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The version of the operating system. + *+ * + *
string version = 4;
+ *
+ * @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;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The version of the operating system. + *+ * + *
string version = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVersion() {
+
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The version of the operating system. + *+ * + *
string version = 4;
+ *
+ * @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;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object architecture_ = "";
+ /**
+ *
+ *
+ * + * The system architecture of the operating system. + *+ * + *
string architecture = 5;
+ *
+ * @return The architecture.
+ */
+ public java.lang.String getArchitecture() {
+ java.lang.Object ref = architecture_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ architecture_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The system architecture of the operating system. + *+ * + *
string architecture = 5;
+ *
+ * @return The bytes for architecture.
+ */
+ public com.google.protobuf.ByteString getArchitectureBytes() {
+ java.lang.Object ref = architecture_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ architecture_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The system architecture of the operating system. + *+ * + *
string architecture = 5;
+ *
+ * @param value The architecture to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArchitecture(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ architecture_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The system architecture of the operating system. + *+ * + *
string architecture = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearArchitecture() {
+
+ architecture_ = getDefaultInstance().getArchitecture();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The system architecture of the operating system. + *+ * + *
string architecture = 5;
+ *
+ * @param value The bytes for architecture to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArchitectureBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ architecture_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object kernelVersion_ = "";
+ /**
+ *
+ *
+ * + * The kernel version of the operating system. + *+ * + *
string kernel_version = 6;
+ *
+ * @return The kernelVersion.
+ */
+ public java.lang.String getKernelVersion() {
+ java.lang.Object ref = kernelVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ kernelVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The kernel version of the operating system. + *+ * + *
string kernel_version = 6;
+ *
+ * @return The bytes for kernelVersion.
+ */
+ public com.google.protobuf.ByteString getKernelVersionBytes() {
+ java.lang.Object ref = kernelVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kernelVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The kernel version of the operating system. + *+ * + *
string kernel_version = 6;
+ *
+ * @param value The kernelVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKernelVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ kernelVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The kernel version of the operating system. + *+ * + *
string kernel_version = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKernelVersion() {
+
+ kernelVersion_ = getDefaultInstance().getKernelVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The kernel version of the operating system. + *+ * + *
string kernel_version = 6;
+ *
+ * @param value The bytes for kernelVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKernelVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ kernelVersion_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object kernelRelease_ = "";
+ /**
+ *
+ *
+ * + * The kernel release of the operating system. + *+ * + *
string kernel_release = 7;
+ *
+ * @return The kernelRelease.
+ */
+ public java.lang.String getKernelRelease() {
+ java.lang.Object ref = kernelRelease_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ kernelRelease_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The kernel release of the operating system. + *+ * + *
string kernel_release = 7;
+ *
+ * @return The bytes for kernelRelease.
+ */
+ public com.google.protobuf.ByteString getKernelReleaseBytes() {
+ java.lang.Object ref = kernelRelease_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kernelRelease_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The kernel release of the operating system. + *+ * + *
string kernel_release = 7;
+ *
+ * @param value The kernelRelease to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKernelRelease(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ kernelRelease_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The kernel release of the operating system. + *+ * + *
string kernel_release = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKernelRelease() {
+
+ kernelRelease_ = getDefaultInstance().getKernelRelease();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The kernel release of the operating system. + *+ * + *
string kernel_release = 7;
+ *
+ * @param value The bytes for kernelRelease to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKernelReleaseBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ kernelRelease_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object osconfigAgentVersion_ = "";
+ /**
+ *
+ *
+ * + * The current version of the OS Config agent running on the VM. + *+ * + *
string osconfig_agent_version = 8;
+ *
+ * @return The osconfigAgentVersion.
+ */
+ public java.lang.String getOsconfigAgentVersion() {
+ java.lang.Object ref = osconfigAgentVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ osconfigAgentVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The current version of the OS Config agent running on the VM. + *+ * + *
string osconfig_agent_version = 8;
+ *
+ * @return The bytes for osconfigAgentVersion.
+ */
+ public com.google.protobuf.ByteString getOsconfigAgentVersionBytes() {
+ java.lang.Object ref = osconfigAgentVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osconfigAgentVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The current version of the OS Config agent running on the VM. + *+ * + *
string osconfig_agent_version = 8;
+ *
+ * @param value The osconfigAgentVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsconfigAgentVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ osconfigAgentVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The current version of the OS Config agent running on the VM. + *+ * + *
string osconfig_agent_version = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOsconfigAgentVersion() {
+
+ osconfigAgentVersion_ = getDefaultInstance().getOsconfigAgentVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The current version of the OS Config agent running on the VM. + *+ * + *
string osconfig_agent_version = 8;
+ *
+ * @param value The bytes for osconfigAgentVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsconfigAgentVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ osconfigAgentVersion_ = value;
+ 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:google.cloud.osconfig.v1.Inventory.OsInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.Inventory.OsInfo)
+ private static final com.google.cloud.osconfig.v1.Inventory.OsInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1.Inventory.OsInfo();
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.OsInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Identifier for this item, unique across items for this VM. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ *
+ *
+ * + * Identifier for this item, unique across items for this VM. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString getIdBytes();
+
+ /**
+ *
+ *
+ * + * The origin of this inventory item. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
+ *
+ * @return The enum numeric value on the wire for originType.
+ */
+ int getOriginTypeValue();
+ /**
+ *
+ *
+ * + * The origin of this inventory item. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
+ *
+ * @return The originType.
+ */
+ com.google.cloud.osconfig.v1.Inventory.Item.OriginType getOriginType();
+
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ boolean hasUpdateTime();
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ *
+ * @return The updateTime.
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The specific type of inventory, correlating to its specific details. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+ /**
+ *
+ *
+ * + * The specific type of inventory, correlating to its specific details. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
+ *
+ * @return The type.
+ */
+ com.google.cloud.osconfig.v1.Inventory.Item.Type getType();
+
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ *
+ * @return Whether the installedPackage field is set.
+ */
+ boolean hasInstalledPackage();
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ *
+ * @return The installedPackage.
+ */
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage getInstalledPackage();
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ */
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder getInstalledPackageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ *
+ * @return Whether the availablePackage field is set.
+ */
+ boolean hasAvailablePackage();
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ *
+ * @return The availablePackage.
+ */
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage getAvailablePackage();
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ */
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder getAvailablePackageOrBuilder();
+
+ public com.google.cloud.osconfig.v1.Inventory.Item.DetailsCase getDetailsCase();
+ }
+ /**
+ *
+ *
+ * + * A single piece of inventory on a VM. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.Item} + */ + public static final class Item extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory.Item) + ItemOrBuilder { + private static final long serialVersionUID = 0L; + // Use Item.newBuilder() to construct. + private Item(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Item() { + id_ = ""; + originType_ = 0; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Item(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Item( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + originType_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 50: + { + com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder subBuilder = null; + if (detailsCase_ == 6) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 6; + break; + } + case 58: + { + com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder subBuilder = null; + if (detailsCase_ == 7) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 7; + break; + } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_Item_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_Item_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.Item.class, + com.google.cloud.osconfig.v1.Inventory.Item.Builder.class); + } + + /** + * + * + *
+ * The origin of a specific inventory item. + *+ * + * Protobuf enum {@code google.cloud.osconfig.v1.Inventory.Item.OriginType} + */ + public enum OriginType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Invalid. An origin type must be specified. + *+ * + *
ORIGIN_TYPE_UNSPECIFIED = 0;
+ */
+ ORIGIN_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * This inventory item was discovered as the result of the agent + * reporting inventory via the reporting API. + *+ * + *
INVENTORY_REPORT = 1;
+ */
+ INVENTORY_REPORT(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Invalid. An origin type must be specified. + *+ * + *
ORIGIN_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int ORIGIN_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * This inventory item was discovered as the result of the agent + * reporting inventory via the reporting API. + *+ * + *
INVENTORY_REPORT = 1;
+ */
+ public static final int INVENTORY_REPORT_VALUE = 1;
+
+ 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 OriginType 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 OriginType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ORIGIN_TYPE_UNSPECIFIED;
+ case 1:
+ return INVENTORY_REPORT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The different types of inventory that are tracked on a VM. + *+ * + * Protobuf enum {@code google.cloud.osconfig.v1.Inventory.Item.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Invalid. An type must be specified. + *+ * + *
TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * This represents a package that is installed on the VM. + *+ * + *
INSTALLED_PACKAGE = 1;
+ */
+ INSTALLED_PACKAGE(1),
+ /**
+ *
+ *
+ * + * This represents an update that is available for a package. + *+ * + *
AVAILABLE_PACKAGE = 2;
+ */
+ AVAILABLE_PACKAGE(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Invalid. An type must be specified. + *+ * + *
TYPE_UNSPECIFIED = 0;
+ */
+ public static final int TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * This represents a package that is installed on the VM. + *+ * + *
INSTALLED_PACKAGE = 1;
+ */
+ public static final int INSTALLED_PACKAGE_VALUE = 1;
+ /**
+ *
+ *
+ * + * This represents an update that is available for a package. + *+ * + *
AVAILABLE_PACKAGE = 2;
+ */
+ public static final int AVAILABLE_PACKAGE_VALUE = 2;
+
+ 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 Type 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 Type forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TYPE_UNSPECIFIED;
+ case 1:
+ return INSTALLED_PACKAGE;
+ case 2:
+ return AVAILABLE_PACKAGE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Identifier for this item, unique across items for this VM. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ 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();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Identifier for this item, unique across items for this VM. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ORIGIN_TYPE_FIELD_NUMBER = 2;
+ private int originType_;
+ /**
+ *
+ *
+ * + * The origin of this inventory item. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
+ *
+ * @return The enum numeric value on the wire for originType.
+ */
+ @java.lang.Override
+ public int getOriginTypeValue() {
+ return originType_;
+ }
+ /**
+ *
+ *
+ * + * The origin of this inventory item. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
+ *
+ * @return The originType.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.Item.OriginType getOriginType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1.Inventory.Item.OriginType result =
+ com.google.cloud.osconfig.v1.Inventory.Item.OriginType.valueOf(originType_);
+ return result == null
+ ? com.google.cloud.osconfig.v1.Inventory.Item.OriginType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int CREATE_TIME_FIELD_NUMBER = 8;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ *
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ *
+ * @return The createTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return getCreateTime();
+ }
+
+ public static final int UPDATE_TIME_FIELD_NUMBER = 9;
+ private com.google.protobuf.Timestamp updateTime_;
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateTime() {
+ return updateTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ *
+ * @return The updateTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return getUpdateTime();
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 5;
+ private int type_;
+ /**
+ *
+ *
+ * + * The specific type of inventory, correlating to its specific details. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ * + * The specific type of inventory, correlating to its specific details. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.Item.Type getType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1.Inventory.Item.Type result =
+ com.google.cloud.osconfig.v1.Inventory.Item.Type.valueOf(type_);
+ return result == null
+ ? com.google.cloud.osconfig.v1.Inventory.Item.Type.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int INSTALLED_PACKAGE_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ *
+ * @return Whether the installedPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasInstalledPackage() {
+ return detailsCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ *
+ * @return The installedPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackage getInstalledPackage() {
+ if (detailsCase_ == 6) {
+ return (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder
+ getInstalledPackageOrBuilder() {
+ if (detailsCase_ == 6) {
+ return (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+
+ public static final int AVAILABLE_PACKAGE_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ *
+ * @return Whether the availablePackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasAvailablePackage() {
+ return detailsCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ *
+ * @return The availablePackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackage getAvailablePackage() {
+ if (detailsCase_ == 7) {
+ return (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder
+ getAvailablePackageOrBuilder() {
+ if (detailsCase_ == 7) {
+ return (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+
+ 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 (!getIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
+ }
+ if (originType_
+ != com.google.cloud.osconfig.v1.Inventory.Item.OriginType.ORIGIN_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, originType_);
+ }
+ if (type_ != com.google.cloud.osconfig.v1.Inventory.Item.Type.TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(5, type_);
+ }
+ if (detailsCase_ == 6) {
+ output.writeMessage(6, (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_);
+ }
+ if (detailsCase_ == 7) {
+ output.writeMessage(7, (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_);
+ }
+ if (createTime_ != null) {
+ output.writeMessage(8, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ output.writeMessage(9, getUpdateTime());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
+ }
+ if (originType_
+ != com.google.cloud.osconfig.v1.Inventory.Item.OriginType.ORIGIN_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, originType_);
+ }
+ if (type_ != com.google.cloud.osconfig.v1.Inventory.Item.Type.TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_);
+ }
+ if (detailsCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6, (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_);
+ }
+ if (detailsCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_);
+ }
+ if (createTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime());
+ }
+ size += unknownFields.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.osconfig.v1.Inventory.Item)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.Inventory.Item other =
+ (com.google.cloud.osconfig.v1.Inventory.Item) obj;
+
+ if (!getId().equals(other.getId())) return false;
+ if (originType_ != other.originType_) return false;
+ if (hasCreateTime() != other.hasCreateTime()) return false;
+ if (hasCreateTime()) {
+ if (!getCreateTime().equals(other.getCreateTime())) return false;
+ }
+ if (hasUpdateTime() != other.hasUpdateTime()) return false;
+ if (hasUpdateTime()) {
+ if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+ }
+ if (type_ != other.type_) return false;
+ if (!getDetailsCase().equals(other.getDetailsCase())) return false;
+ switch (detailsCase_) {
+ case 6:
+ if (!getInstalledPackage().equals(other.getInstalledPackage())) return false;
+ break;
+ case 7:
+ if (!getAvailablePackage().equals(other.getAvailablePackage())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) 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) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + ORIGIN_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + originType_;
+ if (hasCreateTime()) {
+ hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateTime().hashCode();
+ }
+ if (hasUpdateTime()) {
+ hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateTime().hashCode();
+ }
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ switch (detailsCase_) {
+ case 6:
+ hash = (37 * hash) + INSTALLED_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstalledPackage().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + AVAILABLE_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getAvailablePackage().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.Item parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.Item 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.osconfig.v1.Inventory.Item parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.Item 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.osconfig.v1.Inventory.Item parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.Item parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.Item parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.Item 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.osconfig.v1.Inventory.Item parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.Item 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.osconfig.v1.Inventory.Item parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.Item 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.osconfig.v1.Inventory.Item 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;
+ }
+ /**
+ *
+ *
+ * + * A single piece of inventory on a VM. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.Item} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Identifier for this item, unique across items for this VM. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Identifier for this item, unique across items for this VM. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Identifier for this item, unique across items for this VM. + *+ * + *
string id = 1;
+ *
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Identifier for this item, unique across items for this VM. + *+ * + *
string id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = getDefaultInstance().getId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Identifier for this item, unique across items for this VM. + *+ * + *
string id = 1;
+ *
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int originType_ = 0;
+ /**
+ *
+ *
+ * + * The origin of this inventory item. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
+ *
+ * @return The enum numeric value on the wire for originType.
+ */
+ @java.lang.Override
+ public int getOriginTypeValue() {
+ return originType_;
+ }
+ /**
+ *
+ *
+ * + * The origin of this inventory item. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
+ *
+ * @param value The enum numeric value on the wire for originType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOriginTypeValue(int value) {
+
+ originType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The origin of this inventory item. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
+ *
+ * @return The originType.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.Item.OriginType getOriginType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1.Inventory.Item.OriginType result =
+ com.google.cloud.osconfig.v1.Inventory.Item.OriginType.valueOf(originType_);
+ return result == null
+ ? com.google.cloud.osconfig.v1.Inventory.Item.OriginType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The origin of this inventory item. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
+ *
+ * @param value The originType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOriginType(com.google.cloud.osconfig.v1.Inventory.Item.OriginType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ originType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The origin of this inventory item. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOriginType() {
+
+ originType_ = 0;
+ 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_;
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ *
+ * @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();
+ }
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (createTime_ != null) {
+ createTime_ =
+ com.google.protobuf.Timestamp.newBuilder(createTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ createTime_ = value;
+ }
+ onChanged();
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ */
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was first detected. + *+ * + *
.google.protobuf.Timestamp create_time = 8;
+ */
+ 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 updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ public boolean hasUpdateTime() {
+ return updateTimeBuilder_ != null || updateTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ *
+ * @return The updateTime.
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ } else {
+ return updateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateTime_ = value;
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (updateTime_ != null) {
+ updateTime_ =
+ com.google.protobuf.Timestamp.newBuilder(updateTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ updateTime_ = value;
+ }
+ onChanged();
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ */
+ public Builder clearUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = null;
+ onChanged();
+ } else {
+ updateTime_ = null;
+ updateTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * When this inventory item was last modified. + *+ * + *
.google.protobuf.Timestamp update_time = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ private int type_ = 0;
+ /**
+ *
+ *
+ * + * The specific type of inventory, correlating to its specific details. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ * + * The specific type of inventory, correlating to its specific details. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The specific type of inventory, correlating to its specific details. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.Item.Type getType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1.Inventory.Item.Type result =
+ com.google.cloud.osconfig.v1.Inventory.Item.Type.valueOf(type_);
+ return result == null
+ ? com.google.cloud.osconfig.v1.Inventory.Item.Type.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The specific type of inventory, correlating to its specific details. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(com.google.cloud.osconfig.v1.Inventory.Item.Type value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The specific type of inventory, correlating to its specific details. + *+ * + *
.google.cloud.osconfig.v1.Inventory.Item.Type type = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder>
+ installedPackageBuilder_;
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ *
+ * @return Whether the installedPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasInstalledPackage() {
+ return detailsCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ *
+ * @return The installedPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackage getInstalledPackage() {
+ if (installedPackageBuilder_ == null) {
+ if (detailsCase_ == 6) {
+ return (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ } else {
+ if (detailsCase_ == 6) {
+ return installedPackageBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ */
+ public Builder setInstalledPackage(
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage value) {
+ if (installedPackageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ installedPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ */
+ public Builder setInstalledPackage(
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder builderForValue) {
+ if (installedPackageBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ installedPackageBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ */
+ public Builder mergeInstalledPackage(
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage value) {
+ if (installedPackageBuilder_ == null) {
+ if (detailsCase_ == 6
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 6) {
+ installedPackageBuilder_.mergeFrom(value);
+ }
+ installedPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ */
+ public Builder clearInstalledPackage() {
+ if (installedPackageBuilder_ == null) {
+ if (detailsCase_ == 6) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 6) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ installedPackageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder
+ getInstalledPackageBuilder() {
+ return getInstalledPackageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder
+ getInstalledPackageOrBuilder() {
+ if ((detailsCase_ == 6) && (installedPackageBuilder_ != null)) {
+ return installedPackageBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 6) {
+ return (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Software package present on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder>
+ getInstalledPackageFieldBuilder() {
+ if (installedPackageBuilder_ == null) {
+ if (!(detailsCase_ == 6)) {
+ details_ = com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+ installedPackageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 6;
+ onChanged();
+ ;
+ return installedPackageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder>
+ availablePackageBuilder_;
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ *
+ * @return Whether the availablePackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasAvailablePackage() {
+ return detailsCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ *
+ * @return The availablePackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackage getAvailablePackage() {
+ if (availablePackageBuilder_ == null) {
+ if (detailsCase_ == 7) {
+ return (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ } else {
+ if (detailsCase_ == 7) {
+ return availablePackageBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ */
+ public Builder setAvailablePackage(
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage value) {
+ if (availablePackageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ availablePackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ */
+ public Builder setAvailablePackage(
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder builderForValue) {
+ if (availablePackageBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ availablePackageBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ */
+ public Builder mergeAvailablePackage(
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage value) {
+ if (availablePackageBuilder_ == null) {
+ if (detailsCase_ == 7
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 7) {
+ availablePackageBuilder_.mergeFrom(value);
+ }
+ availablePackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ */
+ public Builder clearAvailablePackage() {
+ if (availablePackageBuilder_ == null) {
+ if (detailsCase_ == 7) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 7) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ availablePackageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder
+ getAvailablePackageBuilder() {
+ return getAvailablePackageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder
+ getAvailablePackageOrBuilder() {
+ if ((detailsCase_ == 7) && (availablePackageBuilder_ != null)) {
+ return availablePackageBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 7) {
+ return (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Software package available to be installed on the VM instance. + *+ * + *
.google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder>
+ getAvailablePackageFieldBuilder() {
+ if (availablePackageBuilder_ == null) {
+ if (!(detailsCase_ == 7)) {
+ details_ = com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.getDefaultInstance();
+ }
+ availablePackageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackageOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 7;
+ onChanged();
+ ;
+ return availablePackageBuilder_;
+ }
+
+ @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.osconfig.v1.Inventory.Item)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.Inventory.Item)
+ private static final com.google.cloud.osconfig.v1.Inventory.Item DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1.Inventory.Item();
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.Item getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ *
+ * @return Whether the yumPackage field is set.
+ */
+ boolean hasYumPackage();
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ *
+ * @return The yumPackage.
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage getYumPackage();
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder getYumPackageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ *
+ * @return Whether the aptPackage field is set.
+ */
+ boolean hasAptPackage();
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ *
+ * @return The aptPackage.
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage getAptPackage();
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder getAptPackageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ *
+ * @return Whether the zypperPackage field is set.
+ */
+ boolean hasZypperPackage();
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ *
+ * @return The zypperPackage.
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage getZypperPackage();
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder getZypperPackageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ *
+ * @return Whether the googetPackage field is set.
+ */
+ boolean hasGoogetPackage();
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ *
+ * @return The googetPackage.
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage getGoogetPackage();
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder getGoogetPackageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ *
+ * @return Whether the zypperPatch field is set.
+ */
+ boolean hasZypperPatch();
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ *
+ * @return The zypperPatch.
+ */
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch getZypperPatch();
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ */
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatchOrBuilder getZypperPatchOrBuilder();
+
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ *
+ * @return Whether the wuaPackage field is set.
+ */
+ boolean hasWuaPackage();
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ *
+ * @return The wuaPackage.
+ */
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage getWuaPackage();
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ */
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackageOrBuilder getWuaPackageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ *
+ * @return Whether the qfePackage field is set.
+ */
+ boolean hasQfePackage();
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ *
+ * @return The qfePackage.
+ */
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage getQfePackage();
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ */
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackageOrBuilder
+ getQfePackageOrBuilder();
+
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ *
+ * @return Whether the cosPackage field is set.
+ */
+ boolean hasCosPackage();
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ *
+ * @return The cosPackage.
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage getCosPackage();
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ */
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder getCosPackageOrBuilder();
+
+ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.DetailsCase getDetailsCase();
+ }
+ /**
+ *
+ *
+ * + * Software package information of the operating system. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.SoftwarePackage} + */ + public static final class SoftwarePackage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory.SoftwarePackage) + SoftwarePackageOrBuilder { + private static final long serialVersionUID = 0L; + // Use SoftwarePackage.newBuilder() to construct. + private SoftwarePackage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private SoftwarePackage() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SoftwarePackage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SoftwarePackage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder subBuilder = null; + if (detailsCase_ == 1) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 1; + break; + } + case 18: + { + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder subBuilder = null; + if (detailsCase_ == 2) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 2; + break; + } + case 26: + { + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder subBuilder = null; + if (detailsCase_ == 3) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 3; + break; + } + case 34: + { + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder subBuilder = null; + if (detailsCase_ == 4) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 4; + break; + } + case 42: + { + com.google.cloud.osconfig.v1.Inventory.ZypperPatch.Builder subBuilder = null; + if (detailsCase_ == 5) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_).toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.ZypperPatch.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 5; + break; + } + case 50: + { + com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.Builder subBuilder = + null; + if (detailsCase_ == 6) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 6; + break; + } + case 58: + { + com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.Builder + subBuilder = null; + if (detailsCase_ == 7) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage) + details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage) + details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 7; + break; + } + case 66: + { + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder subBuilder = null; + if (detailsCase_ == 8) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 8; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_SoftwarePackage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_SoftwarePackage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.class, + com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.Builder.class); + } + + private int detailsCase_ = 0; + private java.lang.Object details_; + + public enum DetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + YUM_PACKAGE(1), + APT_PACKAGE(2), + ZYPPER_PACKAGE(3), + GOOGET_PACKAGE(4), + ZYPPER_PATCH(5), + WUA_PACKAGE(6), + QFE_PACKAGE(7), + COS_PACKAGE(8), + DETAILS_NOT_SET(0); + private final int value; + + private DetailsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DetailsCase valueOf(int value) { + return forNumber(value); + } + + public static DetailsCase forNumber(int value) { + switch (value) { + case 1: + return YUM_PACKAGE; + case 2: + return APT_PACKAGE; + case 3: + return ZYPPER_PACKAGE; + case 4: + return GOOGET_PACKAGE; + case 5: + return ZYPPER_PATCH; + case 6: + return WUA_PACKAGE; + case 7: + return QFE_PACKAGE; + case 8: + return COS_PACKAGE; + case 0: + return DETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public static final int YUM_PACKAGE_FIELD_NUMBER = 1; + /** + * + * + *
+ * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ *
+ * @return Whether the yumPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasYumPackage() {
+ return detailsCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ *
+ * @return The yumPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getYumPackage() {
+ if (detailsCase_ == 1) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getYumPackageOrBuilder() {
+ if (detailsCase_ == 1) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+
+ public static final int APT_PACKAGE_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ *
+ * @return Whether the aptPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasAptPackage() {
+ return detailsCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ *
+ * @return The aptPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getAptPackage() {
+ if (detailsCase_ == 2) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getAptPackageOrBuilder() {
+ if (detailsCase_ == 2) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+
+ public static final int ZYPPER_PACKAGE_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ *
+ * @return Whether the zypperPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasZypperPackage() {
+ return detailsCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ *
+ * @return The zypperPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getZypperPackage() {
+ if (detailsCase_ == 3) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getZypperPackageOrBuilder() {
+ if (detailsCase_ == 3) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+
+ public static final int GOOGET_PACKAGE_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ *
+ * @return Whether the googetPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogetPackage() {
+ return detailsCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ *
+ * @return The googetPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getGoogetPackage() {
+ if (detailsCase_ == 4) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getGoogetPackageOrBuilder() {
+ if (detailsCase_ == 4) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+
+ public static final int ZYPPER_PATCH_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ *
+ * @return Whether the zypperPatch field is set.
+ */
+ @java.lang.Override
+ public boolean hasZypperPatch() {
+ return detailsCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ *
+ * @return The zypperPatch.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.ZypperPatch getZypperPatch() {
+ if (detailsCase_ == 5) {
+ return (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.ZypperPatch.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.ZypperPatchOrBuilder getZypperPatchOrBuilder() {
+ if (detailsCase_ == 5) {
+ return (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.ZypperPatch.getDefaultInstance();
+ }
+
+ public static final int WUA_PACKAGE_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ *
+ * @return Whether the wuaPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasWuaPackage() {
+ return detailsCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ *
+ * @return The wuaPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage getWuaPackage() {
+ if (detailsCase_ == 6) {
+ return (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackageOrBuilder
+ getWuaPackageOrBuilder() {
+ if (detailsCase_ == 6) {
+ return (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.getDefaultInstance();
+ }
+
+ public static final int QFE_PACKAGE_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ *
+ * @return Whether the qfePackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasQfePackage() {
+ return detailsCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ *
+ * @return The qfePackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ getQfePackage() {
+ if (detailsCase_ == 7) {
+ return (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackageOrBuilder
+ getQfePackageOrBuilder() {
+ if (detailsCase_ == 7) {
+ return (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ .getDefaultInstance();
+ }
+
+ public static final int COS_PACKAGE_FIELD_NUMBER = 8;
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ *
+ * @return Whether the cosPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasCosPackage() {
+ return detailsCase_ == 8;
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ *
+ * @return The cosPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getCosPackage() {
+ if (detailsCase_ == 8) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getCosPackageOrBuilder() {
+ if (detailsCase_ == 8) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+
+ 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 (detailsCase_ == 1) {
+ output.writeMessage(1, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ if (detailsCase_ == 2) {
+ output.writeMessage(2, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ if (detailsCase_ == 3) {
+ output.writeMessage(3, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ if (detailsCase_ == 4) {
+ output.writeMessage(4, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ if (detailsCase_ == 5) {
+ output.writeMessage(5, (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_);
+ }
+ if (detailsCase_ == 6) {
+ output.writeMessage(
+ 6, (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_);
+ }
+ if (detailsCase_ == 7) {
+ output.writeMessage(
+ 7, (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage) details_);
+ }
+ if (detailsCase_ == 8) {
+ output.writeMessage(8, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (detailsCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ if (detailsCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ if (detailsCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ if (detailsCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ if (detailsCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_);
+ }
+ if (detailsCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6, (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_);
+ }
+ if (detailsCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7,
+ (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage)
+ details_);
+ }
+ if (detailsCase_ == 8) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 8, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_);
+ }
+ size += unknownFields.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.osconfig.v1.Inventory.SoftwarePackage)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.Inventory.SoftwarePackage other =
+ (com.google.cloud.osconfig.v1.Inventory.SoftwarePackage) obj;
+
+ if (!getDetailsCase().equals(other.getDetailsCase())) return false;
+ switch (detailsCase_) {
+ case 1:
+ if (!getYumPackage().equals(other.getYumPackage())) return false;
+ break;
+ case 2:
+ if (!getAptPackage().equals(other.getAptPackage())) return false;
+ break;
+ case 3:
+ if (!getZypperPackage().equals(other.getZypperPackage())) return false;
+ break;
+ case 4:
+ if (!getGoogetPackage().equals(other.getGoogetPackage())) return false;
+ break;
+ case 5:
+ if (!getZypperPatch().equals(other.getZypperPatch())) return false;
+ break;
+ case 6:
+ if (!getWuaPackage().equals(other.getWuaPackage())) return false;
+ break;
+ case 7:
+ if (!getQfePackage().equals(other.getQfePackage())) return false;
+ break;
+ case 8:
+ if (!getCosPackage().equals(other.getCosPackage())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (detailsCase_) {
+ case 1:
+ hash = (37 * hash) + YUM_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getYumPackage().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + APT_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getAptPackage().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + ZYPPER_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getZypperPackage().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + GOOGET_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogetPackage().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + ZYPPER_PATCH_FIELD_NUMBER;
+ hash = (53 * hash) + getZypperPatch().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + WUA_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getWuaPackage().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + QFE_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getQfePackage().hashCode();
+ break;
+ case 8:
+ hash = (37 * hash) + COS_PACKAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getCosPackage().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.SoftwarePackage parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.SoftwarePackage 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.osconfig.v1.Inventory.SoftwarePackage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.SoftwarePackage 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.osconfig.v1.Inventory.SoftwarePackage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.SoftwarePackage parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.SoftwarePackage parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.SoftwarePackage 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.osconfig.v1.Inventory.SoftwarePackage parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.SoftwarePackage 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.osconfig.v1.Inventory.SoftwarePackage parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.SoftwarePackage 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.osconfig.v1.Inventory.SoftwarePackage 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;
+ }
+ /**
+ *
+ *
+ * + * Software package information of the operating system. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.SoftwarePackage} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ *
+ * @return Whether the yumPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasYumPackage() {
+ return detailsCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ *
+ * @return The yumPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getYumPackage() {
+ if (yumPackageBuilder_ == null) {
+ if (detailsCase_ == 1) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ } else {
+ if (detailsCase_ == 1) {
+ return yumPackageBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ */
+ public Builder setYumPackage(com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (yumPackageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ yumPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ */
+ public Builder setYumPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder builderForValue) {
+ if (yumPackageBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ yumPackageBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ */
+ public Builder mergeYumPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (yumPackageBuilder_ == null) {
+ if (detailsCase_ == 1
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 1) {
+ yumPackageBuilder_.mergeFrom(value);
+ }
+ yumPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ */
+ public Builder clearYumPackage() {
+ if (yumPackageBuilder_ == null) {
+ if (detailsCase_ == 1) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 1) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ yumPackageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder
+ getYumPackageBuilder() {
+ return getYumPackageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getYumPackageOrBuilder() {
+ if ((detailsCase_ == 1) && (yumPackageBuilder_ != null)) {
+ return yumPackageBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 1) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Yum package info. + * For details about the yum package manager, see + * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>
+ getYumPackageFieldBuilder() {
+ if (yumPackageBuilder_ == null) {
+ if (!(detailsCase_ == 1)) {
+ details_ = com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ yumPackageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 1;
+ onChanged();
+ ;
+ return yumPackageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>
+ aptPackageBuilder_;
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ *
+ * @return Whether the aptPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasAptPackage() {
+ return detailsCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ *
+ * @return The aptPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getAptPackage() {
+ if (aptPackageBuilder_ == null) {
+ if (detailsCase_ == 2) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ } else {
+ if (detailsCase_ == 2) {
+ return aptPackageBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ */
+ public Builder setAptPackage(com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (aptPackageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ aptPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ */
+ public Builder setAptPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder builderForValue) {
+ if (aptPackageBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ aptPackageBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ */
+ public Builder mergeAptPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (aptPackageBuilder_ == null) {
+ if (detailsCase_ == 2
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 2) {
+ aptPackageBuilder_.mergeFrom(value);
+ }
+ aptPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ */
+ public Builder clearAptPackage() {
+ if (aptPackageBuilder_ == null) {
+ if (detailsCase_ == 2) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 2) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ aptPackageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder
+ getAptPackageBuilder() {
+ return getAptPackageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getAptPackageOrBuilder() {
+ if ((detailsCase_ == 2) && (aptPackageBuilder_ != null)) {
+ return aptPackageBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 2) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of an APT package. + * For details about the apt package manager, see + * https://wiki.debian.org/Apt. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>
+ getAptPackageFieldBuilder() {
+ if (aptPackageBuilder_ == null) {
+ if (!(detailsCase_ == 2)) {
+ details_ = com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ aptPackageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 2;
+ onChanged();
+ ;
+ return aptPackageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>
+ zypperPackageBuilder_;
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ *
+ * @return Whether the zypperPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasZypperPackage() {
+ return detailsCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ *
+ * @return The zypperPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getZypperPackage() {
+ if (zypperPackageBuilder_ == null) {
+ if (detailsCase_ == 3) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ } else {
+ if (detailsCase_ == 3) {
+ return zypperPackageBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ */
+ public Builder setZypperPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (zypperPackageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ zypperPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ */
+ public Builder setZypperPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder builderForValue) {
+ if (zypperPackageBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ zypperPackageBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ */
+ public Builder mergeZypperPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (zypperPackageBuilder_ == null) {
+ if (detailsCase_ == 3
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 3) {
+ zypperPackageBuilder_.mergeFrom(value);
+ }
+ zypperPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ */
+ public Builder clearZypperPackage() {
+ if (zypperPackageBuilder_ == null) {
+ if (detailsCase_ == 3) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 3) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ zypperPackageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder
+ getZypperPackageBuilder() {
+ return getZypperPackageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getZypperPackageOrBuilder() {
+ if ((detailsCase_ == 3) && (zypperPackageBuilder_ != null)) {
+ return zypperPackageBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 3) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper package. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>
+ getZypperPackageFieldBuilder() {
+ if (zypperPackageBuilder_ == null) {
+ if (!(detailsCase_ == 3)) {
+ details_ = com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ zypperPackageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 3;
+ onChanged();
+ ;
+ return zypperPackageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>
+ googetPackageBuilder_;
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ *
+ * @return Whether the googetPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogetPackage() {
+ return detailsCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ *
+ * @return The googetPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getGoogetPackage() {
+ if (googetPackageBuilder_ == null) {
+ if (detailsCase_ == 4) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ } else {
+ if (detailsCase_ == 4) {
+ return googetPackageBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ */
+ public Builder setGoogetPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (googetPackageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ googetPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ */
+ public Builder setGoogetPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder builderForValue) {
+ if (googetPackageBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ googetPackageBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ */
+ public Builder mergeGoogetPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (googetPackageBuilder_ == null) {
+ if (detailsCase_ == 4
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 4) {
+ googetPackageBuilder_.mergeFrom(value);
+ }
+ googetPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ */
+ public Builder clearGoogetPackage() {
+ if (googetPackageBuilder_ == null) {
+ if (detailsCase_ == 4) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 4) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ googetPackageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder
+ getGoogetPackageBuilder() {
+ return getGoogetPackageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getGoogetPackageOrBuilder() {
+ if ((detailsCase_ == 4) && (googetPackageBuilder_ != null)) {
+ return googetPackageBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 4) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Googet package. + * For details about the googet package manager, see + * https://github.com/google/googet. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>
+ getGoogetPackageFieldBuilder() {
+ if (googetPackageBuilder_ == null) {
+ if (!(detailsCase_ == 4)) {
+ details_ = com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ googetPackageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 4;
+ onChanged();
+ ;
+ return googetPackageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch,
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch.Builder,
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatchOrBuilder>
+ zypperPatchBuilder_;
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ *
+ * @return Whether the zypperPatch field is set.
+ */
+ @java.lang.Override
+ public boolean hasZypperPatch() {
+ return detailsCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ *
+ * @return The zypperPatch.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.ZypperPatch getZypperPatch() {
+ if (zypperPatchBuilder_ == null) {
+ if (detailsCase_ == 5) {
+ return (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.ZypperPatch.getDefaultInstance();
+ } else {
+ if (detailsCase_ == 5) {
+ return zypperPatchBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.ZypperPatch.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ */
+ public Builder setZypperPatch(com.google.cloud.osconfig.v1.Inventory.ZypperPatch value) {
+ if (zypperPatchBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ zypperPatchBuilder_.setMessage(value);
+ }
+ detailsCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ */
+ public Builder setZypperPatch(
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch.Builder builderForValue) {
+ if (zypperPatchBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ zypperPatchBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ */
+ public Builder mergeZypperPatch(com.google.cloud.osconfig.v1.Inventory.ZypperPatch value) {
+ if (zypperPatchBuilder_ == null) {
+ if (detailsCase_ == 5
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.ZypperPatch.getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 5) {
+ zypperPatchBuilder_.mergeFrom(value);
+ }
+ zypperPatchBuilder_.setMessage(value);
+ }
+ detailsCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ */
+ public Builder clearZypperPatch() {
+ if (zypperPatchBuilder_ == null) {
+ if (detailsCase_ == 5) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 5) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ zypperPatchBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.ZypperPatch.Builder getZypperPatchBuilder() {
+ return getZypperPatchFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.ZypperPatchOrBuilder getZypperPatchOrBuilder() {
+ if ((detailsCase_ == 5) && (zypperPatchBuilder_ != null)) {
+ return zypperPatchBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 5) {
+ return (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.ZypperPatch.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Zypper patch. + * For details about the Zypper package manager, see + * https://en.opensuse.org/SDB:Zypper_manual. + *+ * + *
.google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch,
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch.Builder,
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatchOrBuilder>
+ getZypperPatchFieldBuilder() {
+ if (zypperPatchBuilder_ == null) {
+ if (!(detailsCase_ == 5)) {
+ details_ = com.google.cloud.osconfig.v1.Inventory.ZypperPatch.getDefaultInstance();
+ }
+ zypperPatchBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch,
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch.Builder,
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatchOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 5;
+ onChanged();
+ ;
+ return zypperPatchBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackageOrBuilder>
+ wuaPackageBuilder_;
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ *
+ * @return Whether the wuaPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasWuaPackage() {
+ return detailsCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ *
+ * @return The wuaPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage getWuaPackage() {
+ if (wuaPackageBuilder_ == null) {
+ if (detailsCase_ == 6) {
+ return (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.getDefaultInstance();
+ } else {
+ if (detailsCase_ == 6) {
+ return wuaPackageBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ */
+ public Builder setWuaPackage(
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage value) {
+ if (wuaPackageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ wuaPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ */
+ public Builder setWuaPackage(
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.Builder builderForValue) {
+ if (wuaPackageBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ wuaPackageBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ */
+ public Builder mergeWuaPackage(
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage value) {
+ if (wuaPackageBuilder_ == null) {
+ if (detailsCase_ == 6
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 6) {
+ wuaPackageBuilder_.mergeFrom(value);
+ }
+ wuaPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ */
+ public Builder clearWuaPackage() {
+ if (wuaPackageBuilder_ == null) {
+ if (detailsCase_ == 6) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 6) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ wuaPackageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.Builder
+ getWuaPackageBuilder() {
+ return getWuaPackageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackageOrBuilder
+ getWuaPackageOrBuilder() {
+ if ((detailsCase_ == 6) && (wuaPackageBuilder_ != null)) {
+ return wuaPackageBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 6) {
+ return (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Update package. + * See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + * information about Windows Update. + *+ * + *
.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackageOrBuilder>
+ getWuaPackageFieldBuilder() {
+ if (wuaPackageBuilder_ == null) {
+ if (!(detailsCase_ == 6)) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.getDefaultInstance();
+ }
+ wuaPackageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackageOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 6;
+ onChanged();
+ ;
+ return wuaPackageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage,
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackageOrBuilder>
+ qfePackageBuilder_;
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
+ * .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ *
+ * @return Whether the qfePackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasQfePackage() {
+ return detailsCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
+ * .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ *
+ * @return The qfePackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ getQfePackage() {
+ if (qfePackageBuilder_ == null) {
+ if (detailsCase_ == 7) {
+ return (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage)
+ details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ .getDefaultInstance();
+ } else {
+ if (detailsCase_ == 7) {
+ return qfePackageBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
+ * .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ */
+ public Builder setQfePackage(
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage value) {
+ if (qfePackageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ qfePackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
+ * .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ */
+ public Builder setQfePackage(
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.Builder
+ builderForValue) {
+ if (qfePackageBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ qfePackageBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
+ * .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ */
+ public Builder mergeQfePackage(
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage value) {
+ if (qfePackageBuilder_ == null) {
+ if (detailsCase_ == 7
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ .getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage)
+ details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 7) {
+ qfePackageBuilder_.mergeFrom(value);
+ }
+ qfePackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
+ * .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ */
+ public Builder clearQfePackage() {
+ if (qfePackageBuilder_ == null) {
+ if (detailsCase_ == 7) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 7) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ qfePackageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
+ * .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ */
+ public com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.Builder
+ getQfePackageBuilder() {
+ return getQfePackageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
+ * .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackageOrBuilder
+ getQfePackageOrBuilder() {
+ if ((detailsCase_ == 7) && (qfePackageBuilder_ != null)) {
+ return qfePackageBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 7) {
+ return (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage)
+ details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a Windows Quick Fix engineering package. + * See + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + * for info in Windows Quick Fix Engineering. + *+ * + *
+ * .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage,
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackageOrBuilder>
+ getQfePackageFieldBuilder() {
+ if (qfePackageBuilder_ == null) {
+ if (!(detailsCase_ == 7)) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ .getDefaultInstance();
+ }
+ qfePackageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage,
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory
+ .WindowsQuickFixEngineeringPackageOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage)
+ details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 7;
+ onChanged();
+ ;
+ return qfePackageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>
+ cosPackageBuilder_;
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ *
+ * @return Whether the cosPackage field is set.
+ */
+ @java.lang.Override
+ public boolean hasCosPackage() {
+ return detailsCase_ == 8;
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ *
+ * @return The cosPackage.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getCosPackage() {
+ if (cosPackageBuilder_ == null) {
+ if (detailsCase_ == 8) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ } else {
+ if (detailsCase_ == 8) {
+ return cosPackageBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ */
+ public Builder setCosPackage(com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (cosPackageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ cosPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 8;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ */
+ public Builder setCosPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder builderForValue) {
+ if (cosPackageBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ cosPackageBuilder_.setMessage(builderForValue.build());
+ }
+ detailsCase_ = 8;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ */
+ public Builder mergeCosPackage(
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage value) {
+ if (cosPackageBuilder_ == null) {
+ if (detailsCase_ == 8
+ && details_
+ != com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance()) {
+ details_ =
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.newBuilder(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ if (detailsCase_ == 8) {
+ cosPackageBuilder_.mergeFrom(value);
+ }
+ cosPackageBuilder_.setMessage(value);
+ }
+ detailsCase_ = 8;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ */
+ public Builder clearCosPackage() {
+ if (cosPackageBuilder_ == null) {
+ if (detailsCase_ == 8) {
+ detailsCase_ = 0;
+ details_ = null;
+ onChanged();
+ }
+ } else {
+ if (detailsCase_ == 8) {
+ detailsCase_ = 0;
+ details_ = null;
+ }
+ cosPackageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder
+ getCosPackageBuilder() {
+ return getCosPackageFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder
+ getCosPackageOrBuilder() {
+ if ((detailsCase_ == 8) && (cosPackageBuilder_ != null)) {
+ return cosPackageBuilder_.getMessageOrBuilder();
+ } else {
+ if (detailsCase_ == 8) {
+ return (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_;
+ }
+ return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Details of a COS package. + *+ * + *
.google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>
+ getCosPackageFieldBuilder() {
+ if (cosPackageBuilder_ == null) {
+ if (!(detailsCase_ == 8)) {
+ details_ = com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance();
+ }
+ cosPackageBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder,
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder>(
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_,
+ getParentForChildren(),
+ isClean());
+ details_ = null;
+ }
+ detailsCase_ = 8;
+ onChanged();
+ ;
+ return cosPackageBuilder_;
+ }
+
+ @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.osconfig.v1.Inventory.SoftwarePackage)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.Inventory.SoftwarePackage)
+ private static final com.google.cloud.osconfig.v1.Inventory.SoftwarePackage DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1.Inventory.SoftwarePackage();
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.SoftwarePackage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The name of the package. + *+ * + *
string package_name = 4;
+ *
+ * @return The packageName.
+ */
+ java.lang.String getPackageName();
+ /**
+ *
+ *
+ * + * The name of the package. + *+ * + *
string package_name = 4;
+ *
+ * @return The bytes for packageName.
+ */
+ com.google.protobuf.ByteString getPackageNameBytes();
+
+ /**
+ *
+ *
+ * + * The system architecture this package is intended for. + *+ * + *
string architecture = 2;
+ *
+ * @return The architecture.
+ */
+ java.lang.String getArchitecture();
+ /**
+ *
+ *
+ * + * The system architecture this package is intended for. + *+ * + *
string architecture = 2;
+ *
+ * @return The bytes for architecture.
+ */
+ com.google.protobuf.ByteString getArchitectureBytes();
+
+ /**
+ *
+ *
+ * + * The version of the package. + *+ * + *
string version = 3;
+ *
+ * @return The version.
+ */
+ java.lang.String getVersion();
+ /**
+ *
+ *
+ * + * The version of the package. + *+ * + *
string version = 3;
+ *
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+ }
+ /**
+ *
+ *
+ * + * Information related to the a standard versioned package. This includes + * package info for APT, Yum, Zypper, and Googet package managers. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.VersionedPackage} + */ + public static final class VersionedPackage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory.VersionedPackage) + VersionedPackageOrBuilder { + private static final long serialVersionUID = 0L; + // Use VersionedPackage.newBuilder() to construct. + private VersionedPackage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private VersionedPackage() { + packageName_ = ""; + architecture_ = ""; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VersionedPackage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VersionedPackage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + architecture_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + packageName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_VersionedPackage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_VersionedPackage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.class, + com.google.cloud.osconfig.v1.Inventory.VersionedPackage.Builder.class); + } + + public static final int PACKAGE_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object packageName_; + /** + * + * + *
+ * The name of the package. + *+ * + *
string package_name = 4;
+ *
+ * @return The packageName.
+ */
+ @java.lang.Override
+ public java.lang.String getPackageName() {
+ java.lang.Object ref = packageName_;
+ 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();
+ packageName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the package. + *+ * + *
string package_name = 4;
+ *
+ * @return The bytes for packageName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPackageNameBytes() {
+ java.lang.Object ref = packageName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ packageName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ARCHITECTURE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object architecture_;
+ /**
+ *
+ *
+ * + * The system architecture this package is intended for. + *+ * + *
string architecture = 2;
+ *
+ * @return The architecture.
+ */
+ @java.lang.Override
+ public java.lang.String getArchitecture() {
+ java.lang.Object ref = architecture_;
+ 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();
+ architecture_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The system architecture this package is intended for. + *+ * + *
string architecture = 2;
+ *
+ * @return The bytes for architecture.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getArchitectureBytes() {
+ java.lang.Object ref = architecture_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ architecture_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object version_;
+ /**
+ *
+ *
+ * + * The version of the package. + *+ * + *
string version = 3;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The version of the package. + *+ * + *
string version = 3;
+ *
+ * @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;
+ }
+ }
+
+ 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 (!getArchitectureBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, architecture_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_);
+ }
+ if (!getPackageNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, packageName_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getArchitectureBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, architecture_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_);
+ }
+ if (!getPackageNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, packageName_);
+ }
+ size += unknownFields.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.osconfig.v1.Inventory.VersionedPackage)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.Inventory.VersionedPackage other =
+ (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) obj;
+
+ if (!getPackageName().equals(other.getPackageName())) return false;
+ if (!getArchitecture().equals(other.getArchitecture())) return false;
+ if (!getVersion().equals(other.getVersion())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + PACKAGE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getPackageName().hashCode();
+ hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER;
+ hash = (53 * hash) + getArchitecture().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.VersionedPackage parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.VersionedPackage 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.osconfig.v1.Inventory.VersionedPackage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.VersionedPackage 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.osconfig.v1.Inventory.VersionedPackage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.VersionedPackage parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.VersionedPackage parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.VersionedPackage 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.osconfig.v1.Inventory.VersionedPackage parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.VersionedPackage 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.osconfig.v1.Inventory.VersionedPackage parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.VersionedPackage 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.osconfig.v1.Inventory.VersionedPackage 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;
+ }
+ /**
+ *
+ *
+ * + * Information related to the a standard versioned package. This includes + * package info for APT, Yum, Zypper, and Googet package managers. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.VersionedPackage} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the package. + *+ * + *
string package_name = 4;
+ *
+ * @return The packageName.
+ */
+ public java.lang.String getPackageName() {
+ java.lang.Object ref = packageName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ packageName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the package. + *+ * + *
string package_name = 4;
+ *
+ * @return The bytes for packageName.
+ */
+ public com.google.protobuf.ByteString getPackageNameBytes() {
+ java.lang.Object ref = packageName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ packageName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the package. + *+ * + *
string package_name = 4;
+ *
+ * @param value The packageName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPackageName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ packageName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the package. + *+ * + *
string package_name = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPackageName() {
+
+ packageName_ = getDefaultInstance().getPackageName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the package. + *+ * + *
string package_name = 4;
+ *
+ * @param value The bytes for packageName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPackageNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ packageName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object architecture_ = "";
+ /**
+ *
+ *
+ * + * The system architecture this package is intended for. + *+ * + *
string architecture = 2;
+ *
+ * @return The architecture.
+ */
+ public java.lang.String getArchitecture() {
+ java.lang.Object ref = architecture_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ architecture_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The system architecture this package is intended for. + *+ * + *
string architecture = 2;
+ *
+ * @return The bytes for architecture.
+ */
+ public com.google.protobuf.ByteString getArchitectureBytes() {
+ java.lang.Object ref = architecture_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ architecture_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The system architecture this package is intended for. + *+ * + *
string architecture = 2;
+ *
+ * @param value The architecture to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArchitecture(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ architecture_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The system architecture this package is intended for. + *+ * + *
string architecture = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearArchitecture() {
+
+ architecture_ = getDefaultInstance().getArchitecture();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The system architecture this package is intended for. + *+ * + *
string architecture = 2;
+ *
+ * @param value The bytes for architecture to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArchitectureBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ architecture_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ *
+ *
+ * + * The version of the package. + *+ * + *
string version = 3;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The version of the package. + *+ * + *
string version = 3;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The version of the package. + *+ * + *
string version = 3;
+ *
+ * @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;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The version of the package. + *+ * + *
string version = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVersion() {
+
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The version of the package. + *+ * + *
string version = 3;
+ *
+ * @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;
+ 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:google.cloud.osconfig.v1.Inventory.VersionedPackage)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.Inventory.VersionedPackage)
+ private static final com.google.cloud.osconfig.v1.Inventory.VersionedPackage DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1.Inventory.VersionedPackage();
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.VersionedPackage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The localized title of the update package. + *+ * + *
string title = 1;
+ *
+ * @return The title.
+ */
+ java.lang.String getTitle();
+ /**
+ *
+ *
+ * + * The localized title of the update package. + *+ * + *
string title = 1;
+ *
+ * @return The bytes for title.
+ */
+ com.google.protobuf.ByteString getTitleBytes();
+
+ /**
+ *
+ *
+ * + * The localized description of the update package. + *+ * + *
string description = 2;
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * The localized description of the update package. + *+ * + *
string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ java.util.List<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory>
+ getCategoriesList();
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory getCategories(
+ int index);
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ int getCategoriesCount();
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategoryOrBuilder>
+ getCategoriesOrBuilderList();
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategoryOrBuilder
+ getCategoriesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @return A list containing the kbArticleIds.
+ */
+ java.util.List+ * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @return The count of kbArticleIds.
+ */
+ int getKbArticleIdsCount();
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The kbArticleIds at the given index.
+ */
+ java.lang.String getKbArticleIds(int index);
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kbArticleIds at the given index.
+ */
+ com.google.protobuf.ByteString getKbArticleIdsBytes(int index);
+
+ /**
+ *
+ *
+ * + * A hyperlink to the language-specific support information for the update. + *+ * + *
string support_url = 11;
+ *
+ * @return The supportUrl.
+ */
+ java.lang.String getSupportUrl();
+ /**
+ *
+ *
+ * + * A hyperlink to the language-specific support information for the update. + *+ * + *
string support_url = 11;
+ *
+ * @return The bytes for supportUrl.
+ */
+ com.google.protobuf.ByteString getSupportUrlBytes();
+
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @return A list containing the moreInfoUrls.
+ */
+ java.util.List+ * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @return The count of moreInfoUrls.
+ */
+ int getMoreInfoUrlsCount();
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param index The index of the element to return.
+ * @return The moreInfoUrls at the given index.
+ */
+ java.lang.String getMoreInfoUrls(int index);
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the moreInfoUrls at the given index.
+ */
+ com.google.protobuf.ByteString getMoreInfoUrlsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Gets the identifier of an update package. Stays the same across + * revisions. + *+ * + *
string update_id = 6;
+ *
+ * @return The updateId.
+ */
+ java.lang.String getUpdateId();
+ /**
+ *
+ *
+ * + * Gets the identifier of an update package. Stays the same across + * revisions. + *+ * + *
string update_id = 6;
+ *
+ * @return The bytes for updateId.
+ */
+ com.google.protobuf.ByteString getUpdateIdBytes();
+
+ /**
+ *
+ *
+ * + * The revision number of this update package. + *+ * + *
int32 revision_number = 7;
+ *
+ * @return The revisionNumber.
+ */
+ int getRevisionNumber();
+
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ *
+ * @return Whether the lastDeploymentChangeTime field is set.
+ */
+ boolean hasLastDeploymentChangeTime();
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ *
+ * @return The lastDeploymentChangeTime.
+ */
+ com.google.protobuf.Timestamp getLastDeploymentChangeTime();
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ */
+ com.google.protobuf.TimestampOrBuilder getLastDeploymentChangeTimeOrBuilder();
+ }
+ /**
+ *
+ *
+ * + * Details related to a Windows Update package. + * Field data and names are taken from Windows Update API IUpdate Interface: + * https://docs.microsoft.com/en-us/windows/win32/api/_wua/ + * Descriptive fields like title, and description are localized based on + * the locale of the VM being updated. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage} + */ + public static final class WindowsUpdatePackage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) + WindowsUpdatePackageOrBuilder { + private static final long serialVersionUID = 0L; + // Use WindowsUpdatePackage.newBuilder() to construct. + private WindowsUpdatePackage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private WindowsUpdatePackage() { + title_ = ""; + description_ = ""; + categories_ = java.util.Collections.emptyList(); + kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + supportUrl_ = ""; + moreInfoUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + updateId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WindowsUpdatePackage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WindowsUpdatePackage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + title_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + categories_ = + new java.util.ArrayList< + com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage + .WindowsUpdateCategory>(); + mutable_bitField0_ |= 0x00000001; + } + categories_.add( + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage + .WindowsUpdateCategory.parser(), + extensionRegistry)); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + kbArticleIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + kbArticleIds_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + moreInfoUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + moreInfoUrls_.add(s); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + updateId_ = s; + break; + } + case 56: + { + revisionNumber_ = input.readInt32(); + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastDeploymentChangeTime_ != null) { + subBuilder = lastDeploymentChangeTime_.toBuilder(); + } + lastDeploymentChangeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastDeploymentChangeTime_); + lastDeploymentChangeTime_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + supportUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + categories_ = java.util.Collections.unmodifiableList(categories_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + kbArticleIds_ = kbArticleIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + moreInfoUrls_ = moreInfoUrls_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsUpdatePackage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsUpdatePackage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.class, + com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.Builder.class); + } + + public interface WindowsUpdateCategoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * The identifier of the windows update category. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ *
+ *
+ * + * The identifier of the windows update category. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString getIdBytes();
+
+ /**
+ *
+ *
+ * + * The name of the windows update category. + *+ * + *
string name = 2;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * The name of the windows update category. + *+ * + *
string name = 2;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+ }
+ /**
+ *
+ *
+ * + * Categories specified by the Windows Update. + *+ * + * Protobuf type {@code + * google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory} + */ + public static final class WindowsUpdateCategory extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory) + WindowsUpdateCategoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use WindowsUpdateCategory.newBuilder() to construct. + private WindowsUpdateCategory(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private WindowsUpdateCategory() { + id_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WindowsUpdateCategory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WindowsUpdateCategory( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsUpdatePackage_WindowsUpdateCategory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsUpdatePackage_WindowsUpdateCategory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory + .class, + com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory + .Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+ * The identifier of the windows update category. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ 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();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The identifier of the windows update category. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ * + * The name of the windows update category. + *+ * + *
string name = 2;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the windows update category. + *+ * + *
string name = 2;
+ *
+ * @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;
+ }
+ }
+
+ 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 (!getIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
+ }
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
+ }
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
+ }
+ size += unknownFields.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.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory other =
+ (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory) obj;
+
+ if (!getId().equals(other.getId())) return false;
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ 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.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ 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.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ 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.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ 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.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ 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.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ 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;
+ }
+ /**
+ *
+ *
+ * + * Categories specified by the Windows Update. + *+ * + * Protobuf type {@code + * google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The identifier of the windows update category. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The identifier of the windows update category. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The identifier of the windows update category. + *+ * + *
string id = 1;
+ *
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The identifier of the windows update category. + *+ * + *
string id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = getDefaultInstance().getId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The identifier of the windows update category. + *+ * + *
string id = 1;
+ *
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ * + * The name of the windows update category. + *+ * + *
string name = 2;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the windows update category. + *+ * + *
string name = 2;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the windows update category. + *+ * + *
string name = 2;
+ *
+ * @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;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the windows update category. + *+ * + *
string name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the windows update category. + *+ * + *
string name = 2;
+ *
+ * @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;
+ 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:google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory)
+ private static final com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory();
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The localized title of the update package. + *+ * + *
string title = 1;
+ *
+ * @return The title.
+ */
+ @java.lang.Override
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ 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();
+ title_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The localized title of the update package. + *+ * + *
string title = 1;
+ *
+ * @return The bytes for title.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * The localized description of the update package. + *+ * + *
string description = 2;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The localized description of the update package. + *+ * + *
string description = 2;
+ *
+ * @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 CATEGORIES_FIELD_NUMBER = 3;
+ private java.util.List<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory>
+ categories_;
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory>
+ getCategoriesList() {
+ return categories_;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategoryOrBuilder>
+ getCategoriesOrBuilderList() {
+ return categories_;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ @java.lang.Override
+ public int getCategoriesCount() {
+ return categories_.size();
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ getCategories(int index) {
+ return categories_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategoryOrBuilder
+ getCategoriesOrBuilder(int index) {
+ return categories_.get(index);
+ }
+
+ public static final int KB_ARTICLE_IDS_FIELD_NUMBER = 4;
+ private com.google.protobuf.LazyStringList kbArticleIds_;
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @return A list containing the kbArticleIds.
+ */
+ public com.google.protobuf.ProtocolStringList getKbArticleIdsList() {
+ return kbArticleIds_;
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @return The count of kbArticleIds.
+ */
+ public int getKbArticleIdsCount() {
+ return kbArticleIds_.size();
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The kbArticleIds at the given index.
+ */
+ public java.lang.String getKbArticleIds(int index) {
+ return kbArticleIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kbArticleIds at the given index.
+ */
+ public com.google.protobuf.ByteString getKbArticleIdsBytes(int index) {
+ return kbArticleIds_.getByteString(index);
+ }
+
+ public static final int SUPPORT_URL_FIELD_NUMBER = 11;
+ private volatile java.lang.Object supportUrl_;
+ /**
+ *
+ *
+ * + * A hyperlink to the language-specific support information for the update. + *+ * + *
string support_url = 11;
+ *
+ * @return The supportUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getSupportUrl() {
+ java.lang.Object ref = supportUrl_;
+ 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();
+ supportUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A hyperlink to the language-specific support information for the update. + *+ * + *
string support_url = 11;
+ *
+ * @return The bytes for supportUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSupportUrlBytes() {
+ java.lang.Object ref = supportUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ supportUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MORE_INFO_URLS_FIELD_NUMBER = 5;
+ private com.google.protobuf.LazyStringList moreInfoUrls_;
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @return A list containing the moreInfoUrls.
+ */
+ public com.google.protobuf.ProtocolStringList getMoreInfoUrlsList() {
+ return moreInfoUrls_;
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @return The count of moreInfoUrls.
+ */
+ public int getMoreInfoUrlsCount() {
+ return moreInfoUrls_.size();
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param index The index of the element to return.
+ * @return The moreInfoUrls at the given index.
+ */
+ public java.lang.String getMoreInfoUrls(int index) {
+ return moreInfoUrls_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the moreInfoUrls at the given index.
+ */
+ public com.google.protobuf.ByteString getMoreInfoUrlsBytes(int index) {
+ return moreInfoUrls_.getByteString(index);
+ }
+
+ public static final int UPDATE_ID_FIELD_NUMBER = 6;
+ private volatile java.lang.Object updateId_;
+ /**
+ *
+ *
+ * + * Gets the identifier of an update package. Stays the same across + * revisions. + *+ * + *
string update_id = 6;
+ *
+ * @return The updateId.
+ */
+ @java.lang.Override
+ public java.lang.String getUpdateId() {
+ java.lang.Object ref = updateId_;
+ 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();
+ updateId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Gets the identifier of an update package. Stays the same across + * revisions. + *+ * + *
string update_id = 6;
+ *
+ * @return The bytes for updateId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUpdateIdBytes() {
+ java.lang.Object ref = updateId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ updateId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REVISION_NUMBER_FIELD_NUMBER = 7;
+ private int revisionNumber_;
+ /**
+ *
+ *
+ * + * The revision number of this update package. + *+ * + *
int32 revision_number = 7;
+ *
+ * @return The revisionNumber.
+ */
+ @java.lang.Override
+ public int getRevisionNumber() {
+ return revisionNumber_;
+ }
+
+ public static final int LAST_DEPLOYMENT_CHANGE_TIME_FIELD_NUMBER = 10;
+ private com.google.protobuf.Timestamp lastDeploymentChangeTime_;
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ *
+ * @return Whether the lastDeploymentChangeTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasLastDeploymentChangeTime() {
+ return lastDeploymentChangeTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ *
+ * @return The lastDeploymentChangeTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getLastDeploymentChangeTime() {
+ return lastDeploymentChangeTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastDeploymentChangeTime_;
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getLastDeploymentChangeTimeOrBuilder() {
+ return getLastDeploymentChangeTime();
+ }
+
+ 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 (!getTitleBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
+ }
+ for (int i = 0; i < categories_.size(); i++) {
+ output.writeMessage(3, categories_.get(i));
+ }
+ for (int i = 0; i < kbArticleIds_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kbArticleIds_.getRaw(i));
+ }
+ for (int i = 0; i < moreInfoUrls_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, moreInfoUrls_.getRaw(i));
+ }
+ if (!getUpdateIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, updateId_);
+ }
+ if (revisionNumber_ != 0) {
+ output.writeInt32(7, revisionNumber_);
+ }
+ if (lastDeploymentChangeTime_ != null) {
+ output.writeMessage(10, getLastDeploymentChangeTime());
+ }
+ if (!getSupportUrlBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, supportUrl_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getTitleBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
+ }
+ for (int i = 0; i < categories_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, categories_.get(i));
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < kbArticleIds_.size(); i++) {
+ dataSize += computeStringSizeNoTag(kbArticleIds_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getKbArticleIdsList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < moreInfoUrls_.size(); i++) {
+ dataSize += computeStringSizeNoTag(moreInfoUrls_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getMoreInfoUrlsList().size();
+ }
+ if (!getUpdateIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, updateId_);
+ }
+ if (revisionNumber_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, revisionNumber_);
+ }
+ if (lastDeploymentChangeTime_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 10, getLastDeploymentChangeTime());
+ }
+ if (!getSupportUrlBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, supportUrl_);
+ }
+ size += unknownFields.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.osconfig.v1.Inventory.WindowsUpdatePackage)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage other =
+ (com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage) obj;
+
+ if (!getTitle().equals(other.getTitle())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getCategoriesList().equals(other.getCategoriesList())) return false;
+ if (!getKbArticleIdsList().equals(other.getKbArticleIdsList())) return false;
+ if (!getSupportUrl().equals(other.getSupportUrl())) return false;
+ if (!getMoreInfoUrlsList().equals(other.getMoreInfoUrlsList())) return false;
+ if (!getUpdateId().equals(other.getUpdateId())) return false;
+ if (getRevisionNumber() != other.getRevisionNumber()) return false;
+ if (hasLastDeploymentChangeTime() != other.hasLastDeploymentChangeTime()) return false;
+ if (hasLastDeploymentChangeTime()) {
+ if (!getLastDeploymentChangeTime().equals(other.getLastDeploymentChangeTime()))
+ return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) 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) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (getCategoriesCount() > 0) {
+ hash = (37 * hash) + CATEGORIES_FIELD_NUMBER;
+ hash = (53 * hash) + getCategoriesList().hashCode();
+ }
+ if (getKbArticleIdsCount() > 0) {
+ hash = (37 * hash) + KB_ARTICLE_IDS_FIELD_NUMBER;
+ hash = (53 * hash) + getKbArticleIdsList().hashCode();
+ }
+ hash = (37 * hash) + SUPPORT_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getSupportUrl().hashCode();
+ if (getMoreInfoUrlsCount() > 0) {
+ hash = (37 * hash) + MORE_INFO_URLS_FIELD_NUMBER;
+ hash = (53 * hash) + getMoreInfoUrlsList().hashCode();
+ }
+ hash = (37 * hash) + UPDATE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateId().hashCode();
+ hash = (37 * hash) + REVISION_NUMBER_FIELD_NUMBER;
+ hash = (53 * hash) + getRevisionNumber();
+ if (hasLastDeploymentChangeTime()) {
+ hash = (37 * hash) + LAST_DEPLOYMENT_CHANGE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getLastDeploymentChangeTime().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage 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.osconfig.v1.Inventory.WindowsUpdatePackage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage 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.osconfig.v1.Inventory.WindowsUpdatePackage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage 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.osconfig.v1.Inventory.WindowsUpdatePackage parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage 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.osconfig.v1.Inventory.WindowsUpdatePackage parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage 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.osconfig.v1.Inventory.WindowsUpdatePackage 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 related to a Windows Update package. + * Field data and names are taken from Windows Update API IUpdate Interface: + * https://docs.microsoft.com/en-us/windows/win32/api/_wua/ + * Descriptive fields like title, and description are localized based on + * the locale of the VM being updated. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The localized title of the update package. + *+ * + *
string title = 1;
+ *
+ * @return The title.
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The localized title of the update package. + *+ * + *
string title = 1;
+ *
+ * @return The bytes for title.
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The localized title of the update package. + *+ * + *
string title = 1;
+ *
+ * @param value The title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The localized title of the update package. + *+ * + *
string title = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTitle() {
+
+ title_ = getDefaultInstance().getTitle();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The localized title of the update package. + *+ * + *
string title = 1;
+ *
+ * @param value The bytes for title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ title_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * The localized description of the update package. + *+ * + *
string description = 2;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The localized description of the update package. + *+ * + *
string description = 2;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The localized description of the update package. + *+ * + *
string description = 2;
+ *
+ * @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;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The localized description of the update package. + *+ * + *
string description = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The localized description of the update package. + *+ * + *
string description = 2;
+ *
+ * @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;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory>
+ categories_ = java.util.Collections.emptyList();
+
+ private void ensureCategoriesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ categories_ =
+ new java.util.ArrayList<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory>(categories_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ .Builder,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategoryOrBuilder>
+ categoriesBuilder_;
+
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory>
+ getCategoriesList() {
+ if (categoriesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(categories_);
+ } else {
+ return categoriesBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public int getCategoriesCount() {
+ if (categoriesBuilder_ == null) {
+ return categories_.size();
+ } else {
+ return categoriesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ getCategories(int index) {
+ if (categoriesBuilder_ == null) {
+ return categories_.get(index);
+ } else {
+ return categoriesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public Builder setCategories(
+ int index,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory value) {
+ if (categoriesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCategoriesIsMutable();
+ categories_.set(index, value);
+ onChanged();
+ } else {
+ categoriesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public Builder setCategories(
+ int index,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder
+ builderForValue) {
+ if (categoriesBuilder_ == null) {
+ ensureCategoriesIsMutable();
+ categories_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ categoriesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public Builder addCategories(
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory value) {
+ if (categoriesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCategoriesIsMutable();
+ categories_.add(value);
+ onChanged();
+ } else {
+ categoriesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public Builder addCategories(
+ int index,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory value) {
+ if (categoriesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCategoriesIsMutable();
+ categories_.add(index, value);
+ onChanged();
+ } else {
+ categoriesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public Builder addCategories(
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder
+ builderForValue) {
+ if (categoriesBuilder_ == null) {
+ ensureCategoriesIsMutable();
+ categories_.add(builderForValue.build());
+ onChanged();
+ } else {
+ categoriesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public Builder addCategories(
+ int index,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder
+ builderForValue) {
+ if (categoriesBuilder_ == null) {
+ ensureCategoriesIsMutable();
+ categories_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ categoriesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public Builder addAllCategories(
+ java.lang.Iterable<
+ ? extends
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategory>
+ values) {
+ if (categoriesBuilder_ == null) {
+ ensureCategoriesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categories_);
+ onChanged();
+ } else {
+ categoriesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public Builder clearCategories() {
+ if (categoriesBuilder_ == null) {
+ categories_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ categoriesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public Builder removeCategories(int index) {
+ if (categoriesBuilder_ == null) {
+ ensureCategoriesIsMutable();
+ categories_.remove(index);
+ onChanged();
+ } else {
+ categoriesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ .Builder
+ getCategoriesBuilder(int index) {
+ return getCategoriesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategoryOrBuilder
+ getCategoriesOrBuilder(int index) {
+ if (categoriesBuilder_ == null) {
+ return categories_.get(index);
+ } else {
+ return categoriesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategoryOrBuilder>
+ getCategoriesOrBuilderList() {
+ if (categoriesBuilder_ != null) {
+ return categoriesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(categories_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ .Builder
+ addCategoriesBuilder() {
+ return getCategoriesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ .Builder
+ addCategoriesBuilder(int index) {
+ return getCategoriesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The categories that are associated with this update package. + *+ * + *
+ * repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ .Builder>
+ getCategoriesBuilderList() {
+ return getCategoriesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ .Builder,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategoryOrBuilder>
+ getCategoriesFieldBuilder() {
+ if (categoriesBuilder_ == null) {
+ categoriesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory
+ .Builder,
+ com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ .WindowsUpdateCategoryOrBuilder>(
+ categories_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ categories_ = null;
+ }
+ return categoriesBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringList kbArticleIds_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureKbArticleIdsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ kbArticleIds_ = new com.google.protobuf.LazyStringArrayList(kbArticleIds_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @return A list containing the kbArticleIds.
+ */
+ public com.google.protobuf.ProtocolStringList getKbArticleIdsList() {
+ return kbArticleIds_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @return The count of kbArticleIds.
+ */
+ public int getKbArticleIdsCount() {
+ return kbArticleIds_.size();
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The kbArticleIds at the given index.
+ */
+ public java.lang.String getKbArticleIds(int index) {
+ return kbArticleIds_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kbArticleIds at the given index.
+ */
+ public com.google.protobuf.ByteString getKbArticleIdsBytes(int index) {
+ return kbArticleIds_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param index The index to set the value at.
+ * @param value The kbArticleIds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKbArticleIds(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKbArticleIdsIsMutable();
+ kbArticleIds_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param value The kbArticleIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKbArticleIds(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKbArticleIdsIsMutable();
+ kbArticleIds_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param values The kbArticleIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllKbArticleIds(java.lang.Iterable+ * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKbArticleIds() {
+ kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A collection of Microsoft Knowledge Base article IDs that are associated + * with the update package. + *+ * + *
repeated string kb_article_ids = 4;
+ *
+ * @param value The bytes of the kbArticleIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKbArticleIdsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureKbArticleIdsIsMutable();
+ kbArticleIds_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object supportUrl_ = "";
+ /**
+ *
+ *
+ * + * A hyperlink to the language-specific support information for the update. + *+ * + *
string support_url = 11;
+ *
+ * @return The supportUrl.
+ */
+ public java.lang.String getSupportUrl() {
+ java.lang.Object ref = supportUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ supportUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A hyperlink to the language-specific support information for the update. + *+ * + *
string support_url = 11;
+ *
+ * @return The bytes for supportUrl.
+ */
+ public com.google.protobuf.ByteString getSupportUrlBytes() {
+ java.lang.Object ref = supportUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ supportUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A hyperlink to the language-specific support information for the update. + *+ * + *
string support_url = 11;
+ *
+ * @param value The supportUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSupportUrl(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ supportUrl_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A hyperlink to the language-specific support information for the update. + *+ * + *
string support_url = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSupportUrl() {
+
+ supportUrl_ = getDefaultInstance().getSupportUrl();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A hyperlink to the language-specific support information for the update. + *+ * + *
string support_url = 11;
+ *
+ * @param value The bytes for supportUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSupportUrlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ supportUrl_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList moreInfoUrls_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureMoreInfoUrlsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ moreInfoUrls_ = new com.google.protobuf.LazyStringArrayList(moreInfoUrls_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @return A list containing the moreInfoUrls.
+ */
+ public com.google.protobuf.ProtocolStringList getMoreInfoUrlsList() {
+ return moreInfoUrls_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @return The count of moreInfoUrls.
+ */
+ public int getMoreInfoUrlsCount() {
+ return moreInfoUrls_.size();
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param index The index of the element to return.
+ * @return The moreInfoUrls at the given index.
+ */
+ public java.lang.String getMoreInfoUrls(int index) {
+ return moreInfoUrls_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the moreInfoUrls at the given index.
+ */
+ public com.google.protobuf.ByteString getMoreInfoUrlsBytes(int index) {
+ return moreInfoUrls_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param index The index to set the value at.
+ * @param value The moreInfoUrls to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMoreInfoUrls(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMoreInfoUrlsIsMutable();
+ moreInfoUrls_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param value The moreInfoUrls to add.
+ * @return This builder for chaining.
+ */
+ public Builder addMoreInfoUrls(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMoreInfoUrlsIsMutable();
+ moreInfoUrls_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param values The moreInfoUrls to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllMoreInfoUrls(java.lang.Iterable+ * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMoreInfoUrls() {
+ moreInfoUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A collection of URLs that provide more information about the update + * package. + *+ * + *
repeated string more_info_urls = 5;
+ *
+ * @param value The bytes of the moreInfoUrls to add.
+ * @return This builder for chaining.
+ */
+ public Builder addMoreInfoUrlsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureMoreInfoUrlsIsMutable();
+ moreInfoUrls_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object updateId_ = "";
+ /**
+ *
+ *
+ * + * Gets the identifier of an update package. Stays the same across + * revisions. + *+ * + *
string update_id = 6;
+ *
+ * @return The updateId.
+ */
+ public java.lang.String getUpdateId() {
+ java.lang.Object ref = updateId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ updateId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Gets the identifier of an update package. Stays the same across + * revisions. + *+ * + *
string update_id = 6;
+ *
+ * @return The bytes for updateId.
+ */
+ public com.google.protobuf.ByteString getUpdateIdBytes() {
+ java.lang.Object ref = updateId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ updateId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Gets the identifier of an update package. Stays the same across + * revisions. + *+ * + *
string update_id = 6;
+ *
+ * @param value The updateId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUpdateId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ updateId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Gets the identifier of an update package. Stays the same across + * revisions. + *+ * + *
string update_id = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUpdateId() {
+
+ updateId_ = getDefaultInstance().getUpdateId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Gets the identifier of an update package. Stays the same across + * revisions. + *+ * + *
string update_id = 6;
+ *
+ * @param value The bytes for updateId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUpdateIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ updateId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int revisionNumber_;
+ /**
+ *
+ *
+ * + * The revision number of this update package. + *+ * + *
int32 revision_number = 7;
+ *
+ * @return The revisionNumber.
+ */
+ @java.lang.Override
+ public int getRevisionNumber() {
+ return revisionNumber_;
+ }
+ /**
+ *
+ *
+ * + * The revision number of this update package. + *+ * + *
int32 revision_number = 7;
+ *
+ * @param value The revisionNumber to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevisionNumber(int value) {
+
+ revisionNumber_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The revision number of this update package. + *+ * + *
int32 revision_number = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRevisionNumber() {
+
+ revisionNumber_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp lastDeploymentChangeTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ lastDeploymentChangeTimeBuilder_;
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ *
+ * @return Whether the lastDeploymentChangeTime field is set.
+ */
+ public boolean hasLastDeploymentChangeTime() {
+ return lastDeploymentChangeTimeBuilder_ != null || lastDeploymentChangeTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ *
+ * @return The lastDeploymentChangeTime.
+ */
+ public com.google.protobuf.Timestamp getLastDeploymentChangeTime() {
+ if (lastDeploymentChangeTimeBuilder_ == null) {
+ return lastDeploymentChangeTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastDeploymentChangeTime_;
+ } else {
+ return lastDeploymentChangeTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ */
+ public Builder setLastDeploymentChangeTime(com.google.protobuf.Timestamp value) {
+ if (lastDeploymentChangeTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ lastDeploymentChangeTime_ = value;
+ onChanged();
+ } else {
+ lastDeploymentChangeTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ */
+ public Builder setLastDeploymentChangeTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (lastDeploymentChangeTimeBuilder_ == null) {
+ lastDeploymentChangeTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ lastDeploymentChangeTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ */
+ public Builder mergeLastDeploymentChangeTime(com.google.protobuf.Timestamp value) {
+ if (lastDeploymentChangeTimeBuilder_ == null) {
+ if (lastDeploymentChangeTime_ != null) {
+ lastDeploymentChangeTime_ =
+ com.google.protobuf.Timestamp.newBuilder(lastDeploymentChangeTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ lastDeploymentChangeTime_ = value;
+ }
+ onChanged();
+ } else {
+ lastDeploymentChangeTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ */
+ public Builder clearLastDeploymentChangeTime() {
+ if (lastDeploymentChangeTimeBuilder_ == null) {
+ lastDeploymentChangeTime_ = null;
+ onChanged();
+ } else {
+ lastDeploymentChangeTime_ = null;
+ lastDeploymentChangeTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ */
+ public com.google.protobuf.Timestamp.Builder getLastDeploymentChangeTimeBuilder() {
+
+ onChanged();
+ return getLastDeploymentChangeTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ */
+ public com.google.protobuf.TimestampOrBuilder getLastDeploymentChangeTimeOrBuilder() {
+ if (lastDeploymentChangeTimeBuilder_ != null) {
+ return lastDeploymentChangeTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return lastDeploymentChangeTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastDeploymentChangeTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The last published date of the update, in (UTC) date and time. + *+ * + *
.google.protobuf.Timestamp last_deployment_change_time = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getLastDeploymentChangeTimeFieldBuilder() {
+ if (lastDeploymentChangeTimeBuilder_ == null) {
+ lastDeploymentChangeTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getLastDeploymentChangeTime(), getParentForChildren(), isClean());
+ lastDeploymentChangeTime_ = null;
+ }
+ return lastDeploymentChangeTimeBuilder_;
+ }
+
+ @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.osconfig.v1.Inventory.WindowsUpdatePackage)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage)
+ private static final com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage();
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The name of the patch. + *+ * + *
string patch_name = 5;
+ *
+ * @return The patchName.
+ */
+ java.lang.String getPatchName();
+ /**
+ *
+ *
+ * + * The name of the patch. + *+ * + *
string patch_name = 5;
+ *
+ * @return The bytes for patchName.
+ */
+ com.google.protobuf.ByteString getPatchNameBytes();
+
+ /**
+ *
+ *
+ * + * The category of the patch. + *+ * + *
string category = 2;
+ *
+ * @return The category.
+ */
+ java.lang.String getCategory();
+ /**
+ *
+ *
+ * + * The category of the patch. + *+ * + *
string category = 2;
+ *
+ * @return The bytes for category.
+ */
+ com.google.protobuf.ByteString getCategoryBytes();
+
+ /**
+ *
+ *
+ * + * The severity specified for this patch + *+ * + *
string severity = 3;
+ *
+ * @return The severity.
+ */
+ java.lang.String getSeverity();
+ /**
+ *
+ *
+ * + * The severity specified for this patch + *+ * + *
string severity = 3;
+ *
+ * @return The bytes for severity.
+ */
+ com.google.protobuf.ByteString getSeverityBytes();
+
+ /**
+ *
+ *
+ * + * Any summary information provided about this patch. + *+ * + *
string summary = 4;
+ *
+ * @return The summary.
+ */
+ java.lang.String getSummary();
+ /**
+ *
+ *
+ * + * Any summary information provided about this patch. + *+ * + *
string summary = 4;
+ *
+ * @return The bytes for summary.
+ */
+ com.google.protobuf.ByteString getSummaryBytes();
+ }
+ /**
+ *
+ *
+ * + * Details related to a Zypper Patch. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.ZypperPatch} + */ + public static final class ZypperPatch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory.ZypperPatch) + ZypperPatchOrBuilder { + private static final long serialVersionUID = 0L; + // Use ZypperPatch.newBuilder() to construct. + private ZypperPatch(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ZypperPatch() { + patchName_ = ""; + category_ = ""; + severity_ = ""; + summary_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ZypperPatch(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ZypperPatch( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + category_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + severity_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + summary_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + patchName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_ZypperPatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_ZypperPatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.ZypperPatch.class, + com.google.cloud.osconfig.v1.Inventory.ZypperPatch.Builder.class); + } + + public static final int PATCH_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object patchName_; + /** + * + * + *
+ * The name of the patch. + *+ * + *
string patch_name = 5;
+ *
+ * @return The patchName.
+ */
+ @java.lang.Override
+ public java.lang.String getPatchName() {
+ java.lang.Object ref = patchName_;
+ 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();
+ patchName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the patch. + *+ * + *
string patch_name = 5;
+ *
+ * @return The bytes for patchName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPatchNameBytes() {
+ java.lang.Object ref = patchName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ patchName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CATEGORY_FIELD_NUMBER = 2;
+ private volatile java.lang.Object category_;
+ /**
+ *
+ *
+ * + * The category of the patch. + *+ * + *
string category = 2;
+ *
+ * @return The category.
+ */
+ @java.lang.Override
+ public java.lang.String getCategory() {
+ java.lang.Object ref = category_;
+ 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();
+ category_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The category of the patch. + *+ * + *
string category = 2;
+ *
+ * @return The bytes for category.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCategoryBytes() {
+ java.lang.Object ref = category_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ category_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SEVERITY_FIELD_NUMBER = 3;
+ private volatile java.lang.Object severity_;
+ /**
+ *
+ *
+ * + * The severity specified for this patch + *+ * + *
string severity = 3;
+ *
+ * @return The severity.
+ */
+ @java.lang.Override
+ public java.lang.String getSeverity() {
+ java.lang.Object ref = severity_;
+ 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();
+ severity_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The severity specified for this patch + *+ * + *
string severity = 3;
+ *
+ * @return The bytes for severity.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSeverityBytes() {
+ java.lang.Object ref = severity_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ severity_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SUMMARY_FIELD_NUMBER = 4;
+ private volatile java.lang.Object summary_;
+ /**
+ *
+ *
+ * + * Any summary information provided about this patch. + *+ * + *
string summary = 4;
+ *
+ * @return The summary.
+ */
+ @java.lang.Override
+ public java.lang.String getSummary() {
+ java.lang.Object ref = summary_;
+ 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();
+ summary_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Any summary information provided about this patch. + *+ * + *
string summary = 4;
+ *
+ * @return The bytes for summary.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSummaryBytes() {
+ java.lang.Object ref = summary_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ summary_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getCategoryBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, category_);
+ }
+ if (!getSeverityBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, severity_);
+ }
+ if (!getSummaryBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, summary_);
+ }
+ if (!getPatchNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, patchName_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getCategoryBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, category_);
+ }
+ if (!getSeverityBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, severity_);
+ }
+ if (!getSummaryBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, summary_);
+ }
+ if (!getPatchNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, patchName_);
+ }
+ size += unknownFields.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.osconfig.v1.Inventory.ZypperPatch)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.Inventory.ZypperPatch other =
+ (com.google.cloud.osconfig.v1.Inventory.ZypperPatch) obj;
+
+ if (!getPatchName().equals(other.getPatchName())) return false;
+ if (!getCategory().equals(other.getCategory())) return false;
+ if (!getSeverity().equals(other.getSeverity())) return false;
+ if (!getSummary().equals(other.getSummary())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + PATCH_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getPatchName().hashCode();
+ hash = (37 * hash) + CATEGORY_FIELD_NUMBER;
+ hash = (53 * hash) + getCategory().hashCode();
+ hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
+ hash = (53 * hash) + getSeverity().hashCode();
+ hash = (37 * hash) + SUMMARY_FIELD_NUMBER;
+ hash = (53 * hash) + getSummary().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.ZypperPatch parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.ZypperPatch 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.osconfig.v1.Inventory.ZypperPatch parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.ZypperPatch 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.osconfig.v1.Inventory.ZypperPatch parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.ZypperPatch parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.ZypperPatch parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.ZypperPatch 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.osconfig.v1.Inventory.ZypperPatch parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.ZypperPatch 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.osconfig.v1.Inventory.ZypperPatch parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.ZypperPatch 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.osconfig.v1.Inventory.ZypperPatch 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 related to a Zypper Patch. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.ZypperPatch} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the patch. + *+ * + *
string patch_name = 5;
+ *
+ * @return The patchName.
+ */
+ public java.lang.String getPatchName() {
+ java.lang.Object ref = patchName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ patchName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the patch. + *+ * + *
string patch_name = 5;
+ *
+ * @return The bytes for patchName.
+ */
+ public com.google.protobuf.ByteString getPatchNameBytes() {
+ java.lang.Object ref = patchName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ patchName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the patch. + *+ * + *
string patch_name = 5;
+ *
+ * @param value The patchName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPatchName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ patchName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the patch. + *+ * + *
string patch_name = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPatchName() {
+
+ patchName_ = getDefaultInstance().getPatchName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the patch. + *+ * + *
string patch_name = 5;
+ *
+ * @param value The bytes for patchName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPatchNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ patchName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object category_ = "";
+ /**
+ *
+ *
+ * + * The category of the patch. + *+ * + *
string category = 2;
+ *
+ * @return The category.
+ */
+ public java.lang.String getCategory() {
+ java.lang.Object ref = category_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ category_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The category of the patch. + *+ * + *
string category = 2;
+ *
+ * @return The bytes for category.
+ */
+ public com.google.protobuf.ByteString getCategoryBytes() {
+ java.lang.Object ref = category_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ category_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The category of the patch. + *+ * + *
string category = 2;
+ *
+ * @param value The category to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCategory(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ category_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The category of the patch. + *+ * + *
string category = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCategory() {
+
+ category_ = getDefaultInstance().getCategory();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The category of the patch. + *+ * + *
string category = 2;
+ *
+ * @param value The bytes for category to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCategoryBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ category_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object severity_ = "";
+ /**
+ *
+ *
+ * + * The severity specified for this patch + *+ * + *
string severity = 3;
+ *
+ * @return The severity.
+ */
+ public java.lang.String getSeverity() {
+ java.lang.Object ref = severity_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ severity_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The severity specified for this patch + *+ * + *
string severity = 3;
+ *
+ * @return The bytes for severity.
+ */
+ public com.google.protobuf.ByteString getSeverityBytes() {
+ java.lang.Object ref = severity_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ severity_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The severity specified for this patch + *+ * + *
string severity = 3;
+ *
+ * @param value The severity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeverity(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ severity_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The severity specified for this patch + *+ * + *
string severity = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSeverity() {
+
+ severity_ = getDefaultInstance().getSeverity();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The severity specified for this patch + *+ * + *
string severity = 3;
+ *
+ * @param value The bytes for severity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeverityBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ severity_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object summary_ = "";
+ /**
+ *
+ *
+ * + * Any summary information provided about this patch. + *+ * + *
string summary = 4;
+ *
+ * @return The summary.
+ */
+ public java.lang.String getSummary() {
+ java.lang.Object ref = summary_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ summary_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Any summary information provided about this patch. + *+ * + *
string summary = 4;
+ *
+ * @return The bytes for summary.
+ */
+ public com.google.protobuf.ByteString getSummaryBytes() {
+ java.lang.Object ref = summary_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ summary_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Any summary information provided about this patch. + *+ * + *
string summary = 4;
+ *
+ * @param value The summary to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSummary(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ summary_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Any summary information provided about this patch. + *+ * + *
string summary = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSummary() {
+
+ summary_ = getDefaultInstance().getSummary();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Any summary information provided about this patch. + *+ * + *
string summary = 4;
+ *
+ * @param value The bytes for summary to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSummaryBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ summary_ = value;
+ 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:google.cloud.osconfig.v1.Inventory.ZypperPatch)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.Inventory.ZypperPatch)
+ private static final com.google.cloud.osconfig.v1.Inventory.ZypperPatch DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1.Inventory.ZypperPatch();
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.ZypperPatch getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A short textual description of the QFE update. + *+ * + *
string caption = 1;
+ *
+ * @return The caption.
+ */
+ java.lang.String getCaption();
+ /**
+ *
+ *
+ * + * A short textual description of the QFE update. + *+ * + *
string caption = 1;
+ *
+ * @return The bytes for caption.
+ */
+ com.google.protobuf.ByteString getCaptionBytes();
+
+ /**
+ *
+ *
+ * + * A textual description of the QFE update. + *+ * + *
string description = 2;
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * A textual description of the QFE update. + *+ * + *
string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * Unique identifier associated with a particular QFE update. + *+ * + *
string hot_fix_id = 3;
+ *
+ * @return The hotFixId.
+ */
+ java.lang.String getHotFixId();
+ /**
+ *
+ *
+ * + * Unique identifier associated with a particular QFE update. + *+ * + *
string hot_fix_id = 3;
+ *
+ * @return The bytes for hotFixId.
+ */
+ com.google.protobuf.ByteString getHotFixIdBytes();
+
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ *
+ * @return Whether the installTime field is set.
+ */
+ boolean hasInstallTime();
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ *
+ * @return The installTime.
+ */
+ com.google.protobuf.Timestamp getInstallTime();
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ */
+ com.google.protobuf.TimestampOrBuilder getInstallTimeOrBuilder();
+ }
+ /**
+ *
+ *
+ * + * Information related to a Quick Fix Engineering package. + * Fields are taken from Windows QuickFixEngineering Interface and match + * the source names: + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage} + */ + public static final class WindowsQuickFixEngineeringPackage + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage) + WindowsQuickFixEngineeringPackageOrBuilder { + private static final long serialVersionUID = 0L; + // Use WindowsQuickFixEngineeringPackage.newBuilder() to construct. + private WindowsQuickFixEngineeringPackage( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private WindowsQuickFixEngineeringPackage() { + caption_ = ""; + description_ = ""; + hotFixId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WindowsQuickFixEngineeringPackage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WindowsQuickFixEngineeringPackage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + caption_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + hotFixId_ = s; + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (installTime_ != null) { + subBuilder = installTime_.toBuilder(); + } + installTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(installTime_); + installTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsQuickFixEngineeringPackage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsQuickFixEngineeringPackage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.class, + com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage.Builder + .class); + } + + public static final int CAPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object caption_; + /** + * + * + *
+ * A short textual description of the QFE update. + *+ * + *
string caption = 1;
+ *
+ * @return The caption.
+ */
+ @java.lang.Override
+ public java.lang.String getCaption() {
+ java.lang.Object ref = caption_;
+ 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();
+ caption_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A short textual description of the QFE update. + *+ * + *
string caption = 1;
+ *
+ * @return The bytes for caption.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCaptionBytes() {
+ java.lang.Object ref = caption_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ caption_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * A textual description of the QFE update. + *+ * + *
string description = 2;
+ *
+ * @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 textual description of the QFE update. + *+ * + *
string description = 2;
+ *
+ * @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 HOT_FIX_ID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object hotFixId_;
+ /**
+ *
+ *
+ * + * Unique identifier associated with a particular QFE update. + *+ * + *
string hot_fix_id = 3;
+ *
+ * @return The hotFixId.
+ */
+ @java.lang.Override
+ public java.lang.String getHotFixId() {
+ java.lang.Object ref = hotFixId_;
+ 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();
+ hotFixId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Unique identifier associated with a particular QFE update. + *+ * + *
string hot_fix_id = 3;
+ *
+ * @return The bytes for hotFixId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getHotFixIdBytes() {
+ java.lang.Object ref = hotFixId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ hotFixId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTALL_TIME_FIELD_NUMBER = 5;
+ private com.google.protobuf.Timestamp installTime_;
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ *
+ * @return Whether the installTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasInstallTime() {
+ return installTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ *
+ * @return The installTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getInstallTime() {
+ return installTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : installTime_;
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getInstallTimeOrBuilder() {
+ return getInstallTime();
+ }
+
+ 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 (!getCaptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caption_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
+ }
+ if (!getHotFixIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hotFixId_);
+ }
+ if (installTime_ != null) {
+ output.writeMessage(5, getInstallTime());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getCaptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caption_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
+ }
+ if (!getHotFixIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hotFixId_);
+ }
+ if (installTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInstallTime());
+ }
+ size += unknownFields.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.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage other =
+ (com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage) obj;
+
+ if (!getCaption().equals(other.getCaption())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getHotFixId().equals(other.getHotFixId())) return false;
+ if (hasInstallTime() != other.hasInstallTime()) return false;
+ if (hasInstallTime()) {
+ if (!getInstallTime().equals(other.getInstallTime())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) 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) + CAPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getCaption().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ hash = (37 * hash) + HOT_FIX_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getHotFixId().hashCode();
+ if (hasInstallTime()) {
+ hash = (37 * hash) + INSTALL_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getInstallTime().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ 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.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ 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.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ 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.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ 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.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ 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.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage 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;
+ }
+ /**
+ *
+ *
+ * + * Information related to a Quick Fix Engineering package. + * Fields are taken from Windows QuickFixEngineering Interface and match + * the source names: + * https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A short textual description of the QFE update. + *+ * + *
string caption = 1;
+ *
+ * @return The caption.
+ */
+ public java.lang.String getCaption() {
+ java.lang.Object ref = caption_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ caption_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A short textual description of the QFE update. + *+ * + *
string caption = 1;
+ *
+ * @return The bytes for caption.
+ */
+ public com.google.protobuf.ByteString getCaptionBytes() {
+ java.lang.Object ref = caption_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ caption_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A short textual description of the QFE update. + *+ * + *
string caption = 1;
+ *
+ * @param value The caption to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCaption(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ caption_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A short textual description of the QFE update. + *+ * + *
string caption = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCaption() {
+
+ caption_ = getDefaultInstance().getCaption();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A short textual description of the QFE update. + *+ * + *
string caption = 1;
+ *
+ * @param value The bytes for caption to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCaptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ caption_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * A textual description of the QFE update. + *+ * + *
string description = 2;
+ *
+ * @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 textual description of the QFE update. + *+ * + *
string description = 2;
+ *
+ * @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 textual description of the QFE update. + *+ * + *
string description = 2;
+ *
+ * @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;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A textual description of the QFE update. + *+ * + *
string description = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A textual description of the QFE update. + *+ * + *
string description = 2;
+ *
+ * @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;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object hotFixId_ = "";
+ /**
+ *
+ *
+ * + * Unique identifier associated with a particular QFE update. + *+ * + *
string hot_fix_id = 3;
+ *
+ * @return The hotFixId.
+ */
+ public java.lang.String getHotFixId() {
+ java.lang.Object ref = hotFixId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ hotFixId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Unique identifier associated with a particular QFE update. + *+ * + *
string hot_fix_id = 3;
+ *
+ * @return The bytes for hotFixId.
+ */
+ public com.google.protobuf.ByteString getHotFixIdBytes() {
+ java.lang.Object ref = hotFixId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ hotFixId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Unique identifier associated with a particular QFE update. + *+ * + *
string hot_fix_id = 3;
+ *
+ * @param value The hotFixId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHotFixId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ hotFixId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Unique identifier associated with a particular QFE update. + *+ * + *
string hot_fix_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearHotFixId() {
+
+ hotFixId_ = getDefaultInstance().getHotFixId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Unique identifier associated with a particular QFE update. + *+ * + *
string hot_fix_id = 3;
+ *
+ * @param value The bytes for hotFixId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHotFixIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ hotFixId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp installTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ installTimeBuilder_;
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ *
+ * @return Whether the installTime field is set.
+ */
+ public boolean hasInstallTime() {
+ return installTimeBuilder_ != null || installTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ *
+ * @return The installTime.
+ */
+ public com.google.protobuf.Timestamp getInstallTime() {
+ if (installTimeBuilder_ == null) {
+ return installTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : installTime_;
+ } else {
+ return installTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ */
+ public Builder setInstallTime(com.google.protobuf.Timestamp value) {
+ if (installTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ installTime_ = value;
+ onChanged();
+ } else {
+ installTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ */
+ public Builder setInstallTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (installTimeBuilder_ == null) {
+ installTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ installTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ */
+ public Builder mergeInstallTime(com.google.protobuf.Timestamp value) {
+ if (installTimeBuilder_ == null) {
+ if (installTime_ != null) {
+ installTime_ =
+ com.google.protobuf.Timestamp.newBuilder(installTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ installTime_ = value;
+ }
+ onChanged();
+ } else {
+ installTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ */
+ public Builder clearInstallTime() {
+ if (installTimeBuilder_ == null) {
+ installTime_ = null;
+ onChanged();
+ } else {
+ installTime_ = null;
+ installTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ */
+ public com.google.protobuf.Timestamp.Builder getInstallTimeBuilder() {
+
+ onChanged();
+ return getInstallTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ */
+ public com.google.protobuf.TimestampOrBuilder getInstallTimeOrBuilder() {
+ if (installTimeBuilder_ != null) {
+ return installTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return installTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : installTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Date that the QFE update was installed. Mapped from installed_on field. + *+ * + *
.google.protobuf.Timestamp install_time = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getInstallTimeFieldBuilder() {
+ if (installTimeBuilder_ == null) {
+ installTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getInstallTime(), getParentForChildren(), isClean());
+ installTime_ = null;
+ }
+ return installTimeBuilder_;
+ }
+
+ @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.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage)
+ private static final com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage();
+ }
+
+ public static com.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ *
+ * @return Whether the osInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasOsInfo() {
+ return osInfo_ != null;
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ *
+ * @return The osInfo.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.OsInfo getOsInfo() {
+ return osInfo_ == null
+ ? com.google.cloud.osconfig.v1.Inventory.OsInfo.getDefaultInstance()
+ : osInfo_;
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.OsInfoOrBuilder getOsInfoOrBuilder() {
+ return getOsInfo();
+ }
+
+ public static final int ITEMS_FIELD_NUMBER = 2;
+
+ private static final class ItemsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.osconfig.v1.Inventory.Item>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ @java.lang.Override
+ public boolean containsItems(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetItems().getMap().containsKey(key);
+ }
+ /** Use {@link #getItemsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ @java.lang.Override
+ public java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.Item getItemsOrDefault(
+ java.lang.String key, com.google.cloud.osconfig.v1.Inventory.Item defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.Item getItemsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The inventory details of a VM. + *+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ *
+ * @return Whether the osInfo field is set.
+ */
+ public boolean hasOsInfo() {
+ return osInfoBuilder_ != null || osInfo_ != null;
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ *
+ * @return The osInfo.
+ */
+ public com.google.cloud.osconfig.v1.Inventory.OsInfo getOsInfo() {
+ if (osInfoBuilder_ == null) {
+ return osInfo_ == null
+ ? com.google.cloud.osconfig.v1.Inventory.OsInfo.getDefaultInstance()
+ : osInfo_;
+ } else {
+ return osInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ */
+ public Builder setOsInfo(com.google.cloud.osconfig.v1.Inventory.OsInfo value) {
+ if (osInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ osInfo_ = value;
+ onChanged();
+ } else {
+ osInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ */
+ public Builder setOsInfo(
+ com.google.cloud.osconfig.v1.Inventory.OsInfo.Builder builderForValue) {
+ if (osInfoBuilder_ == null) {
+ osInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ osInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ */
+ public Builder mergeOsInfo(com.google.cloud.osconfig.v1.Inventory.OsInfo value) {
+ if (osInfoBuilder_ == null) {
+ if (osInfo_ != null) {
+ osInfo_ =
+ com.google.cloud.osconfig.v1.Inventory.OsInfo.newBuilder(osInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ osInfo_ = value;
+ }
+ onChanged();
+ } else {
+ osInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ */
+ public Builder clearOsInfo() {
+ if (osInfoBuilder_ == null) {
+ osInfo_ = null;
+ onChanged();
+ } else {
+ osInfo_ = null;
+ osInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.OsInfo.Builder getOsInfoBuilder() {
+
+ onChanged();
+ return getOsInfoFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ */
+ public com.google.cloud.osconfig.v1.Inventory.OsInfoOrBuilder getOsInfoOrBuilder() {
+ if (osInfoBuilder_ != null) {
+ return osInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return osInfo_ == null
+ ? com.google.cloud.osconfig.v1.Inventory.OsInfo.getDefaultInstance()
+ : osInfo_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.OsInfo,
+ com.google.cloud.osconfig.v1.Inventory.OsInfo.Builder,
+ com.google.cloud.osconfig.v1.Inventory.OsInfoOrBuilder>
+ getOsInfoFieldBuilder() {
+ if (osInfoBuilder_ == null) {
+ osInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Inventory.OsInfo,
+ com.google.cloud.osconfig.v1.Inventory.OsInfo.Builder,
+ com.google.cloud.osconfig.v1.Inventory.OsInfoOrBuilder>(
+ getOsInfo(), getParentForChildren(), isClean());
+ osInfo_ = null;
+ }
+ return osInfoBuilder_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.osconfig.v1.Inventory.Item>
+ items_;
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.osconfig.v1.Inventory.Item>
+ internalGetItems() {
+ if (items_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry);
+ }
+ return items_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, com.google.cloud.osconfig.v1.Inventory.Item>
+ internalGetMutableItems() {
+ onChanged();
+ ;
+ if (items_ == null) {
+ items_ = com.google.protobuf.MapField.newMapField(ItemsDefaultEntryHolder.defaultEntry);
+ }
+ if (!items_.isMutable()) {
+ items_ = items_.copy();
+ }
+ return items_;
+ }
+
+ public int getItemsCount() {
+ return internalGetItems().getMap().size();
+ }
+ /**
+ *
+ *
+ * + * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ @java.lang.Override
+ public boolean containsItems(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetItems().getMap().containsKey(key);
+ }
+ /** Use {@link #getItemsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ @java.lang.Override
+ public java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.Item getItemsOrDefault(
+ java.lang.String key, com.google.cloud.osconfig.v1.Inventory.Item defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Inventory.Item getItemsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ public Builder removeItems(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableItems().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ public Builder putItems(
+ java.lang.String key, com.google.cloud.osconfig.v1.Inventory.Item value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableItems().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ public Builder putAllItems(
+ java.util.Map+ * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ *
+ * @return Whether the osInfo field is set.
+ */
+ boolean hasOsInfo();
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ *
+ * @return The osInfo.
+ */
+ com.google.cloud.osconfig.v1.Inventory.OsInfo getOsInfo();
+ /**
+ *
+ *
+ * + * Base level operating system information for the VM. + *+ * + *
.google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1;
+ */
+ com.google.cloud.osconfig.v1.Inventory.OsInfoOrBuilder getOsInfoOrBuilder();
+
+ /**
+ *
+ *
+ * + * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ int getItemsCount();
+ /**
+ *
+ *
+ * + * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ boolean containsItems(java.lang.String key);
+ /** Use {@link #getItemsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ java.util.Map+ * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ com.google.cloud.osconfig.v1.Inventory.Item getItemsOrDefault(
+ java.lang.String key, com.google.cloud.osconfig.v1.Inventory.Item defaultValue);
+ /**
+ *
+ *
+ * + * Inventory items related to the VM keyed by an opaque unique identifier for + * each inventory item. The identifier is unique to each distinct and + * addressable inventory item and will change, when there is a new package + * version. + *+ * + *
map<string, .google.cloud.osconfig.v1.Inventory.Item> items = 2;
+ */
+ com.google.cloud.osconfig.v1.Inventory.Item getItemsOrThrow(java.lang.String key);
+}
diff --git a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeployments.java b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeployments.java
index d18755a4..829cdfec 100644
--- a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeployments.java
+++ b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeployments.java
@@ -67,8 +67,8 @@ public interface PatchDeploymentOrBuilder
*
*
* - * Optional. Description of the patch deployment. Length of the description is limited - * to 1024 characters. + * Optional. Description of the patch deployment. Length of the description is + * limited to 1024 characters. ** *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -80,8 +80,8 @@ public interface PatchDeploymentOrBuilder
*
*
* - * Optional. Description of the patch deployment. Length of the description is limited - * to 1024 characters. + * Optional. Description of the patch deployment. Length of the description is + * limited to 1024 characters. ** *
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -177,7 +177,8 @@ public interface PatchDeploymentOrBuilder
*
*
* - * Optional. Duration of the patch. After the duration ends, the patch times out. + * Optional. Duration of the patch. After the duration ends, the patch times + * out. ** *
.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -190,7 +191,8 @@ public interface PatchDeploymentOrBuilder
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -203,7 +205,8 @@ public interface PatchDeploymentOrBuilder
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -430,6 +433,47 @@ public interface PatchDeploymentOrBuilder
*/
com.google.protobuf.TimestampOrBuilder getLastExecuteTimeOrBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the rollout field is set.
+ */
+ boolean hasRollout();
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The rollout.
+ */
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getRollout();
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder();
+
public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment.ScheduleCase
getScheduleCase();
}
@@ -639,6 +683,23 @@ private PatchDeployment(
lastExecuteTime_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 90:
+ {
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder subBuilder = null;
+ if (rollout_ != null) {
+ subBuilder = rollout_.toBuilder();
+ }
+ rollout_ =
+ input.readMessage(
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(rollout_);
+ rollout_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -783,8 +844,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Optional. Description of the patch deployment. Length of the description is limited
- * to 1024 characters.
+ * Optional. Description of the patch deployment. Length of the description is
+ * limited to 1024 characters.
*
*
* string description = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -807,8 +868,8 @@ public java.lang.String getDescription() {
*
*
*
- * Optional. Description of the patch deployment. Length of the description is limited
- * to 1024 characters.
+ * Optional. Description of the patch deployment. Length of the description is
+ * limited to 1024 characters.
*
*
* string description = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -943,7 +1004,8 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchConfigOrBuilder getPatchConfi
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -959,7 +1021,8 @@ public boolean hasDuration() {
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -975,7 +1038,8 @@ public com.google.protobuf.Duration getDuration() {
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -1272,6 +1336,60 @@ public com.google.protobuf.TimestampOrBuilder getLastExecuteTimeOrBuilder() {
return getLastExecuteTime();
}
+ public static final int ROLLOUT_FIELD_NUMBER = 11;
+ private com.google.cloud.osconfig.v1.PatchJobs.PatchRollout rollout_;
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the rollout field is set.
+ */
+ @java.lang.Override
+ public boolean hasRollout() {
+ return rollout_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The rollout.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getRollout() {
+ return rollout_ == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance()
+ : rollout_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder() {
+ return getRollout();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1318,6 +1436,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (lastExecuteTime_ != null) {
output.writeMessage(10, getLastExecuteTime());
}
+ if (rollout_ != null) {
+ output.writeMessage(11, getRollout());
+ }
unknownFields.writeTo(output);
}
@@ -1361,6 +1482,9 @@ public int getSerializedSize() {
if (lastExecuteTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLastExecuteTime());
}
+ if (rollout_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRollout());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -1403,6 +1527,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasLastExecuteTime()) {
if (!getLastExecuteTime().equals(other.getLastExecuteTime())) return false;
}
+ if (hasRollout() != other.hasRollout()) return false;
+ if (hasRollout()) {
+ if (!getRollout().equals(other.getRollout())) return false;
+ }
if (!getScheduleCase().equals(other.getScheduleCase())) return false;
switch (scheduleCase_) {
case 6:
@@ -1453,6 +1581,10 @@ public int hashCode() {
hash = (37 * hash) + LAST_EXECUTE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getLastExecuteTime().hashCode();
}
+ if (hasRollout()) {
+ hash = (37 * hash) + ROLLOUT_FIELD_NUMBER;
+ hash = (53 * hash) + getRollout().hashCode();
+ }
switch (scheduleCase_) {
case 6:
hash = (37 * hash) + ONE_TIME_SCHEDULE_FIELD_NUMBER;
@@ -1657,6 +1789,12 @@ public Builder clear() {
lastExecuteTime_ = null;
lastExecuteTimeBuilder_ = null;
}
+ if (rolloutBuilder_ == null) {
+ rollout_ = null;
+ } else {
+ rollout_ = null;
+ rolloutBuilder_ = null;
+ }
scheduleCase_ = 0;
schedule_ = null;
return this;
@@ -1733,6 +1871,11 @@ public com.google.cloud.osconfig.v1.PatchDeployments.PatchDeployment buildPartia
} else {
result.lastExecuteTime_ = lastExecuteTimeBuilder_.build();
}
+ if (rolloutBuilder_ == null) {
+ result.rollout_ = rollout_;
+ } else {
+ result.rollout_ = rolloutBuilder_.build();
+ }
result.scheduleCase_ = scheduleCase_;
onBuilt();
return result;
@@ -1814,6 +1957,9 @@ public Builder mergeFrom(
if (other.hasLastExecuteTime()) {
mergeLastExecuteTime(other.getLastExecuteTime());
}
+ if (other.hasRollout()) {
+ mergeRollout(other.getRollout());
+ }
switch (other.getScheduleCase()) {
case ONE_TIME_SCHEDULE:
{
@@ -2001,8 +2147,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Description of the patch deployment. Length of the description is limited
- * to 1024 characters.
+ * Optional. Description of the patch deployment. Length of the description is
+ * limited to 1024 characters.
*
*
* string description = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -2024,8 +2170,8 @@ public java.lang.String getDescription() {
*
*
*
- * Optional. Description of the patch deployment. Length of the description is limited
- * to 1024 characters.
+ * Optional. Description of the patch deployment. Length of the description is
+ * limited to 1024 characters.
*
*
* string description = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -2047,8 +2193,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
*
*
*
- * Optional. Description of the patch deployment. Length of the description is limited
- * to 1024 characters.
+ * Optional. Description of the patch deployment. Length of the description is
+ * limited to 1024 characters.
*
*
* string description = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -2069,8 +2215,8 @@ public Builder setDescription(java.lang.String value) {
*
*
*
- * Optional. Description of the patch deployment. Length of the description is limited
- * to 1024 characters.
+ * Optional. Description of the patch deployment. Length of the description is
+ * limited to 1024 characters.
*
*
* string description = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -2087,8 +2233,8 @@ public Builder clearDescription() {
*
*
*
- * Optional. Description of the patch deployment. Length of the description is limited
- * to 1024 characters.
+ * Optional. Description of the patch deployment. Length of the description is
+ * limited to 1024 characters.
*
*
* string description = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -2530,7 +2676,8 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchConfigOrBuilder getPatchConfi
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -2545,7 +2692,8 @@ public boolean hasDuration() {
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -2564,7 +2712,8 @@ public com.google.protobuf.Duration getDuration() {
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -2587,7 +2736,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -2607,7 +2757,8 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -2632,7 +2783,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -2653,7 +2805,8 @@ public Builder clearDuration() {
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -2668,7 +2821,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -2685,7 +2839,8 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
*
*
*
- * Optional. Duration of the patch. After the duration ends, the patch times out.
+ * Optional. Duration of the patch. After the duration ends, the patch times
+ * out.
*
*
* .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -3826,6 +3981,210 @@ public com.google.protobuf.TimestampOrBuilder getLastExecuteTimeOrBuilder() {
return lastExecuteTimeBuilder_;
}
+ private com.google.cloud.osconfig.v1.PatchJobs.PatchRollout rollout_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder>
+ rolloutBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the rollout field is set.
+ */
+ public boolean hasRollout() {
+ return rolloutBuilder_ != null || rollout_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The rollout.
+ */
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getRollout() {
+ if (rolloutBuilder_ == null) {
+ return rollout_ == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance()
+ : rollout_;
+ } else {
+ return rolloutBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRollout(com.google.cloud.osconfig.v1.PatchJobs.PatchRollout value) {
+ if (rolloutBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rollout_ = value;
+ onChanged();
+ } else {
+ rolloutBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRollout(
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder builderForValue) {
+ if (rolloutBuilder_ == null) {
+ rollout_ = builderForValue.build();
+ onChanged();
+ } else {
+ rolloutBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRollout(com.google.cloud.osconfig.v1.PatchJobs.PatchRollout value) {
+ if (rolloutBuilder_ == null) {
+ if (rollout_ != null) {
+ rollout_ =
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.newBuilder(rollout_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ rollout_ = value;
+ }
+ onChanged();
+ } else {
+ rolloutBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRollout() {
+ if (rolloutBuilder_ == null) {
+ rollout_ = null;
+ onChanged();
+ } else {
+ rollout_ = null;
+ rolloutBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder getRolloutBuilder() {
+
+ onChanged();
+ return getRolloutFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder() {
+ if (rolloutBuilder_ != null) {
+ return rolloutBuilder_.getMessageOrBuilder();
+ } else {
+ return rollout_ == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance()
+ : rollout_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Rollout strategy of the patch job.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder>
+ getRolloutFieldBuilder() {
+ if (rolloutBuilder_ == null) {
+ rolloutBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder>(
+ getRollout(), getParentForChildren(), isClean());
+ rollout_ = null;
+ }
+ return rolloutBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -4761,8 +5120,8 @@ public interface RecurringScheduleOrBuilder
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -4775,8 +5134,8 @@ public interface RecurringScheduleOrBuilder
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -4789,8 +5148,8 @@ public interface RecurringScheduleOrBuilder
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -5577,8 +5936,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -5594,8 +5953,8 @@ public boolean hasEndTime() {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -5611,8 +5970,8 @@ public com.google.protobuf.Timestamp getEndTime() {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -6931,8 +7290,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -6947,8 +7306,8 @@ public boolean hasEndTime() {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -6967,8 +7326,8 @@ public com.google.protobuf.Timestamp getEndTime() {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -6991,8 +7350,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -7012,8 +7371,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -7038,8 +7397,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -7060,8 +7419,8 @@ public Builder clearEndTime() {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -7076,8 +7435,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -7094,8 +7453,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
*
*
*
- * Optional. The end time at which a recurring patch deployment schedule is no longer
- * active.
+ * Optional. The end time at which a recurring patch deployment schedule is no
+ * longer active.
*
*
* .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -9030,10 +9389,10 @@ public interface MonthlyScheduleOrBuilder
*
*
*
- * Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
- * indicates the last day of the month.
- * Months without the target day will be skipped. For example, a schedule to
- * run "every month on the 31st" will not run in February, April, June, etc.
+ * Required. One day of the month. 1-31 indicates the 1st to the 31st day.
+ * -1 indicates the last day of the month. Months without the target day
+ * will be skipped. For example, a schedule to run "every month on the 31st"
+ * will not run in February, April, June, etc.
*
*
* int32 month_day = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -9267,10 +9626,10 @@ public com.google.cloud.osconfig.v1.PatchDeployments.WeekDayOfMonth getWeekDayOf
*
*
*
- * Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
- * indicates the last day of the month.
- * Months without the target day will be skipped. For example, a schedule to
- * run "every month on the 31st" will not run in February, April, June, etc.
+ * Required. One day of the month. 1-31 indicates the 1st to the 31st day.
+ * -1 indicates the last day of the month. Months without the target day
+ * will be skipped. For example, a schedule to run "every month on the 31st"
+ * will not run in February, April, June, etc.
*
*
* int32 month_day = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -9918,10 +10277,10 @@ public Builder clearWeekDayOfMonth() {
*
*
*
- * Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
- * indicates the last day of the month.
- * Months without the target day will be skipped. For example, a schedule to
- * run "every month on the 31st" will not run in February, April, June, etc.
+ * Required. One day of the month. 1-31 indicates the 1st to the 31st day.
+ * -1 indicates the last day of the month. Months without the target day
+ * will be skipped. For example, a schedule to run "every month on the 31st"
+ * will not run in February, April, June, etc.
*
*
* int32 month_day = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -9938,10 +10297,10 @@ public int getMonthDay() {
*
*
*
- * Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
- * indicates the last day of the month.
- * Months without the target day will be skipped. For example, a schedule to
- * run "every month on the 31st" will not run in February, April, June, etc.
+ * Required. One day of the month. 1-31 indicates the 1st to the 31st day.
+ * -1 indicates the last day of the month. Months without the target day
+ * will be skipped. For example, a schedule to run "every month on the 31st"
+ * will not run in February, April, June, etc.
*
*
* int32 month_day = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -9959,10 +10318,10 @@ public Builder setMonthDay(int value) {
*
*
*
- * Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
- * indicates the last day of the month.
- * Months without the target day will be skipped. For example, a schedule to
- * run "every month on the 31st" will not run in February, April, June, etc.
+ * Required. One day of the month. 1-31 indicates the 1st to the 31st day.
+ * -1 indicates the last day of the month. Months without the target day
+ * will be skipped. For example, a schedule to run "every month on the 31st"
+ * will not run in February, April, June, etc.
*
*
* int32 month_day = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -10042,8 +10401,8 @@ public interface WeekDayOfMonthOrBuilder
*
*
*
- * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- * indicates the last week of the month.
+ * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
+ * month. -1 indicates the last week of the month.
*
*
* int32 week_ordinal = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -10183,8 +10542,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- * indicates the last week of the month.
+ * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
+ * month. -1 indicates the last week of the month.
*
*
* int32 week_ordinal = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -10578,8 +10937,8 @@ public Builder mergeFrom(
*
*
*
- * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- * indicates the last week of the month.
+ * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
+ * month. -1 indicates the last week of the month.
*
*
* int32 week_ordinal = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -10594,8 +10953,8 @@ public int getWeekOrdinal() {
*
*
*
- * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- * indicates the last week of the month.
+ * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
+ * month. -1 indicates the last week of the month.
*
*
* int32 week_ordinal = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -10613,8 +10972,8 @@ public Builder setWeekOrdinal(int value) {
*
*
*
- * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- * indicates the last week of the month.
+ * Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
+ * month. -1 indicates the last week of the month.
*
*
* int32 week_ordinal = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -10787,7 +11146,8 @@ public interface CreatePatchDeploymentRequestOrBuilder
*
*
*
- * Required. The project to apply this patch deployment to in the form `projects/*`.
+ * Required. The project to apply this patch deployment to in the form
+ * `projects/*`.
*
*
*
@@ -10801,7 +11161,8 @@ public interface CreatePatchDeploymentRequestOrBuilder
*
*
*
- * Required. The project to apply this patch deployment to in the form `projects/*`.
+ * Required. The project to apply this patch deployment to in the form
+ * `projects/*`.
*
*
*
@@ -10816,8 +11177,8 @@ public interface CreatePatchDeploymentRequestOrBuilder
*
*
*
- * Required. A name for the patch deployment in the project. When creating a name
- * the following rules apply:
+ * Required. A name for the patch deployment in the project. When creating a
+ * name the following rules apply:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
@@ -10834,8 +11195,8 @@ public interface CreatePatchDeploymentRequestOrBuilder
*
*
*
- * Required. A name for the patch deployment in the project. When creating a name
- * the following rules apply:
+ * Required. A name for the patch deployment in the project. When creating a
+ * name the following rules apply:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
@@ -11019,7 +11380,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The project to apply this patch deployment to in the form `projects/*`.
+ * Required. The project to apply this patch deployment to in the form
+ * `projects/*`.
*
*
*
@@ -11044,7 +11406,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project to apply this patch deployment to in the form `projects/*`.
+ * Required. The project to apply this patch deployment to in the form
+ * `projects/*`.
*
*
*
@@ -11072,8 +11435,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. A name for the patch deployment in the project. When creating a name
- * the following rules apply:
+ * Required. A name for the patch deployment in the project. When creating a
+ * name the following rules apply:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
@@ -11101,8 +11464,8 @@ public java.lang.String getPatchDeploymentId() {
*
*
*
- * Required. A name for the patch deployment in the project. When creating a name
- * the following rules apply:
+ * Required. A name for the patch deployment in the project. When creating a
+ * name the following rules apply:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
@@ -11573,7 +11936,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The project to apply this patch deployment to in the form `projects/*`.
+ * Required. The project to apply this patch deployment to in the form
+ * `projects/*`.
*
*
*
@@ -11597,7 +11961,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The project to apply this patch deployment to in the form `projects/*`.
+ * Required. The project to apply this patch deployment to in the form
+ * `projects/*`.
*
*
*
@@ -11621,7 +11986,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The project to apply this patch deployment to in the form `projects/*`.
+ * Required. The project to apply this patch deployment to in the form
+ * `projects/*`.
*
*
*
@@ -11644,7 +12010,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The project to apply this patch deployment to in the form `projects/*`.
+ * Required. The project to apply this patch deployment to in the form
+ * `projects/*`.
*
*
*
@@ -11663,7 +12030,8 @@ public Builder clearParent() {
*
*
*
- * Required. The project to apply this patch deployment to in the form `projects/*`.
+ * Required. The project to apply this patch deployment to in the form
+ * `projects/*`.
*
*
*
@@ -11689,8 +12057,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Required. A name for the patch deployment in the project. When creating a name
- * the following rules apply:
+ * Required. A name for the patch deployment in the project. When creating a
+ * name the following rules apply:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
@@ -11717,8 +12085,8 @@ public java.lang.String getPatchDeploymentId() {
*
*
*
- * Required. A name for the patch deployment in the project. When creating a name
- * the following rules apply:
+ * Required. A name for the patch deployment in the project. When creating a
+ * name the following rules apply:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
@@ -11745,8 +12113,8 @@ public com.google.protobuf.ByteString getPatchDeploymentIdBytes() {
*
*
*
- * Required. A name for the patch deployment in the project. When creating a name
- * the following rules apply:
+ * Required. A name for the patch deployment in the project. When creating a
+ * name the following rules apply:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
@@ -11772,8 +12140,8 @@ public Builder setPatchDeploymentId(java.lang.String value) {
*
*
*
- * Required. A name for the patch deployment in the project. When creating a name
- * the following rules apply:
+ * Required. A name for the patch deployment in the project. When creating a
+ * name the following rules apply:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
@@ -11795,8 +12163,8 @@ public Builder clearPatchDeploymentId() {
*
*
*
- * Required. A name for the patch deployment in the project. When creating a name
- * the following rules apply:
+ * Required. A name for the patch deployment in the project. When creating a
+ * name the following rules apply:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
@@ -12822,7 +13190,8 @@ public interface ListPatchDeploymentsRequestOrBuilder
*
*
*
- * Optional. The maximum number of patch deployments to return. Default is 100.
+ * Optional. The maximum number of patch deployments to return. Default is
+ * 100.
*
*
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -12835,8 +13204,9 @@ public interface ListPatchDeploymentsRequestOrBuilder
*
*
*
- * Optional. A pagination token returned from a previous call to ListPatchDeployments
- * that indicates where this listing should continue from.
+ * Optional. A pagination token returned from a previous call to
+ * ListPatchDeployments that indicates where this listing should continue
+ * from.
*
*
* string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -12848,8 +13218,9 @@ public interface ListPatchDeploymentsRequestOrBuilder
*
*
*
- * Optional. A pagination token returned from a previous call to ListPatchDeployments
- * that indicates where this listing should continue from.
+ * Optional. A pagination token returned from a previous call to
+ * ListPatchDeployments that indicates where this listing should continue
+ * from.
*
*
* string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -13025,7 +13396,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Optional. The maximum number of patch deployments to return. Default is 100.
+ * Optional. The maximum number of patch deployments to return. Default is
+ * 100.
*
*
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -13043,8 +13415,9 @@ public int getPageSize() {
*
*
*
- * Optional. A pagination token returned from a previous call to ListPatchDeployments
- * that indicates where this listing should continue from.
+ * Optional. A pagination token returned from a previous call to
+ * ListPatchDeployments that indicates where this listing should continue
+ * from.
*
*
* string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -13067,8 +13440,9 @@ public java.lang.String getPageToken() {
*
*
*
- * Optional. A pagination token returned from a previous call to ListPatchDeployments
- * that indicates where this listing should continue from.
+ * Optional. A pagination token returned from a previous call to
+ * ListPatchDeployments that indicates where this listing should continue
+ * from.
*
*
* string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -13582,7 +13956,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. The maximum number of patch deployments to return. Default is 100.
+ * Optional. The maximum number of patch deployments to return. Default is
+ * 100.
*
*
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -13597,7 +13972,8 @@ public int getPageSize() {
*
*
*
- * Optional. The maximum number of patch deployments to return. Default is 100.
+ * Optional. The maximum number of patch deployments to return. Default is
+ * 100.
*
*
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -13615,7 +13991,8 @@ public Builder setPageSize(int value) {
*
*
*
- * Optional. The maximum number of patch deployments to return. Default is 100.
+ * Optional. The maximum number of patch deployments to return. Default is
+ * 100.
*
*
* int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -13634,8 +14011,9 @@ public Builder clearPageSize() {
*
*
*
- * Optional. A pagination token returned from a previous call to ListPatchDeployments
- * that indicates where this listing should continue from.
+ * Optional. A pagination token returned from a previous call to
+ * ListPatchDeployments that indicates where this listing should continue
+ * from.
*
*
* string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -13657,8 +14035,9 @@ public java.lang.String getPageToken() {
*
*
*
- * Optional. A pagination token returned from a previous call to ListPatchDeployments
- * that indicates where this listing should continue from.
+ * Optional. A pagination token returned from a previous call to
+ * ListPatchDeployments that indicates where this listing should continue
+ * from.
*
*
* string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -13680,8 +14059,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
*
*
- * Optional. A pagination token returned from a previous call to ListPatchDeployments
- * that indicates where this listing should continue from.
+ * Optional. A pagination token returned from a previous call to
+ * ListPatchDeployments that indicates where this listing should continue
+ * from.
*
*
* string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -13702,8 +14082,9 @@ public Builder setPageToken(java.lang.String value) {
*
*
*
- * Optional. A pagination token returned from a previous call to ListPatchDeployments
- * that indicates where this listing should continue from.
+ * Optional. A pagination token returned from a previous call to
+ * ListPatchDeployments that indicates where this listing should continue
+ * from.
*
*
* string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -13720,8 +14101,9 @@ public Builder clearPageToken() {
*
*
*
- * Optional. A pagination token returned from a previous call to ListPatchDeployments
- * that indicates where this listing should continue from.
+ * Optional. A pagination token returned from a previous call to
+ * ListPatchDeployments that indicates where this listing should continue
+ * from.
*
*
* string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -15829,7 +16211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ation.proto\032\037google/protobuf/timestamp.p"
+ "roto\032\032google/type/datetime.proto\032\033google"
+ "/type/dayofweek.proto\032\033google/type/timeo"
- + "fday.proto\"\261\005\n\017PatchDeployment\022\014\n\004name\030\001"
+ + "fday.proto\"\357\005\n\017PatchDeployment\022\014\n\004name\030\001"
+ " \001(\t\022\030\n\013description\030\002 \001(\tB\003\340A\001\022K\n\017instan"
+ "ce_filter\030\003 \001(\0132-.google.cloud.osconfig."
+ "v1.PatchInstanceFilterB\003\340A\002\022@\n\014patch_con"
@@ -15843,57 +16225,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up"
+ "date_time\030\t \001(\0132\032.google.protobuf.Timest"
+ "ampB\003\340A\003\022:\n\021last_execute_time\030\n \001(\0132\032.go"
- + "ogle.protobuf.TimestampB\003\340A\003:d\352Aa\n\'oscon"
- + "fig.googleapis.com/PatchDeployment\0226proj"
- + "ects/{project}/patchDeployments/{patch_d"
- + "eployment}B\n\n\010schedule\"H\n\017OneTimeSchedul"
- + "e\0225\n\014execute_time\030\001 \001(\0132\032.google.protobu"
- + "f.TimestampB\003\340A\002\"\373\004\n\021RecurringSchedule\022-"
- + "\n\ttime_zone\030\001 \001(\0132\025.google.type.TimeZone"
- + "B\003\340A\002\0223\n\nstart_time\030\002 \001(\0132\032.google.proto"
- + "buf.TimestampB\003\340A\001\0221\n\010end_time\030\003 \001(\0132\032.g"
- + "oogle.protobuf.TimestampB\003\340A\001\0220\n\013time_of"
- + "_day\030\004 \001(\0132\026.google.type.TimeOfDayB\003\340A\002\022"
- + "M\n\tfrequency\030\005 \001(\01625.google.cloud.osconf"
- + "ig.v1.RecurringSchedule.FrequencyB\003\340A\002\022?"
- + "\n\006weekly\030\006 \001(\0132(.google.cloud.osconfig.v"
- + "1.WeeklyScheduleB\003\340A\002H\000\022A\n\007monthly\030\007 \001(\013"
- + "2).google.cloud.osconfig.v1.MonthlySched"
- + "uleB\003\340A\002H\000\022:\n\021last_execute_time\030\t \001(\0132\032."
- + "google.protobuf.TimestampB\003\340A\003\022:\n\021next_e"
- + "xecute_time\030\n \001(\0132\032.google.protobuf.Time"
- + "stampB\003\340A\003\"?\n\tFrequency\022\031\n\025FREQUENCY_UNS"
- + "PECIFIED\020\000\022\n\n\006WEEKLY\020\001\022\013\n\007MONTHLY\020\002B\021\n\017s"
- + "chedule_config\"B\n\016WeeklySchedule\0220\n\013day_"
- + "of_week\030\001 \001(\0162\026.google.type.DayOfWeekB\003\340"
- + "A\002\"\207\001\n\017MonthlySchedule\022J\n\021week_day_of_mo"
- + "nth\030\001 \001(\0132(.google.cloud.osconfig.v1.Wee"
- + "kDayOfMonthB\003\340A\002H\000\022\030\n\tmonth_day\030\002 \001(\005B\003\340"
- + "A\002H\000B\016\n\014day_of_month\"]\n\016WeekDayOfMonth\022\031"
- + "\n\014week_ordinal\030\001 \001(\005B\003\340A\002\0220\n\013day_of_week"
- + "\030\002 \001(\0162\026.google.type.DayOfWeekB\003\340A\002\"\317\001\n\034"
- + "CreatePatchDeploymentRequest\022C\n\006parent\030\001"
- + " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl"
- + "eapis.com/Project\022 \n\023patch_deployment_id"
- + "\030\002 \001(\tB\003\340A\002\022H\n\020patch_deployment\030\003 \001(\0132)."
- + "google.cloud.osconfig.v1.PatchDeployment"
- + "B\003\340A\002\"Z\n\031GetPatchDeploymentRequest\022=\n\004na"
- + "me\030\001 \001(\tB/\340A\002\372A)\n\'osconfig.googleapis.co"
- + "m/PatchDeployment\"\223\001\n\033ListPatchDeploymen"
- + "tsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud"
- + "resourcemanager.googleapis.com/Project\022\026"
- + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001"
- + "(\tB\003\340A\001\"}\n\034ListPatchDeploymentsResponse\022"
- + "D\n\021patch_deployments\030\001 \003(\0132).google.clou"
- + "d.osconfig.v1.PatchDeployment\022\027\n\017next_pa"
- + "ge_token\030\002 \001(\t\"]\n\034DeletePatchDeploymentR"
- + "equest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'osconfig.g"
- + "oogleapis.com/PatchDeploymentB\306\001\n\034com.go"
- + "ogle.cloud.osconfig.v1B\020PatchDeployments"
- + "Z@google.golang.org/genproto/googleapis/"
- + "cloud/osconfig/v1;osconfig\252\002\030Google.Clou"
- + "d.OsConfig.V1\312\002\030Google\\Cloud\\OsConfig\\V1"
- + "\352\002\033Google::Cloud::OsConfig::V1b\006proto3"
+ + "ogle.protobuf.TimestampB\003\340A\003\022<\n\007rollout\030"
+ + "\013 \001(\0132&.google.cloud.osconfig.v1.PatchRo"
+ + "lloutB\003\340A\001:d\352Aa\n\'osconfig.googleapis.com"
+ + "/PatchDeployment\0226projects/{project}/pat"
+ + "chDeployments/{patch_deployment}B\n\n\010sche"
+ + "dule\"H\n\017OneTimeSchedule\0225\n\014execute_time\030"
+ + "\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"\373"
+ + "\004\n\021RecurringSchedule\022-\n\ttime_zone\030\001 \001(\0132"
+ + "\025.google.type.TimeZoneB\003\340A\002\0223\n\nstart_tim"
+ + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001"
+ + "\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf.Tim"
+ + "estampB\003\340A\001\0220\n\013time_of_day\030\004 \001(\0132\026.googl"
+ + "e.type.TimeOfDayB\003\340A\002\022M\n\tfrequency\030\005 \001(\016"
+ + "25.google.cloud.osconfig.v1.RecurringSch"
+ + "edule.FrequencyB\003\340A\002\022?\n\006weekly\030\006 \001(\0132(.g"
+ + "oogle.cloud.osconfig.v1.WeeklyScheduleB\003"
+ + "\340A\002H\000\022A\n\007monthly\030\007 \001(\0132).google.cloud.os"
+ + "config.v1.MonthlyScheduleB\003\340A\002H\000\022:\n\021last"
+ + "_execute_time\030\t \001(\0132\032.google.protobuf.Ti"
+ + "mestampB\003\340A\003\022:\n\021next_execute_time\030\n \001(\0132"
+ + "\032.google.protobuf.TimestampB\003\340A\003\"?\n\tFreq"
+ + "uency\022\031\n\025FREQUENCY_UNSPECIFIED\020\000\022\n\n\006WEEK"
+ + "LY\020\001\022\013\n\007MONTHLY\020\002B\021\n\017schedule_config\"B\n\016"
+ + "WeeklySchedule\0220\n\013day_of_week\030\001 \001(\0162\026.go"
+ + "ogle.type.DayOfWeekB\003\340A\002\"\207\001\n\017MonthlySche"
+ + "dule\022J\n\021week_day_of_month\030\001 \001(\0132(.google"
+ + ".cloud.osconfig.v1.WeekDayOfMonthB\003\340A\002H\000"
+ + "\022\030\n\tmonth_day\030\002 \001(\005B\003\340A\002H\000B\016\n\014day_of_mon"
+ + "th\"]\n\016WeekDayOfMonth\022\031\n\014week_ordinal\030\001 \001"
+ + "(\005B\003\340A\002\0220\n\013day_of_week\030\002 \001(\0162\026.google.ty"
+ + "pe.DayOfWeekB\003\340A\002\"\317\001\n\034CreatePatchDeploym"
+ + "entRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clou"
+ + "dresourcemanager.googleapis.com/Project\022"
+ + " \n\023patch_deployment_id\030\002 \001(\tB\003\340A\002\022H\n\020pat"
+ + "ch_deployment\030\003 \001(\0132).google.cloud.oscon"
+ + "fig.v1.PatchDeploymentB\003\340A\002\"Z\n\031GetPatchD"
+ + "eploymentRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'"
+ + "osconfig.googleapis.com/PatchDeployment\""
+ + "\223\001\n\033ListPatchDeploymentsRequest\022C\n\006paren"
+ + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go"
+ + "ogleapis.com/Project\022\026\n\tpage_size\030\002 \001(\005B"
+ + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"}\n\034ListPat"
+ + "chDeploymentsResponse\022D\n\021patch_deploymen"
+ + "ts\030\001 \003(\0132).google.cloud.osconfig.v1.Patc"
+ + "hDeployment\022\027\n\017next_page_token\030\002 \001(\t\"]\n\034"
+ + "DeletePatchDeploymentRequest\022=\n\004name\030\001 \001"
+ + "(\tB/\340A\002\372A)\n\'osconfig.googleapis.com/Patc"
+ + "hDeploymentB\306\001\n\034com.google.cloud.osconfi"
+ + "g.v1B\020PatchDeploymentsZ@google.golang.or"
+ + "g/genproto/googleapis/cloud/osconfig/v1;"
+ + "osconfig\252\002\030Google.Cloud.OsConfig.V1\312\002\030Go"
+ + "ogle\\Cloud\\OsConfig\\V1\352\002\033Google::Cloud::"
+ + "OsConfig::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -15924,6 +16308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CreateTime",
"UpdateTime",
"LastExecuteTime",
+ "Rollout",
"Schedule",
});
internal_static_google_cloud_osconfig_v1_OneTimeSchedule_descriptor =
diff --git a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobs.java b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobs.java
index e06d0cad..c88d5520 100644
--- a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobs.java
+++ b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobs.java
@@ -92,8 +92,8 @@ public interface ExecutePatchJobRequestOrBuilder
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -107,8 +107,8 @@ public interface ExecutePatchJobRequestOrBuilder
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -122,8 +122,8 @@ public interface ExecutePatchJobRequestOrBuilder
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -247,6 +247,41 @@ public interface ExecutePatchJobRequestOrBuilder
* @return The bytes for displayName.
*/
com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ *
+ * @return Whether the rollout field is set.
+ */
+ boolean hasRollout();
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ *
+ * @return The rollout.
+ */
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getRollout();
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ */
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder();
}
/**
*
@@ -377,6 +412,23 @@ private ExecutePatchJobRequest(
java.lang.String s = input.readStringRequireUtf8();
displayName_ = s;
+ break;
+ }
+ case 74:
+ {
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder subBuilder = null;
+ if (rollout_ != null) {
+ subBuilder = rollout_.toBuilder();
+ }
+ rollout_ =
+ input.readMessage(
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(rollout_);
+ rollout_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -523,8 +575,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -541,8 +593,8 @@ public boolean hasInstanceFilter() {
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -561,8 +613,8 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchInstanceFilter getInstanceFil
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -743,6 +795,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
}
}
+ public static final int ROLLOUT_FIELD_NUMBER = 9;
+ private com.google.cloud.osconfig.v1.PatchJobs.PatchRollout rollout_;
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ *
+ * @return Whether the rollout field is set.
+ */
+ @java.lang.Override
+ public boolean hasRollout() {
+ return rollout_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ *
+ * @return The rollout.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getRollout() {
+ return rollout_ == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance()
+ : rollout_;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder() {
+ return getRollout();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -778,6 +878,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getDisplayNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, displayName_);
}
+ if (rollout_ != null) {
+ output.writeMessage(9, getRollout());
+ }
unknownFields.writeTo(output);
}
@@ -808,6 +911,9 @@ public int getSerializedSize() {
if (!getDisplayNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_);
}
+ if (rollout_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRollout());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -840,6 +946,10 @@ public boolean equals(final java.lang.Object obj) {
}
if (getDryRun() != other.getDryRun()) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (hasRollout() != other.hasRollout()) return false;
+ if (hasRollout()) {
+ if (!getRollout().equals(other.getRollout())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -871,6 +981,10 @@ public int hashCode() {
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun());
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
+ if (hasRollout()) {
+ hash = (37 * hash) + ROLLOUT_FIELD_NUMBER;
+ hash = (53 * hash) + getRollout().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -1046,6 +1160,12 @@ public Builder clear() {
displayName_ = "";
+ if (rolloutBuilder_ == null) {
+ rollout_ = null;
+ } else {
+ rollout_ = null;
+ rolloutBuilder_ = null;
+ }
return this;
}
@@ -1093,6 +1213,11 @@ public com.google.cloud.osconfig.v1.PatchJobs.ExecutePatchJobRequest buildPartia
}
result.dryRun_ = dryRun_;
result.displayName_ = displayName_;
+ if (rolloutBuilder_ == null) {
+ result.rollout_ = rollout_;
+ } else {
+ result.rollout_ = rolloutBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -1171,6 +1296,9 @@ public Builder mergeFrom(
displayName_ = other.displayName_;
onChanged();
}
+ if (other.hasRollout()) {
+ mergeRollout(other.getRollout());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1439,8 +1567,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -1456,8 +1584,8 @@ public boolean hasInstanceFilter() {
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -1479,8 +1607,8 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchInstanceFilter getInstanceFil
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -1505,8 +1633,8 @@ public Builder setInstanceFilter(
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -1528,8 +1656,8 @@ public Builder setInstanceFilter(
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -1559,8 +1687,8 @@ public Builder mergeInstanceFilter(
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -1582,8 +1710,8 @@ public Builder clearInstanceFilter() {
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -1600,8 +1728,8 @@ public Builder clearInstanceFilter() {
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -1622,8 +1750,8 @@ public Builder clearInstanceFilter() {
*
*
*
- * Required. Instances to patch, either explicitly or filtered by some criteria such
- * as zone or labels.
+ * Required. Instances to patch, either explicitly or filtered by some
+ * criteria such as zone or labels.
*
*
*
@@ -2191,6 +2319,192 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.cloud.osconfig.v1.PatchJobs.PatchRollout rollout_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder>
+ rolloutBuilder_;
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ *
+ * @return Whether the rollout field is set.
+ */
+ public boolean hasRollout() {
+ return rolloutBuilder_ != null || rollout_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ *
+ * @return The rollout.
+ */
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getRollout() {
+ if (rolloutBuilder_ == null) {
+ return rollout_ == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance()
+ : rollout_;
+ } else {
+ return rolloutBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ */
+ public Builder setRollout(com.google.cloud.osconfig.v1.PatchJobs.PatchRollout value) {
+ if (rolloutBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rollout_ = value;
+ onChanged();
+ } else {
+ rolloutBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ */
+ public Builder setRollout(
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder builderForValue) {
+ if (rolloutBuilder_ == null) {
+ rollout_ = builderForValue.build();
+ onChanged();
+ } else {
+ rolloutBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ */
+ public Builder mergeRollout(com.google.cloud.osconfig.v1.PatchJobs.PatchRollout value) {
+ if (rolloutBuilder_ == null) {
+ if (rollout_ != null) {
+ rollout_ =
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.newBuilder(rollout_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ rollout_ = value;
+ }
+ onChanged();
+ } else {
+ rolloutBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ */
+ public Builder clearRollout() {
+ if (rolloutBuilder_ == null) {
+ rollout_ = null;
+ onChanged();
+ } else {
+ rollout_ = null;
+ rolloutBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ */
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder getRolloutBuilder() {
+
+ onChanged();
+ return getRolloutFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ */
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder() {
+ if (rolloutBuilder_ != null) {
+ return rolloutBuilder_.getMessageOrBuilder();
+ } else {
+ return rollout_ == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance()
+ : rollout_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy of the patch job.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder>
+ getRolloutFieldBuilder() {
+ if (rolloutBuilder_ == null) {
+ rolloutBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder>(
+ getRollout(), getParentForChildren(), isClean());
+ rollout_ = null;
+ }
+ return rolloutBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2926,7 +3240,8 @@ public interface ListPatchJobInstanceDetailsRequestOrBuilder
*
*
*
- * Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ * Required. The parent for the instances are in the form of
+ * `projects/*/patchJobs/*`.
*
*
*
@@ -2940,7 +3255,8 @@ public interface ListPatchJobInstanceDetailsRequestOrBuilder
*
*
*
- * Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ * Required. The parent for the instances are in the form of
+ * `projects/*/patchJobs/*`.
*
*
*
@@ -3143,7 +3459,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ * Required. The parent for the instances are in the form of
+ * `projects/*/patchJobs/*`.
*
*
*
@@ -3168,7 +3485,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ * Required. The parent for the instances are in the form of
+ * `projects/*/patchJobs/*`.
*
*
*
@@ -3706,7 +4024,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ * Required. The parent for the instances are in the form of
+ * `projects/*/patchJobs/*`.
*
*
*
@@ -3730,7 +4049,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ * Required. The parent for the instances are in the form of
+ * `projects/*/patchJobs/*`.
*
*
*
@@ -3754,7 +4074,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ * Required. The parent for the instances are in the form of
+ * `projects/*/patchJobs/*`.
*
*
*
@@ -3777,7 +4098,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ * Required. The parent for the instances are in the form of
+ * `projects/*/patchJobs/*`.
*
*
*
@@ -3796,7 +4118,8 @@ public Builder clearParent() {
*
*
*
- * Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ * Required. The parent for the instances are in the form of
+ * `projects/*/patchJobs/*`.
*
*
*
@@ -9428,7 +9751,7 @@ public interface PatchJobOrBuilder
*
*
*
- * The current state of the PatchJob .
+ * The current state of the PatchJob.
*
*
* .google.cloud.osconfig.v1.PatchJob.State state = 5;
@@ -9440,7 +9763,7 @@ public interface PatchJobOrBuilder
*
*
*
- * The current state of the PatchJob .
+ * The current state of the PatchJob.
*
*
* .google.cloud.osconfig.v1.PatchJob.State state = 5;
@@ -9681,6 +10004,41 @@ public interface PatchJobOrBuilder
* @return The bytes for patchDeployment.
*/
com.google.protobuf.ByteString getPatchDeploymentBytes();
+
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ *
+ * @return Whether the rollout field is set.
+ */
+ boolean hasRollout();
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ *
+ * @return The rollout.
+ */
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getRollout();
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ */
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder();
}
/**
*
@@ -9688,7 +10046,7 @@ public interface PatchJobOrBuilder
*
* A high level representation of a patch job that is either in progress
* or has completed.
- * Instances details are not included in the job. To paginate through instance
+ * Instance details are not included in the job. To paginate through instance
* details, use ListPatchJobInstanceDetails.
* For more information about patch jobs, see
* [Creating patch
@@ -9894,6 +10252,23 @@ private PatchJob(
java.lang.String s = input.readStringRequireUtf8();
patchDeployment_ = s;
+ break;
+ }
+ case 130:
+ {
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder subBuilder = null;
+ if (rollout_ != null) {
+ subBuilder = rollout_.toBuilder();
+ }
+ rollout_ =
+ input.readMessage(
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(rollout_);
+ rollout_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -12511,7 +12886,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * The current state of the PatchJob .
+ * The current state of the PatchJob.
*
*
* .google.cloud.osconfig.v1.PatchJob.State state = 5;
@@ -12526,7 +12901,7 @@ public int getStateValue() {
*
*
*
- * The current state of the PatchJob .
+ * The current state of the PatchJob.
*
*
* .google.cloud.osconfig.v1.PatchJob.State state = 5;
@@ -12886,6 +13261,54 @@ public com.google.protobuf.ByteString getPatchDeploymentBytes() {
}
}
+ public static final int ROLLOUT_FIELD_NUMBER = 16;
+ private com.google.cloud.osconfig.v1.PatchJobs.PatchRollout rollout_;
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ *
+ * @return Whether the rollout field is set.
+ */
+ @java.lang.Override
+ public boolean hasRollout() {
+ return rollout_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ *
+ * @return The rollout.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getRollout() {
+ return rollout_ == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance()
+ : rollout_;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder() {
+ return getRollout();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -12943,6 +13366,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getPatchDeploymentBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, patchDeployment_);
}
+ if (rollout_ != null) {
+ output.writeMessage(16, getRollout());
+ }
unknownFields.writeTo(output);
}
@@ -12997,6 +13423,9 @@ public int getSerializedSize() {
if (!getPatchDeploymentBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, patchDeployment_);
}
+ if (rollout_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getRollout());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -13046,6 +13475,10 @@ public boolean equals(final java.lang.Object obj) {
if (java.lang.Double.doubleToLongBits(getPercentComplete())
!= java.lang.Double.doubleToLongBits(other.getPercentComplete())) return false;
if (!getPatchDeployment().equals(other.getPatchDeployment())) return false;
+ if (hasRollout() != other.hasRollout()) return false;
+ if (hasRollout()) {
+ if (!getRollout().equals(other.getRollout())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -13100,6 +13533,10 @@ public int hashCode() {
java.lang.Double.doubleToLongBits(getPercentComplete()));
hash = (37 * hash) + PATCH_DEPLOYMENT_FIELD_NUMBER;
hash = (53 * hash) + getPatchDeployment().hashCode();
+ if (hasRollout()) {
+ hash = (37 * hash) + ROLLOUT_FIELD_NUMBER;
+ hash = (53 * hash) + getRollout().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -13207,7 +13644,7 @@ protected Builder newBuilderForType(
*
* A high level representation of a patch job that is either in progress
* or has completed.
- * Instances details are not included in the job. To paginate through instance
+ * Instance details are not included in the job. To paginate through instance
* details, use ListPatchJobInstanceDetails.
* For more information about patch jobs, see
* [Creating patch
@@ -13305,6 +13742,12 @@ public Builder clear() {
patchDeployment_ = "";
+ if (rolloutBuilder_ == null) {
+ rollout_ = null;
+ } else {
+ rollout_ = null;
+ rolloutBuilder_ = null;
+ }
return this;
}
@@ -13370,6 +13813,11 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchJob buildPartial() {
result.errorMessage_ = errorMessage_;
result.percentComplete_ = percentComplete_;
result.patchDeployment_ = patchDeployment_;
+ if (rolloutBuilder_ == null) {
+ result.rollout_ = rollout_;
+ } else {
+ result.rollout_ = rolloutBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -13469,6 +13917,9 @@ public Builder mergeFrom(com.google.cloud.osconfig.v1.PatchJobs.PatchJob other)
patchDeployment_ = other.patchDeployment_;
onChanged();
}
+ if (other.hasRollout()) {
+ mergeRollout(other.getRollout());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -14202,7 +14653,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * The current state of the PatchJob .
+ * The current state of the PatchJob.
*
*
* .google.cloud.osconfig.v1.PatchJob.State state = 5;
@@ -14217,7 +14668,7 @@ public int getStateValue() {
*
*
*
- * The current state of the PatchJob .
+ * The current state of the PatchJob.
*
*
* .google.cloud.osconfig.v1.PatchJob.State state = 5;
@@ -14235,7 +14686,7 @@ public Builder setStateValue(int value) {
*
*
*
- * The current state of the PatchJob .
+ * The current state of the PatchJob.
*
*
* .google.cloud.osconfig.v1.PatchJob.State state = 5;
@@ -14255,7 +14706,7 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchJob.State getState() {
*
*
*
- * The current state of the PatchJob .
+ * The current state of the PatchJob.
*
*
* .google.cloud.osconfig.v1.PatchJob.State state = 5;
@@ -14276,7 +14727,7 @@ public Builder setState(com.google.cloud.osconfig.v1.PatchJobs.PatchJob.State va
*
*
*
- * The current state of the PatchJob .
+ * The current state of the PatchJob.
*
*
* .google.cloud.osconfig.v1.PatchJob.State state = 5;
@@ -15406,6 +15857,192 @@ public Builder setPatchDeploymentBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.cloud.osconfig.v1.PatchJobs.PatchRollout rollout_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder>
+ rolloutBuilder_;
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ *
+ * @return Whether the rollout field is set.
+ */
+ public boolean hasRollout() {
+ return rolloutBuilder_ != null || rollout_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ *
+ * @return The rollout.
+ */
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getRollout() {
+ if (rolloutBuilder_ == null) {
+ return rollout_ == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance()
+ : rollout_;
+ } else {
+ return rolloutBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ */
+ public Builder setRollout(com.google.cloud.osconfig.v1.PatchJobs.PatchRollout value) {
+ if (rolloutBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rollout_ = value;
+ onChanged();
+ } else {
+ rolloutBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ */
+ public Builder setRollout(
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder builderForValue) {
+ if (rolloutBuilder_ == null) {
+ rollout_ = builderForValue.build();
+ onChanged();
+ } else {
+ rolloutBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ */
+ public Builder mergeRollout(com.google.cloud.osconfig.v1.PatchJobs.PatchRollout value) {
+ if (rolloutBuilder_ == null) {
+ if (rollout_ != null) {
+ rollout_ =
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.newBuilder(rollout_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ rollout_ = value;
+ }
+ onChanged();
+ } else {
+ rolloutBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ */
+ public Builder clearRollout() {
+ if (rolloutBuilder_ == null) {
+ rollout_ = null;
+ onChanged();
+ } else {
+ rollout_ = null;
+ rolloutBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ */
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder getRolloutBuilder() {
+
+ onChanged();
+ return getRolloutFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ */
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder() {
+ if (rolloutBuilder_ != null) {
+ return rolloutBuilder_.getMessageOrBuilder();
+ } else {
+ return rollout_ == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance()
+ : rollout_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Rollout strategy being applied.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout rollout = 16;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder>
+ getRolloutFieldBuilder() {
+ if (rolloutBuilder_ == null) {
+ rolloutBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder>(
+ getRollout(), getParentForChildren(), isClean());
+ rollout_ = null;
+ }
+ return rolloutBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -34556,6 +35193,1397 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchInstanceFilter getDefaultInst
}
}
+ public interface PatchRolloutOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1.PatchRollout)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Mode of the patch rollout.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1;
+ *
+ * @return The enum numeric value on the wire for mode.
+ */
+ int getModeValue();
+ /**
+ *
+ *
+ *
+ * Mode of the patch rollout.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1;
+ *
+ * @return The mode.
+ */
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode getMode();
+
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ *
+ * @return Whether the disruptionBudget field is set.
+ */
+ boolean hasDisruptionBudget();
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ *
+ * @return The disruptionBudget.
+ */
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent getDisruptionBudget();
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ */
+ com.google.cloud.osconfig.v1.Common.FixedOrPercentOrBuilder getDisruptionBudgetOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Patch rollout configuration specifications. Contains details on the
+ * concurrency control when applying patch(es) to all targeted VMs.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1.PatchRollout}
+ */
+ public static final class PatchRollout extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.PatchRollout)
+ PatchRolloutOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PatchRollout.newBuilder() to construct.
+ private PatchRollout(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private PatchRollout() {
+ mode_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new PatchRollout();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private PatchRollout(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ mode_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent.Builder subBuilder = null;
+ if (disruptionBudget_ != null) {
+ subBuilder = disruptionBudget_.toBuilder();
+ }
+ disruptionBudget_ =
+ input.readMessage(
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(disruptionBudget_);
+ disruptionBudget_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.osconfig.v1.PatchJobs
+ .internal_static_google_cloud_osconfig_v1_PatchRollout_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1.PatchJobs
+ .internal_static_google_cloud_osconfig_v1_PatchRollout_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.class,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of the rollout.
+ *
+ *
+ * Protobuf enum {@code google.cloud.osconfig.v1.PatchRollout.Mode}
+ */
+ public enum Mode implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Mode must be specified.
+ *
+ *
+ * MODE_UNSPECIFIED = 0;
+ */
+ MODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Patches are applied one zone at a time. The patch job begins in the
+ * region with the lowest number of targeted VMs. Within the region,
+ * patching begins in the zone with the lowest number of targeted VMs. If
+ * multiple regions (or zones within a region) have the same number of
+ * targeted VMs, a tie-breaker is achieved by sorting the regions or zones
+ * in alphabetical order.
+ *
+ *
+ * ZONE_BY_ZONE = 1;
+ */
+ ZONE_BY_ZONE(1),
+ /**
+ *
+ *
+ *
+ * Patches are applied to VMs in all zones at the same time.
+ *
+ *
+ * CONCURRENT_ZONES = 2;
+ */
+ CONCURRENT_ZONES(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Mode must be specified.
+ *
+ *
+ * MODE_UNSPECIFIED = 0;
+ */
+ public static final int MODE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Patches are applied one zone at a time. The patch job begins in the
+ * region with the lowest number of targeted VMs. Within the region,
+ * patching begins in the zone with the lowest number of targeted VMs. If
+ * multiple regions (or zones within a region) have the same number of
+ * targeted VMs, a tie-breaker is achieved by sorting the regions or zones
+ * in alphabetical order.
+ *
+ *
+ * ZONE_BY_ZONE = 1;
+ */
+ public static final int ZONE_BY_ZONE_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Patches are applied to VMs in all zones at the same time.
+ *
+ *
+ * CONCURRENT_ZONES = 2;
+ */
+ public static final int CONCURRENT_ZONES_VALUE = 2;
+
+ 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 Mode 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 Mode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MODE_UNSPECIFIED;
+ case 1:
+ return ZONE_BY_ZONE;
+ case 2:
+ return CONCURRENT_ZONES;
+ 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 Mode findValueByNumber(int number) {
+ return Mode.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 com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final Mode[] VALUES = values();
+
+ public static Mode 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 Mode(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.osconfig.v1.PatchRollout.Mode)
+ }
+
+ public static final int MODE_FIELD_NUMBER = 1;
+ private int mode_;
+ /**
+ *
+ *
+ *
+ * Mode of the patch rollout.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1;
+ *
+ * @return The enum numeric value on the wire for mode.
+ */
+ @java.lang.Override
+ public int getModeValue() {
+ return mode_;
+ }
+ /**
+ *
+ *
+ *
+ * Mode of the patch rollout.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1;
+ *
+ * @return The mode.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode getMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode result =
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode.valueOf(mode_);
+ return result == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int DISRUPTION_BUDGET_FIELD_NUMBER = 2;
+ private com.google.cloud.osconfig.v1.Common.FixedOrPercent disruptionBudget_;
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ *
+ * @return Whether the disruptionBudget field is set.
+ */
+ @java.lang.Override
+ public boolean hasDisruptionBudget() {
+ return disruptionBudget_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ *
+ * @return The disruptionBudget.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Common.FixedOrPercent getDisruptionBudget() {
+ return disruptionBudget_ == null
+ ? com.google.cloud.osconfig.v1.Common.FixedOrPercent.getDefaultInstance()
+ : disruptionBudget_;
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.Common.FixedOrPercentOrBuilder
+ getDisruptionBudgetOrBuilder() {
+ return getDisruptionBudget();
+ }
+
+ 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 (mode_
+ != com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode.MODE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, mode_);
+ }
+ if (disruptionBudget_ != null) {
+ output.writeMessage(2, getDisruptionBudget());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (mode_
+ != com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode.MODE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_);
+ }
+ if (disruptionBudget_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDisruptionBudget());
+ }
+ size += unknownFields.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.osconfig.v1.PatchJobs.PatchRollout)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout other =
+ (com.google.cloud.osconfig.v1.PatchJobs.PatchRollout) obj;
+
+ if (mode_ != other.mode_) return false;
+ if (hasDisruptionBudget() != other.hasDisruptionBudget()) return false;
+ if (hasDisruptionBudget()) {
+ if (!getDisruptionBudget().equals(other.getDisruptionBudget())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) 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) + MODE_FIELD_NUMBER;
+ hash = (53 * hash) + mode_;
+ if (hasDisruptionBudget()) {
+ hash = (37 * hash) + DISRUPTION_BUDGET_FIELD_NUMBER;
+ hash = (53 * hash) + getDisruptionBudget().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.PatchJobs.PatchRollout parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.PatchJobs.PatchRollout 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.osconfig.v1.PatchJobs.PatchRollout parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.PatchJobs.PatchRollout 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.osconfig.v1.PatchJobs.PatchRollout parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.PatchJobs.PatchRollout parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.PatchJobs.PatchRollout parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.PatchJobs.PatchRollout 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.osconfig.v1.PatchJobs.PatchRollout parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.PatchJobs.PatchRollout 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.osconfig.v1.PatchJobs.PatchRollout parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.PatchJobs.PatchRollout 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.osconfig.v1.PatchJobs.PatchRollout 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;
+ }
+ /**
+ *
+ *
+ *
+ * Patch rollout configuration specifications. Contains details on the
+ * concurrency control when applying patch(es) to all targeted VMs.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1.PatchRollout}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1.PatchRollout)
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRolloutOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.osconfig.v1.PatchJobs
+ .internal_static_google_cloud_osconfig_v1_PatchRollout_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1.PatchJobs
+ .internal_static_google_cloud_osconfig_v1_PatchRollout_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.class,
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Builder.class);
+ }
+
+ // Construct using com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ mode_ = 0;
+
+ if (disruptionBudgetBuilder_ == null) {
+ disruptionBudget_ = null;
+ } else {
+ disruptionBudget_ = null;
+ disruptionBudgetBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.osconfig.v1.PatchJobs
+ .internal_static_google_cloud_osconfig_v1_PatchRollout_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getDefaultInstanceForType() {
+ return com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout build() {
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout buildPartial() {
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout result =
+ new com.google.cloud.osconfig.v1.PatchJobs.PatchRollout(this);
+ result.mode_ = mode_;
+ if (disruptionBudgetBuilder_ == null) {
+ result.disruptionBudget_ = disruptionBudget_;
+ } else {
+ result.disruptionBudget_ = disruptionBudgetBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @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.osconfig.v1.PatchJobs.PatchRollout) {
+ return mergeFrom((com.google.cloud.osconfig.v1.PatchJobs.PatchRollout) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.osconfig.v1.PatchJobs.PatchRollout other) {
+ if (other == com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.getDefaultInstance())
+ return this;
+ if (other.mode_ != 0) {
+ setModeValue(other.getModeValue());
+ }
+ if (other.hasDisruptionBudget()) {
+ mergeDisruptionBudget(other.getDisruptionBudget());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.osconfig.v1.PatchJobs.PatchRollout) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int mode_ = 0;
+ /**
+ *
+ *
+ *
+ * Mode of the patch rollout.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1;
+ *
+ * @return The enum numeric value on the wire for mode.
+ */
+ @java.lang.Override
+ public int getModeValue() {
+ return mode_;
+ }
+ /**
+ *
+ *
+ *
+ * Mode of the patch rollout.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1;
+ *
+ * @param value The enum numeric value on the wire for mode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModeValue(int value) {
+
+ mode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Mode of the patch rollout.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1;
+ *
+ * @return The mode.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode getMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode result =
+ com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode.valueOf(mode_);
+ return result == null
+ ? com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Mode of the patch rollout.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1;
+ *
+ * @param value The mode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMode(com.google.cloud.osconfig.v1.PatchJobs.PatchRollout.Mode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Mode of the patch rollout.
+ *
+ *
+ * .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMode() {
+
+ mode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.osconfig.v1.Common.FixedOrPercent disruptionBudget_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent,
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent.Builder,
+ com.google.cloud.osconfig.v1.Common.FixedOrPercentOrBuilder>
+ disruptionBudgetBuilder_;
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ *
+ * @return Whether the disruptionBudget field is set.
+ */
+ public boolean hasDisruptionBudget() {
+ return disruptionBudgetBuilder_ != null || disruptionBudget_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ *
+ * @return The disruptionBudget.
+ */
+ public com.google.cloud.osconfig.v1.Common.FixedOrPercent getDisruptionBudget() {
+ if (disruptionBudgetBuilder_ == null) {
+ return disruptionBudget_ == null
+ ? com.google.cloud.osconfig.v1.Common.FixedOrPercent.getDefaultInstance()
+ : disruptionBudget_;
+ } else {
+ return disruptionBudgetBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ */
+ public Builder setDisruptionBudget(com.google.cloud.osconfig.v1.Common.FixedOrPercent value) {
+ if (disruptionBudgetBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ disruptionBudget_ = value;
+ onChanged();
+ } else {
+ disruptionBudgetBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ */
+ public Builder setDisruptionBudget(
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent.Builder builderForValue) {
+ if (disruptionBudgetBuilder_ == null) {
+ disruptionBudget_ = builderForValue.build();
+ onChanged();
+ } else {
+ disruptionBudgetBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ */
+ public Builder mergeDisruptionBudget(
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent value) {
+ if (disruptionBudgetBuilder_ == null) {
+ if (disruptionBudget_ != null) {
+ disruptionBudget_ =
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent.newBuilder(disruptionBudget_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ disruptionBudget_ = value;
+ }
+ onChanged();
+ } else {
+ disruptionBudgetBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ */
+ public Builder clearDisruptionBudget() {
+ if (disruptionBudgetBuilder_ == null) {
+ disruptionBudget_ = null;
+ onChanged();
+ } else {
+ disruptionBudget_ = null;
+ disruptionBudgetBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ */
+ public com.google.cloud.osconfig.v1.Common.FixedOrPercent.Builder
+ getDisruptionBudgetBuilder() {
+
+ onChanged();
+ return getDisruptionBudgetFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ */
+ public com.google.cloud.osconfig.v1.Common.FixedOrPercentOrBuilder
+ getDisruptionBudgetOrBuilder() {
+ if (disruptionBudgetBuilder_ != null) {
+ return disruptionBudgetBuilder_.getMessageOrBuilder();
+ } else {
+ return disruptionBudget_ == null
+ ? com.google.cloud.osconfig.v1.Common.FixedOrPercent.getDefaultInstance()
+ : disruptionBudget_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number (or percentage) of VMs per zone to disrupt at any given
+ * moment. The number of VMs calculated from multiplying the percentage by the
+ * total number of VMs in a zone is rounded up.
+ * During patching, a VM is considered disrupted from the time the agent is
+ * notified to begin until patching has completed. This disruption time
+ * includes the time to complete reboot and any post-patch steps.
+ * A VM contributes to the disruption budget if its patching operation fails
+ * either when applying the patches, running pre or post patch steps, or if it
+ * fails to respond with a success notification before timing out. VMs that
+ * are not running or do not have an active agent do not count toward this
+ * disruption budget.
+ * For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ * the patch job stops, because continuing to the next zone requires
+ * completion of the patch process in the previous zone.
+ * For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ * fail to patch in the current zone, the patch job continues to patch 2 VMs
+ * at a time until the zone is completed. When that zone is completed
+ * successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ * VMs in the next zone fail to patch, the patch job stops.
+ *
+ *
+ * .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent,
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent.Builder,
+ com.google.cloud.osconfig.v1.Common.FixedOrPercentOrBuilder>
+ getDisruptionBudgetFieldBuilder() {
+ if (disruptionBudgetBuilder_ == null) {
+ disruptionBudgetBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent,
+ com.google.cloud.osconfig.v1.Common.FixedOrPercent.Builder,
+ com.google.cloud.osconfig.v1.Common.FixedOrPercentOrBuilder>(
+ getDisruptionBudget(), getParentForChildren(), isClean());
+ disruptionBudget_ = null;
+ }
+ return disruptionBudgetBuilder_;
+ }
+
+ @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.osconfig.v1.PatchRollout)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.PatchRollout)
+ private static final com.google.cloud.osconfig.v1.PatchJobs.PatchRollout DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1.PatchJobs.PatchRollout();
+ }
+
+ public static com.google.cloud.osconfig.v1.PatchJobs.PatchRollout getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PatchRollout parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new PatchRollout(input, extensionRegistry);
+ }
+ };
+
+ 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.osconfig.v1.PatchJobs.PatchRollout getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_osconfig_v1_ExecutePatchJobRequest_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -34648,6 +36676,10 @@ public com.google.cloud.osconfig.v1.PatchJobs.PatchInstanceFilter getDefaultInst
internal_static_google_cloud_osconfig_v1_PatchInstanceFilter_GroupLabel_LabelsEntry_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_osconfig_v1_PatchInstanceFilter_GroupLabel_LabelsEntry_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_osconfig_v1_PatchRollout_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_osconfig_v1_PatchRollout_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -34660,145 +36692,155 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n)google/cloud/osconfig/v1/patch_jobs.pr"
+ "oto\022\030google.cloud.osconfig.v1\032\037google/ap"
+ "i/field_behavior.proto\032\031google/api/resou"
- + "rce.proto\032\036google/protobuf/duration.prot"
- + "o\032\037google/protobuf/timestamp.proto\"\320\002\n\026E"
- + "xecutePatchJobRequest\022C\n\006parent\030\001 \001(\tB3\340"
- + "A\002\372A-\n+cloudresourcemanager.googleapis.c"
- + "om/Project\022\023\n\013description\030\002 \001(\t\022K\n\017insta"
- + "nce_filter\030\007 \001(\0132-.google.cloud.osconfig"
- + ".v1.PatchInstanceFilterB\003\340A\002\022;\n\014patch_co"
- + "nfig\030\004 \001(\0132%.google.cloud.osconfig.v1.Pa"
- + "tchConfig\022+\n\010duration\030\005 \001(\0132\031.google.pro"
- + "tobuf.Duration\022\017\n\007dry_run\030\006 \001(\010\022\024\n\014displ"
- + "ay_name\030\010 \001(\t\"L\n\022GetPatchJobRequest\0226\n\004n"
- + "ame\030\001 \001(\tB(\340A\002\372A\"\n osconfig.googleapis.c"
- + "om/PatchJob\"\225\001\n\"ListPatchJobInstanceDeta"
- + "ilsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n osco"
- + "nfig.googleapis.com/PatchJob\022\021\n\tpage_siz"
- + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 "
- + "\001(\t\"\225\001\n#ListPatchJobInstanceDetailsRespo"
- + "nse\022U\n\032patch_job_instance_details\030\001 \003(\0132"
- + "1.google.cloud.osconfig.v1.PatchJobInsta"
- + "nceDetails\022\027\n\017next_page_token\030\002 \001(\t\"\326\001\n\027"
- + "PatchJobInstanceDetails\0222\n\004name\030\001 \001(\tB$\372"
- + "A!\n\037compute.googleapis.com/Instance\022\032\n\022i"
- + "nstance_system_id\030\002 \001(\t\022<\n\005state\030\003 \001(\0162-"
- + ".google.cloud.osconfig.v1.Instance.Patch"
- + "State\022\026\n\016failure_reason\030\004 \001(\t\022\025\n\rattempt"
- + "_count\030\005 \001(\003\"\222\001\n\024ListPatchJobsRequest\022C\n"
- + "\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana"
- + "ger.googleapis.com/Project\022\021\n\tpage_size\030"
- + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001("
- + "\t\"h\n\025ListPatchJobsResponse\0226\n\npatch_jobs"
- + "\030\001 \003(\0132\".google.cloud.osconfig.v1.PatchJ"
- + "ob\022\027\n\017next_page_token\030\002 \001(\t\"\243\013\n\010PatchJob"
- + "\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\016 \001(\t\022\023\n\013"
- + "description\030\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032"
- + ".google.protobuf.Timestamp\022/\n\013update_tim"
- + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\0227\n\005s"
- + "tate\030\005 \001(\0162(.google.cloud.osconfig.v1.Pa"
- + "tchJob.State\022F\n\017instance_filter\030\r \001(\0132-."
- + "google.cloud.osconfig.v1.PatchInstanceFi"
- + "lter\022;\n\014patch_config\030\007 \001(\0132%.google.clou"
- + "d.osconfig.v1.PatchConfig\022+\n\010duration\030\010 "
- + "\001(\0132\031.google.protobuf.Duration\022[\n\030instan"
- + "ce_details_summary\030\t \001(\01329.google.cloud."
- + "osconfig.v1.PatchJob.InstanceDetailsSumm"
- + "ary\022\017\n\007dry_run\030\n \001(\010\022\025\n\rerror_message\030\013 "
- + "\001(\t\022\030\n\020percent_complete\030\014 \001(\001\022I\n\020patch_d"
- + "eployment\030\017 \001(\tB/\340A\003\372A)\n\'osconfig.google"
- + "apis.com/PatchDeployment\032\275\004\n\026InstanceDet"
- + "ailsSummary\022\036\n\026pending_instance_count\030\001 "
- + "\001(\003\022\037\n\027inactive_instance_count\030\002 \001(\003\022\037\n\027"
- + "notified_instance_count\030\003 \001(\003\022\036\n\026started"
- + "_instance_count\030\004 \001(\003\022*\n\"downloading_pat"
- + "ches_instance_count\030\005 \001(\003\022\'\n\037applying_pa"
- + "tches_instance_count\030\006 \001(\003\022 \n\030rebooting_"
- + "instance_count\030\007 \001(\003\022 \n\030succeeded_instan"
- + "ce_count\030\010 \001(\003\0220\n(succeeded_reboot_requi"
- + "red_instance_count\030\t \001(\003\022\035\n\025failed_insta"
- + "nce_count\030\n \001(\003\022\034\n\024acked_instance_count\030"
- + "\013 \001(\003\022 \n\030timed_out_instance_count\030\014 \001(\003\022"
- + "%\n\035pre_patch_step_instance_count\030\r \001(\003\022&"
- + "\n\036post_patch_step_instance_count\030\016 \001(\003\022("
- + "\n no_agent_detected_instance_count\030\017 \001(\003"
- + "\"\225\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007STA"
- + "RTED\020\001\022\023\n\017INSTANCE_LOOKUP\020\002\022\014\n\010PATCHING\020"
- + "\003\022\r\n\tSUCCEEDED\020\004\022\031\n\025COMPLETED_WITH_ERROR"
- + "S\020\005\022\014\n\010CANCELED\020\006\022\r\n\tTIMED_OUT\020\007:O\352AL\n o"
- + "sconfig.googleapis.com/PatchJob\022(project"
- + "s/{project}/patchJobs/{patch_job}\"\267\004\n\013Pa"
- + "tchConfig\022I\n\rreboot_config\030\001 \001(\01622.googl"
- + "e.cloud.osconfig.v1.PatchConfig.RebootCo"
- + "nfig\0222\n\003apt\030\003 \001(\0132%.google.cloud.osconfi"
- + "g.v1.AptSettings\0222\n\003yum\030\004 \001(\0132%.google.c"
- + "loud.osconfig.v1.YumSettings\0222\n\003goo\030\005 \001("
- + "\0132%.google.cloud.osconfig.v1.GooSettings"
- + "\0228\n\006zypper\030\006 \001(\0132(.google.cloud.osconfig"
- + ".v1.ZypperSettings\022G\n\016windows_update\030\007 \001"
- + "(\0132/.google.cloud.osconfig.v1.WindowsUpd"
- + "ateSettings\0224\n\010pre_step\030\010 \001(\0132\".google.c"
- + "loud.osconfig.v1.ExecStep\0225\n\tpost_step\030\t"
- + " \001(\0132\".google.cloud.osconfig.v1.ExecStep"
- + "\"Q\n\014RebootConfig\022\035\n\031REBOOT_CONFIG_UNSPEC"
- + "IFIED\020\000\022\013\n\007DEFAULT\020\001\022\n\n\006ALWAYS\020\002\022\t\n\005NEVE"
- + "R\020\003\"\316\002\n\010Instance\"\301\002\n\nPatchState\022\033\n\027PATCH"
- + "_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\014\n\010INA"
- + "CTIVE\020\002\022\014\n\010NOTIFIED\020\003\022\013\n\007STARTED\020\004\022\027\n\023DO"
- + "WNLOADING_PATCHES\020\005\022\024\n\020APPLYING_PATCHES\020"
- + "\006\022\r\n\tREBOOTING\020\007\022\r\n\tSUCCEEDED\020\010\022\035\n\031SUCCE"
- + "EDED_REBOOT_REQUIRED\020\t\022\n\n\006FAILED\020\n\022\t\n\005AC"
- + "KED\020\013\022\r\n\tTIMED_OUT\020\014\022\032\n\026RUNNING_PRE_PATC"
- + "H_STEP\020\r\022\033\n\027RUNNING_POST_PATCH_STEP\020\016\022\025\n"
- + "\021NO_AGENT_DETECTED\020\017\"O\n\025CancelPatchJobRe"
- + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n osconfig.go"
- + "ogleapis.com/PatchJob\"\252\001\n\013AptSettings\0228\n"
- + "\004type\030\001 \001(\0162*.google.cloud.osconfig.v1.A"
- + "ptSettings.Type\022\020\n\010excludes\030\002 \003(\t\022\032\n\022exc"
- + "lusive_packages\030\003 \003(\t\"3\n\004Type\022\024\n\020TYPE_UN"
- + "SPECIFIED\020\000\022\010\n\004DIST\020\001\022\013\n\007UPGRADE\020\002\"^\n\013Yu"
- + "mSettings\022\020\n\010security\030\001 \001(\010\022\017\n\007minimal\030\002"
- + " \001(\010\022\020\n\010excludes\030\003 \003(\t\022\032\n\022exclusive_pack"
- + "ages\030\004 \003(\t\"\r\n\013GooSettings\"\221\001\n\016ZypperSett"
- + "ings\022\025\n\rwith_optional\030\001 \001(\010\022\023\n\013with_upda"
- + "te\030\002 \001(\010\022\022\n\ncategories\030\003 \003(\t\022\022\n\nseveriti"
- + "es\030\004 \003(\t\022\020\n\010excludes\030\005 \003(\t\022\031\n\021exclusive_"
- + "patches\030\006 \003(\t\"\325\002\n\025WindowsUpdateSettings\022"
- + "W\n\017classifications\030\001 \003(\0162>.google.cloud."
- + "osconfig.v1.WindowsUpdateSettings.Classi"
- + "fication\022\020\n\010excludes\030\002 \003(\t\022\031\n\021exclusive_"
- + "patches\030\003 \003(\t\"\265\001\n\016Classification\022\036\n\032CLAS"
- + "SIFICATION_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\014"
- + "\n\010SECURITY\020\002\022\016\n\nDEFINITION\020\003\022\n\n\006DRIVER\020\004"
- + "\022\020\n\014FEATURE_PACK\020\005\022\020\n\014SERVICE_PACK\020\006\022\010\n\004"
- + "TOOL\020\007\022\021\n\rUPDATE_ROLLUP\020\010\022\n\n\006UPDATE\020\t\"\240\001"
- + "\n\010ExecStep\022H\n\026linux_exec_step_config\030\001 \001"
- + "(\0132(.google.cloud.osconfig.v1.ExecStepCo"
- + "nfig\022J\n\030windows_exec_step_config\030\002 \001(\0132("
- + ".google.cloud.osconfig.v1.ExecStepConfig"
- + "\"\240\002\n\016ExecStepConfig\022\024\n\nlocal_path\030\001 \001(\tH"
- + "\000\0229\n\ngcs_object\030\002 \001(\0132#.google.cloud.osc"
- + "onfig.v1.GcsObjectH\000\022\035\n\025allowed_success_"
- + "codes\030\003 \003(\005\022I\n\013interpreter\030\004 \001(\01624.googl"
- + "e.cloud.osconfig.v1.ExecStepConfig.Inter"
- + "preter\"E\n\013Interpreter\022\033\n\027INTERPRETER_UNS"
- + "PECIFIED\020\000\022\t\n\005SHELL\020\001\022\016\n\nPOWERSHELL\020\002B\014\n"
- + "\nexecutable\"U\n\tGcsObject\022\023\n\006bucket\030\001 \001(\t"
- + "B\003\340A\002\022\023\n\006object\030\002 \001(\tB\003\340A\002\022\036\n\021generation"
- + "_number\030\003 \001(\003B\003\340A\002\"\310\002\n\023PatchInstanceFilt"
- + "er\022\013\n\003all\030\001 \001(\010\022N\n\014group_labels\030\002 \003(\01328."
- + "google.cloud.osconfig.v1.PatchInstanceFi"
- + "lter.GroupLabel\022\r\n\005zones\030\003 \003(\t\022\021\n\tinstan"
- + "ces\030\004 \003(\t\022\036\n\026instance_name_prefixes\030\005 \003("
- + "\t\032\221\001\n\nGroupLabel\022T\n\006labels\030\001 \003(\0132D.googl"
- + "e.cloud.osconfig.v1.PatchInstanceFilter."
- + "GroupLabel.LabelsEntry\032-\n\013LabelsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\277\001\n\034com.go"
- + "ogle.cloud.osconfig.v1B\tPatchJobsZ@googl"
- + "e.golang.org/genproto/googleapis/cloud/o"
- + "sconfig/v1;osconfig\252\002\030Google.Cloud.OsCon"
- + "fig.V1\312\002\030Google\\Cloud\\OsConfig\\V1\352\002\033Goog"
- + "le::Cloud::OsConfig::V1b\006proto3"
+ + "rce.proto\032.google/cloud/osconfig/v1/osco"
+ + "nfig_common.proto\032\036google/protobuf/durat"
+ + "ion.proto\032\037google/protobuf/timestamp.pro"
+ + "to\"\211\003\n\026ExecutePatchJobRequest\022C\n\006parent\030"
+ + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog"
+ + "leapis.com/Project\022\023\n\013description\030\002 \001(\t\022"
+ + "K\n\017instance_filter\030\007 \001(\0132-.google.cloud."
+ + "osconfig.v1.PatchInstanceFilterB\003\340A\002\022;\n\014"
+ + "patch_config\030\004 \001(\0132%.google.cloud.osconf"
+ + "ig.v1.PatchConfig\022+\n\010duration\030\005 \001(\0132\031.go"
+ + "ogle.protobuf.Duration\022\017\n\007dry_run\030\006 \001(\010\022"
+ + "\024\n\014display_name\030\010 \001(\t\0227\n\007rollout\030\t \001(\0132&"
+ + ".google.cloud.osconfig.v1.PatchRollout\"L"
+ + "\n\022GetPatchJobRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372"
+ + "A\"\n osconfig.googleapis.com/PatchJob\"\225\001\n"
+ + "\"ListPatchJobInstanceDetailsRequest\0228\n\006p"
+ + "arent\030\001 \001(\tB(\340A\002\372A\"\n osconfig.googleapis"
+ + ".com/PatchJob\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
+ + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\225\001\n#ListPat"
+ + "chJobInstanceDetailsResponse\022U\n\032patch_jo"
+ + "b_instance_details\030\001 \003(\01321.google.cloud."
+ + "osconfig.v1.PatchJobInstanceDetails\022\027\n\017n"
+ + "ext_page_token\030\002 \001(\t\"\326\001\n\027PatchJobInstanc"
+ + "eDetails\0222\n\004name\030\001 \001(\tB$\372A!\n\037compute.goo"
+ + "gleapis.com/Instance\022\032\n\022instance_system_"
+ + "id\030\002 \001(\t\022<\n\005state\030\003 \001(\0162-.google.cloud.o"
+ + "sconfig.v1.Instance.PatchState\022\026\n\016failur"
+ + "e_reason\030\004 \001(\t\022\025\n\rattempt_count\030\005 \001(\003\"\222\001"
+ + "\n\024ListPatchJobsRequest\022C\n\006parent\030\001 \001(\tB3"
+ + "\340A\002\372A-\n+cloudresourcemanager.googleapis."
+ + "com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t"
+ + "oken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"h\n\025ListPatchJ"
+ + "obsResponse\0226\n\npatch_jobs\030\001 \003(\0132\".google"
+ + ".cloud.osconfig.v1.PatchJob\022\027\n\017next_page"
+ + "_token\030\002 \001(\t\"\334\013\n\010PatchJob\022\014\n\004name\030\001 \001(\t\022"
+ + "\024\n\014display_name\030\016 \001(\t\022\023\n\013description\030\002 \001"
+ + "(\t\022/\n\013create_time\030\003 \001(\0132\032.google.protobu"
+ + "f.Timestamp\022/\n\013update_time\030\004 \001(\0132\032.googl"
+ + "e.protobuf.Timestamp\0227\n\005state\030\005 \001(\0162(.go"
+ + "ogle.cloud.osconfig.v1.PatchJob.State\022F\n"
+ + "\017instance_filter\030\r \001(\0132-.google.cloud.os"
+ + "config.v1.PatchInstanceFilter\022;\n\014patch_c"
+ + "onfig\030\007 \001(\0132%.google.cloud.osconfig.v1.P"
+ + "atchConfig\022+\n\010duration\030\010 \001(\0132\031.google.pr"
+ + "otobuf.Duration\022[\n\030instance_details_summ"
+ + "ary\030\t \001(\01329.google.cloud.osconfig.v1.Pat"
+ + "chJob.InstanceDetailsSummary\022\017\n\007dry_run\030"
+ + "\n \001(\010\022\025\n\rerror_message\030\013 \001(\t\022\030\n\020percent_"
+ + "complete\030\014 \001(\001\022I\n\020patch_deployment\030\017 \001(\t"
+ + "B/\340A\003\372A)\n\'osconfig.googleapis.com/PatchD"
+ + "eployment\0227\n\007rollout\030\020 \001(\0132&.google.clou"
+ + "d.osconfig.v1.PatchRollout\032\275\004\n\026InstanceD"
+ + "etailsSummary\022\036\n\026pending_instance_count\030"
+ + "\001 \001(\003\022\037\n\027inactive_instance_count\030\002 \001(\003\022\037"
+ + "\n\027notified_instance_count\030\003 \001(\003\022\036\n\026start"
+ + "ed_instance_count\030\004 \001(\003\022*\n\"downloading_p"
+ + "atches_instance_count\030\005 \001(\003\022\'\n\037applying_"
+ + "patches_instance_count\030\006 \001(\003\022 \n\030rebootin"
+ + "g_instance_count\030\007 \001(\003\022 \n\030succeeded_inst"
+ + "ance_count\030\010 \001(\003\0220\n(succeeded_reboot_req"
+ + "uired_instance_count\030\t \001(\003\022\035\n\025failed_ins"
+ + "tance_count\030\n \001(\003\022\034\n\024acked_instance_coun"
+ + "t\030\013 \001(\003\022 \n\030timed_out_instance_count\030\014 \001("
+ + "\003\022%\n\035pre_patch_step_instance_count\030\r \001(\003"
+ + "\022&\n\036post_patch_step_instance_count\030\016 \001(\003"
+ + "\022(\n no_agent_detected_instance_count\030\017 \001"
+ + "(\003\"\225\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007S"
+ + "TARTED\020\001\022\023\n\017INSTANCE_LOOKUP\020\002\022\014\n\010PATCHIN"
+ + "G\020\003\022\r\n\tSUCCEEDED\020\004\022\031\n\025COMPLETED_WITH_ERR"
+ + "ORS\020\005\022\014\n\010CANCELED\020\006\022\r\n\tTIMED_OUT\020\007:O\352AL\n"
+ + " osconfig.googleapis.com/PatchJob\022(proje"
+ + "cts/{project}/patchJobs/{patch_job}\"\267\004\n\013"
+ + "PatchConfig\022I\n\rreboot_config\030\001 \001(\01622.goo"
+ + "gle.cloud.osconfig.v1.PatchConfig.Reboot"
+ + "Config\0222\n\003apt\030\003 \001(\0132%.google.cloud.oscon"
+ + "fig.v1.AptSettings\0222\n\003yum\030\004 \001(\0132%.google"
+ + ".cloud.osconfig.v1.YumSettings\0222\n\003goo\030\005 "
+ + "\001(\0132%.google.cloud.osconfig.v1.GooSettin"
+ + "gs\0228\n\006zypper\030\006 \001(\0132(.google.cloud.osconf"
+ + "ig.v1.ZypperSettings\022G\n\016windows_update\030\007"
+ + " \001(\0132/.google.cloud.osconfig.v1.WindowsU"
+ + "pdateSettings\0224\n\010pre_step\030\010 \001(\0132\".google"
+ + ".cloud.osconfig.v1.ExecStep\0225\n\tpost_step"
+ + "\030\t \001(\0132\".google.cloud.osconfig.v1.ExecSt"
+ + "ep\"Q\n\014RebootConfig\022\035\n\031REBOOT_CONFIG_UNSP"
+ + "ECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\n\n\006ALWAYS\020\002\022\t\n\005NE"
+ + "VER\020\003\"\316\002\n\010Instance\"\301\002\n\nPatchState\022\033\n\027PAT"
+ + "CH_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\014\n\010I"
+ + "NACTIVE\020\002\022\014\n\010NOTIFIED\020\003\022\013\n\007STARTED\020\004\022\027\n\023"
+ + "DOWNLOADING_PATCHES\020\005\022\024\n\020APPLYING_PATCHE"
+ + "S\020\006\022\r\n\tREBOOTING\020\007\022\r\n\tSUCCEEDED\020\010\022\035\n\031SUC"
+ + "CEEDED_REBOOT_REQUIRED\020\t\022\n\n\006FAILED\020\n\022\t\n\005"
+ + "ACKED\020\013\022\r\n\tTIMED_OUT\020\014\022\032\n\026RUNNING_PRE_PA"
+ + "TCH_STEP\020\r\022\033\n\027RUNNING_POST_PATCH_STEP\020\016\022"
+ + "\025\n\021NO_AGENT_DETECTED\020\017\"O\n\025CancelPatchJob"
+ + "Request\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n osconfig."
+ + "googleapis.com/PatchJob\"\252\001\n\013AptSettings\022"
+ + "8\n\004type\030\001 \001(\0162*.google.cloud.osconfig.v1"
+ + ".AptSettings.Type\022\020\n\010excludes\030\002 \003(\t\022\032\n\022e"
+ + "xclusive_packages\030\003 \003(\t\"3\n\004Type\022\024\n\020TYPE_"
+ + "UNSPECIFIED\020\000\022\010\n\004DIST\020\001\022\013\n\007UPGRADE\020\002\"^\n\013"
+ + "YumSettings\022\020\n\010security\030\001 \001(\010\022\017\n\007minimal"
+ + "\030\002 \001(\010\022\020\n\010excludes\030\003 \003(\t\022\032\n\022exclusive_pa"
+ + "ckages\030\004 \003(\t\"\r\n\013GooSettings\"\221\001\n\016ZypperSe"
+ + "ttings\022\025\n\rwith_optional\030\001 \001(\010\022\023\n\013with_up"
+ + "date\030\002 \001(\010\022\022\n\ncategories\030\003 \003(\t\022\022\n\nseveri"
+ + "ties\030\004 \003(\t\022\020\n\010excludes\030\005 \003(\t\022\031\n\021exclusiv"
+ + "e_patches\030\006 \003(\t\"\325\002\n\025WindowsUpdateSetting"
+ + "s\022W\n\017classifications\030\001 \003(\0162>.google.clou"
+ + "d.osconfig.v1.WindowsUpdateSettings.Clas"
+ + "sification\022\020\n\010excludes\030\002 \003(\t\022\031\n\021exclusiv"
+ + "e_patches\030\003 \003(\t\"\265\001\n\016Classification\022\036\n\032CL"
+ + "ASSIFICATION_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001"
+ + "\022\014\n\010SECURITY\020\002\022\016\n\nDEFINITION\020\003\022\n\n\006DRIVER"
+ + "\020\004\022\020\n\014FEATURE_PACK\020\005\022\020\n\014SERVICE_PACK\020\006\022\010"
+ + "\n\004TOOL\020\007\022\021\n\rUPDATE_ROLLUP\020\010\022\n\n\006UPDATE\020\t\""
+ + "\240\001\n\010ExecStep\022H\n\026linux_exec_step_config\030\001"
+ + " \001(\0132(.google.cloud.osconfig.v1.ExecStep"
+ + "Config\022J\n\030windows_exec_step_config\030\002 \001(\013"
+ + "2(.google.cloud.osconfig.v1.ExecStepConf"
+ + "ig\"\240\002\n\016ExecStepConfig\022\024\n\nlocal_path\030\001 \001("
+ + "\tH\000\0229\n\ngcs_object\030\002 \001(\0132#.google.cloud.o"
+ + "sconfig.v1.GcsObjectH\000\022\035\n\025allowed_succes"
+ + "s_codes\030\003 \003(\005\022I\n\013interpreter\030\004 \001(\01624.goo"
+ + "gle.cloud.osconfig.v1.ExecStepConfig.Int"
+ + "erpreter\"E\n\013Interpreter\022\033\n\027INTERPRETER_U"
+ + "NSPECIFIED\020\000\022\t\n\005SHELL\020\001\022\016\n\nPOWERSHELL\020\002B"
+ + "\014\n\nexecutable\"U\n\tGcsObject\022\023\n\006bucket\030\001 \001"
+ + "(\tB\003\340A\002\022\023\n\006object\030\002 \001(\tB\003\340A\002\022\036\n\021generati"
+ + "on_number\030\003 \001(\003B\003\340A\002\"\310\002\n\023PatchInstanceFi"
+ + "lter\022\013\n\003all\030\001 \001(\010\022N\n\014group_labels\030\002 \003(\0132"
+ + "8.google.cloud.osconfig.v1.PatchInstance"
+ + "Filter.GroupLabel\022\r\n\005zones\030\003 \003(\t\022\021\n\tinst"
+ + "ances\030\004 \003(\t\022\036\n\026instance_name_prefixes\030\005 "
+ + "\003(\t\032\221\001\n\nGroupLabel\022T\n\006labels\030\001 \003(\0132D.goo"
+ + "gle.cloud.osconfig.v1.PatchInstanceFilte"
+ + "r.GroupLabel.LabelsEntry\032-\n\013LabelsEntry\022"
+ + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\324\001\n\014Patc"
+ + "hRollout\0229\n\004mode\030\001 \001(\0162+.google.cloud.os"
+ + "config.v1.PatchRollout.Mode\022C\n\021disruptio"
+ + "n_budget\030\002 \001(\0132(.google.cloud.osconfig.v"
+ + "1.FixedOrPercent\"D\n\004Mode\022\024\n\020MODE_UNSPECI"
+ + "FIED\020\000\022\020\n\014ZONE_BY_ZONE\020\001\022\024\n\020CONCURRENT_Z"
+ + "ONES\020\002B\277\001\n\034com.google.cloud.osconfig.v1B"
+ + "\tPatchJobsZ@google.golang.org/genproto/g"
+ + "oogleapis/cloud/osconfig/v1;osconfig\252\002\030G"
+ + "oogle.Cloud.OsConfig.V1\312\002\030Google\\Cloud\\O"
+ + "sConfig\\V1\352\002\033Google::Cloud::OsConfig::V1"
+ + "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -34806,6 +36848,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.osconfig.v1.Common.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
@@ -34822,6 +36865,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Duration",
"DryRun",
"DisplayName",
+ "Rollout",
});
internal_static_google_cloud_osconfig_v1_GetPatchJobRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
@@ -34891,6 +36935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ErrorMessage",
"PercentComplete",
"PatchDeployment",
+ "Rollout",
});
internal_static_google_cloud_osconfig_v1_PatchJob_InstanceDetailsSummary_descriptor =
internal_static_google_cloud_osconfig_v1_PatchJob_descriptor.getNestedTypes().get(0);
@@ -35031,6 +37076,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Key", "Value",
});
+ internal_static_google_cloud_osconfig_v1_PatchRollout_descriptor =
+ getDescriptor().getMessageTypes().get(20);
+ internal_static_google_cloud_osconfig_v1_PatchRollout_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_osconfig_v1_PatchRollout_descriptor,
+ new java.lang.String[] {
+ "Mode", "DisruptionBudget",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
@@ -35040,6 +37093,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
descriptor, registry);
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.osconfig.v1.Common.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
diff --git a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/inventory.proto b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/inventory.proto
new file mode 100644
index 00000000..ba3318e7
--- /dev/null
+++ b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/inventory.proto
@@ -0,0 +1,258 @@
+// Copyright 2020 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
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_multiple_files = true;
+option java_outer_classname = "Inventories";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// OS Config Inventory is a service for collecting and reporting operating
+// system and package information on VM instances.
+
+// The inventory details of a VM.
+message Inventory {
+ // Operating system information for the VM.
+ message OsInfo {
+ // The VM hostname.
+ string hostname = 9;
+
+ // The operating system long name.
+ // For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019
+ // Datacenter'.
+ string long_name = 2;
+
+ // The operating system short name.
+ // For example, 'windows' or 'debian'.
+ string short_name = 3;
+
+ // The version of the operating system.
+ string version = 4;
+
+ // The system architecture of the operating system.
+ string architecture = 5;
+
+ // The kernel version of the operating system.
+ string kernel_version = 6;
+
+ // The kernel release of the operating system.
+ string kernel_release = 7;
+
+ // The current version of the OS Config agent running on the VM.
+ string osconfig_agent_version = 8;
+ }
+
+ // A single piece of inventory on a VM.
+ message Item {
+ // The origin of a specific inventory item.
+ enum OriginType {
+ // Invalid. An origin type must be specified.
+ ORIGIN_TYPE_UNSPECIFIED = 0;
+
+ // This inventory item was discovered as the result of the agent
+ // reporting inventory via the reporting API.
+ INVENTORY_REPORT = 1;
+ }
+
+ // The different types of inventory that are tracked on a VM.
+ enum Type {
+ // Invalid. An type must be specified.
+ TYPE_UNSPECIFIED = 0;
+
+ // This represents a package that is installed on the VM.
+ INSTALLED_PACKAGE = 1;
+
+ // This represents an update that is available for a package.
+ AVAILABLE_PACKAGE = 2;
+ }
+
+ // Identifier for this item, unique across items for this VM.
+ string id = 1;
+
+ // The origin of this inventory item.
+ OriginType origin_type = 2;
+
+ // When this inventory item was first detected.
+ google.protobuf.Timestamp create_time = 8;
+
+ // When this inventory item was last modified.
+ google.protobuf.Timestamp update_time = 9;
+
+ // The specific type of inventory, correlating to its specific details.
+ Type type = 5;
+
+ // Specific details of this inventory item based on its type.
+ oneof details {
+ // Software package present on the VM instance.
+ SoftwarePackage installed_package = 6;
+
+ // Software package available to be installed on the VM instance.
+ SoftwarePackage available_package = 7;
+ }
+ }
+
+ // Software package information of the operating system.
+ message SoftwarePackage {
+ // Information about the different types of software packages.
+ oneof details {
+ // Yum package info.
+ // For details about the yum package manager, see
+ // https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum.
+ VersionedPackage yum_package = 1;
+
+ // Details of an APT package.
+ // For details about the apt package manager, see
+ // https://wiki.debian.org/Apt.
+ VersionedPackage apt_package = 2;
+
+ // Details of a Zypper package.
+ // For details about the Zypper package manager, see
+ // https://en.opensuse.org/SDB:Zypper_manual.
+ VersionedPackage zypper_package = 3;
+
+ // Details of a Googet package.
+ // For details about the googet package manager, see
+ // https://github.com/google/googet.
+ VersionedPackage googet_package = 4;
+
+ // Details of a Zypper patch.
+ // For details about the Zypper package manager, see
+ // https://en.opensuse.org/SDB:Zypper_manual.
+ ZypperPatch zypper_patch = 5;
+
+ // Details of a Windows Update package.
+ // See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for
+ // information about Windows Update.
+ WindowsUpdatePackage wua_package = 6;
+
+ // Details of a Windows Quick Fix engineering package.
+ // See
+ // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
+ // for info in Windows Quick Fix Engineering.
+ WindowsQuickFixEngineeringPackage qfe_package = 7;
+
+ // Details of a COS package.
+ VersionedPackage cos_package = 8;
+ }
+ }
+
+ // Information related to the a standard versioned package. This includes
+ // package info for APT, Yum, Zypper, and Googet package managers.
+ message VersionedPackage {
+ // The name of the package.
+ string package_name = 4;
+
+ // The system architecture this package is intended for.
+ string architecture = 2;
+
+ // The version of the package.
+ string version = 3;
+ }
+
+ // Details related to a Windows Update package.
+ // Field data and names are taken from Windows Update API IUpdate Interface:
+ // https://docs.microsoft.com/en-us/windows/win32/api/_wua/
+ // Descriptive fields like title, and description are localized based on
+ // the locale of the VM being updated.
+ message WindowsUpdatePackage {
+ // Categories specified by the Windows Update.
+ message WindowsUpdateCategory {
+ // The identifier of the windows update category.
+ string id = 1;
+
+ // The name of the windows update category.
+ string name = 2;
+ }
+
+ // The localized title of the update package.
+ string title = 1;
+
+ // The localized description of the update package.
+ string description = 2;
+
+ // The categories that are associated with this update package.
+ repeated WindowsUpdateCategory categories = 3;
+
+ // A collection of Microsoft Knowledge Base article IDs that are associated
+ // with the update package.
+ repeated string kb_article_ids = 4;
+
+ // A hyperlink to the language-specific support information for the update.
+ string support_url = 11;
+
+ // A collection of URLs that provide more information about the update
+ // package.
+ repeated string more_info_urls = 5;
+
+ // Gets the identifier of an update package. Stays the same across
+ // revisions.
+ string update_id = 6;
+
+ // The revision number of this update package.
+ int32 revision_number = 7;
+
+ // The last published date of the update, in (UTC) date and time.
+ google.protobuf.Timestamp last_deployment_change_time = 10;
+ }
+
+ // Details related to a Zypper Patch.
+ message ZypperPatch {
+ // The name of the patch.
+ string patch_name = 5;
+
+ // The category of the patch.
+ string category = 2;
+
+ // The severity specified for this patch
+ string severity = 3;
+
+ // Any summary information provided about this patch.
+ string summary = 4;
+ }
+
+ // Information related to a Quick Fix Engineering package.
+ // Fields are taken from Windows QuickFixEngineering Interface and match
+ // the source names:
+ // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
+ message WindowsQuickFixEngineeringPackage {
+ // A short textual description of the QFE update.
+ string caption = 1;
+
+ // A textual description of the QFE update.
+ string description = 2;
+
+ // Unique identifier associated with a particular QFE update.
+ string hot_fix_id = 3;
+
+ // Date that the QFE update was installed. Mapped from installed_on field.
+ google.protobuf.Timestamp install_time = 5;
+ }
+
+ // Base level operating system information for the VM.
+ OsInfo os_info = 1;
+
+ // Inventory items related to the VM keyed by an opaque unique identifier for
+ // each inventory item. The identifier is unique to each distinct and
+ // addressable inventory item and will change, when there is a new package
+ // version.
+ map items = 2;
+}
diff --git a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/osconfig_common.proto b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/osconfig_common.proto
new file mode 100644
index 00000000..43059e9a
--- /dev/null
+++ b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/osconfig_common.proto
@@ -0,0 +1,38 @@
+// Copyright 2020 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
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.osconfig.v1;
+
+option csharp_namespace = "Google.Cloud.OsConfig.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig";
+option java_outer_classname = "Common";
+option java_package = "com.google.cloud.osconfig.v1";
+option php_namespace = "Google\\Cloud\\OsConfig\\V1";
+option ruby_package = "Google::Cloud::OsConfig::V1";
+
+// Message encapsulating a value that can be either absolute ("fixed") or
+// relative ("percent") to a value.
+message FixedOrPercent {
+ // Type of the value.
+ oneof mode {
+ // Specifies a fixed value.
+ int32 fixed = 1;
+
+ // Specifies the relative value defined as a percentage, which will be
+ // multiplied by a reference value.
+ int32 percent = 2;
+ }
+}
diff --git a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_deployments.proto b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_deployments.proto
index 10ea5d1a..d8bb84a9 100644
--- a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_deployments.proto
+++ b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_deployments.proto
@@ -49,47 +49,59 @@ message PatchDeployment {
// This field is ignored when you create a new patch deployment.
string name = 1;
- // Optional. Description of the patch deployment. Length of the description is limited
- // to 1024 characters.
+ // Optional. Description of the patch deployment. Length of the description is
+ // limited to 1024 characters.
string description = 2 [(google.api.field_behavior) = OPTIONAL];
// Required. VM instances to patch.
- PatchInstanceFilter instance_filter = 3 [(google.api.field_behavior) = REQUIRED];
+ PatchInstanceFilter instance_filter = 3
+ [(google.api.field_behavior) = REQUIRED];
// Optional. Patch configuration that is applied.
PatchConfig patch_config = 4 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Duration of the patch. After the duration ends, the patch times out.
- google.protobuf.Duration duration = 5 [(google.api.field_behavior) = OPTIONAL];
+ // Optional. Duration of the patch. After the duration ends, the patch times
+ // out.
+ google.protobuf.Duration duration = 5
+ [(google.api.field_behavior) = OPTIONAL];
// Schedule for the patch.
oneof schedule {
// Required. Schedule a one-time execution.
- OneTimeSchedule one_time_schedule = 6 [(google.api.field_behavior) = REQUIRED];
+ OneTimeSchedule one_time_schedule = 6
+ [(google.api.field_behavior) = REQUIRED];
// Required. Schedule recurring executions.
- RecurringSchedule recurring_schedule = 7 [(google.api.field_behavior) = REQUIRED];
+ RecurringSchedule recurring_schedule = 7
+ [(google.api.field_behavior) = REQUIRED];
}
// Output only. Time the patch deployment was created. Timestamp is in
// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
- google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+ google.protobuf.Timestamp create_time = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. Time the patch deployment was last updated. Timestamp is in
// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
- google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+ google.protobuf.Timestamp update_time = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The last time a patch job was started by this deployment.
// Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
// format.
- google.protobuf.Timestamp last_execute_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+ google.protobuf.Timestamp last_execute_time = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Rollout strategy of the patch job.
+ PatchRollout rollout = 11 [(google.api.field_behavior) = OPTIONAL];
}
// Sets the time for a one time patch deployment. Timestamp is in
// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
message OneTimeSchedule {
// Required. The desired patch job execution time.
- google.protobuf.Timestamp execute_time = 1 [(google.api.field_behavior) = REQUIRED];
+ google.protobuf.Timestamp execute_time = 1
+ [(google.api.field_behavior) = REQUIRED];
}
// Sets the time for recurring patch deployments.
@@ -114,14 +126,17 @@ message RecurringSchedule {
// Optional. The time that the recurring schedule becomes effective.
// Defaults to `create_time` of the patch deployment.
- google.protobuf.Timestamp start_time = 2 [(google.api.field_behavior) = OPTIONAL];
+ google.protobuf.Timestamp start_time = 2
+ [(google.api.field_behavior) = OPTIONAL];
- // Optional. The end time at which a recurring patch deployment schedule is no longer
- // active.
- google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OPTIONAL];
+ // Optional. The end time at which a recurring patch deployment schedule is no
+ // longer active.
+ google.protobuf.Timestamp end_time = 3
+ [(google.api.field_behavior) = OPTIONAL];
// Required. Time of the day to run a recurring deployment.
- google.type.TimeOfDay time_of_day = 4 [(google.api.field_behavior) = REQUIRED];
+ google.type.TimeOfDay time_of_day = 4
+ [(google.api.field_behavior) = REQUIRED];
// Required. The frequency unit of this recurring schedule.
Frequency frequency = 5 [(google.api.field_behavior) = REQUIRED];
@@ -137,16 +152,19 @@ message RecurringSchedule {
}
// Output only. The time the last patch job ran successfully.
- google.protobuf.Timestamp last_execute_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+ google.protobuf.Timestamp last_execute_time = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The time the next patch job is scheduled to run.
- google.protobuf.Timestamp next_execute_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+ google.protobuf.Timestamp next_execute_time = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Represents a weekly schedule.
message WeeklySchedule {
// Required. Day of the week.
- google.type.DayOfWeek day_of_week = 1 [(google.api.field_behavior) = REQUIRED];
+ google.type.DayOfWeek day_of_week = 1
+ [(google.api.field_behavior) = REQUIRED];
}
// Represents a monthly schedule. An example of a valid monthly schedule is
@@ -155,29 +173,32 @@ message MonthlySchedule {
// One day in a month.
oneof day_of_month {
// Required. Week day in a month.
- WeekDayOfMonth week_day_of_month = 1 [(google.api.field_behavior) = REQUIRED];
+ WeekDayOfMonth week_day_of_month = 1
+ [(google.api.field_behavior) = REQUIRED];
- // Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
- // indicates the last day of the month.
- // Months without the target day will be skipped. For example, a schedule to
- // run "every month on the 31st" will not run in February, April, June, etc.
+ // Required. One day of the month. 1-31 indicates the 1st to the 31st day.
+ // -1 indicates the last day of the month. Months without the target day
+ // will be skipped. For example, a schedule to run "every month on the 31st"
+ // will not run in February, April, June, etc.
int32 month_day = 2 [(google.api.field_behavior) = REQUIRED];
}
}
// Represents one week day in a month. An example is "the 4th Sunday".
message WeekDayOfMonth {
- // Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- // indicates the last week of the month.
+ // Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
+ // month. -1 indicates the last week of the month.
int32 week_ordinal = 1 [(google.api.field_behavior) = REQUIRED];
// Required. A day of the week.
- google.type.DayOfWeek day_of_week = 2 [(google.api.field_behavior) = REQUIRED];
+ google.type.DayOfWeek day_of_week = 2
+ [(google.api.field_behavior) = REQUIRED];
}
// A request message for creating a patch deployment.
message CreatePatchDeploymentRequest {
- // Required. The project to apply this patch deployment to in the form `projects/*`.
+ // Required. The project to apply this patch deployment to in the form
+ // `projects/*`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -185,8 +206,8 @@ message CreatePatchDeploymentRequest {
}
];
- // Required. A name for the patch deployment in the project. When creating a name
- // the following rules apply:
+ // Required. A name for the patch deployment in the project. When creating a
+ // name the following rules apply:
// * Must contain only lowercase letters, numbers, and hyphens.
// * Must start with a letter.
// * Must be between 1-63 characters.
@@ -220,11 +241,13 @@ message ListPatchDeploymentsRequest {
}
];
- // Optional. The maximum number of patch deployments to return. Default is 100.
+ // Optional. The maximum number of patch deployments to return. Default is
+ // 100.
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
- // Optional. A pagination token returned from a previous call to ListPatchDeployments
- // that indicates where this listing should continue from.
+ // Optional. A pagination token returned from a previous call to
+ // ListPatchDeployments that indicates where this listing should continue
+ // from.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
}
diff --git a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_jobs.proto b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_jobs.proto
index 553c9e47..1fffb532 100644
--- a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_jobs.proto
+++ b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_jobs.proto
@@ -18,6 +18,7 @@ package google.cloud.osconfig.v1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
+import "google/cloud/osconfig/v1/osconfig_common.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
@@ -43,9 +44,10 @@ message ExecutePatchJobRequest {
// to 1024 characters.
string description = 2;
- // Required. Instances to patch, either explicitly or filtered by some criteria such
- // as zone or labels.
- PatchInstanceFilter instance_filter = 7 [(google.api.field_behavior) = REQUIRED];
+ // Required. Instances to patch, either explicitly or filtered by some
+ // criteria such as zone or labels.
+ PatchInstanceFilter instance_filter = 7
+ [(google.api.field_behavior) = REQUIRED];
// Patch configuration being applied. If omitted, instances are
// patched using the default configurations.
@@ -61,6 +63,9 @@ message ExecutePatchJobRequest {
// Display name for this patch job. This does not have to be unique.
string display_name = 8;
+
+ // Rollout strategy of the patch job.
+ PatchRollout rollout = 9;
}
// Request to get an active or completed patch job.
@@ -76,7 +81,8 @@ message GetPatchJobRequest {
// Request to list details for all instances that are part of a patch job.
message ListPatchJobInstanceDetailsRequest {
- // Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.
+ // Required. The parent for the instances are in the form of
+ // `projects/*/patchJobs/*`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -113,8 +119,8 @@ message ListPatchJobInstanceDetailsResponse {
message PatchJobInstanceDetails {
// The instance name in the form `projects/*/zones/*/instances/*`
string name = 1 [(google.api.resource_reference) = {
- type: "compute.googleapis.com/Instance"
- }];
+ type: "compute.googleapis.com/Instance"
+ }];
// The unique identifier for the instance. This identifier is
// defined by the server.
@@ -165,7 +171,7 @@ message ListPatchJobsResponse {
// A high level representation of a patch job that is either in progress
// or has completed.
//
-// Instances details are not included in the job. To paginate through instance
+// Instance details are not included in the job. To paginate through instance
// details, use ListPatchJobInstanceDetails.
//
// For more information about patch jobs, see
@@ -275,7 +281,7 @@ message PatchJob {
// Last time this patch job was updated.
google.protobuf.Timestamp update_time = 4;
- // The current state of the PatchJob .
+ // The current state of the PatchJob.
State state = 5;
// Instances to patch.
@@ -310,6 +316,9 @@ message PatchJob {
type: "osconfig.googleapis.com/PatchDeployment"
}
];
+
+ // Rollout strategy being applied.
+ PatchRollout rollout = 16;
}
// Patch configuration specifications. Contains details on how to apply the
@@ -416,8 +425,6 @@ message Instance {
// service.
NO_AGENT_DETECTED = 15;
}
-
-
}
// Message for canceling a patch job.
@@ -484,9 +491,7 @@ message YumSettings {
}
// Googet patching is performed by running `googet update`.
-message GooSettings {
-
-}
+message GooSettings {}
// Zypper patching is performed by running `zypper patch`.
// See also https://en.opensuse.org/SDB:Zypper_manual.
@@ -683,3 +688,52 @@ message PatchInstanceFilter {
// example prefix="prod-".
repeated string instance_name_prefixes = 5;
}
+
+// Patch rollout configuration specifications. Contains details on the
+// concurrency control when applying patch(es) to all targeted VMs.
+message PatchRollout {
+ // Type of the rollout.
+ enum Mode {
+ // Mode must be specified.
+ MODE_UNSPECIFIED = 0;
+
+ // Patches are applied one zone at a time. The patch job begins in the
+ // region with the lowest number of targeted VMs. Within the region,
+ // patching begins in the zone with the lowest number of targeted VMs. If
+ // multiple regions (or zones within a region) have the same number of
+ // targeted VMs, a tie-breaker is achieved by sorting the regions or zones
+ // in alphabetical order.
+ ZONE_BY_ZONE = 1;
+
+ // Patches are applied to VMs in all zones at the same time.
+ CONCURRENT_ZONES = 2;
+ }
+
+ // Mode of the patch rollout.
+ Mode mode = 1;
+
+ // The maximum number (or percentage) of VMs per zone to disrupt at any given
+ // moment. The number of VMs calculated from multiplying the percentage by the
+ // total number of VMs in a zone is rounded up.
+ //
+ // During patching, a VM is considered disrupted from the time the agent is
+ // notified to begin until patching has completed. This disruption time
+ // includes the time to complete reboot and any post-patch steps.
+ //
+ // A VM contributes to the disruption budget if its patching operation fails
+ // either when applying the patches, running pre or post patch steps, or if it
+ // fails to respond with a success notification before timing out. VMs that
+ // are not running or do not have an active agent do not count toward this
+ // disruption budget.
+ //
+ // For zone-by-zone rollouts, if the disruption budget in a zone is exceeded,
+ // the patch job stops, because continuing to the next zone requires
+ // completion of the patch process in the previous zone.
+ //
+ // For example, if the disruption budget has a fixed value of `10`, and 8 VMs
+ // fail to patch in the current zone, the patch job continues to patch 2 VMs
+ // at a time until the zone is completed. When that zone is completed
+ // successfully, patching begins with 10 VMs at a time in the next zone. If 10
+ // VMs in the next zone fail to patch, the patch job stops.
+ FixedOrPercent disruption_budget = 2;
+}
diff --git a/synth.metadata b/synth.metadata
index 82539fae..908a23ee 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-os-config.git",
- "sha": "79c953b9619a1436d85d55cb81f3eb39a3bfc3ab"
+ "sha": "a7859ee6a9021d8c07811be40200ce2a763a50c6"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "02c23d62c7a133608fcf6ea33aea90ed0e0d098a",
- "internalRef": "317658441"
+ "sha": "4b0ad15b0ff483486ae90d73092e7be00f8c1848",
+ "internalRef": "341842584"
}
},
{
@@ -113,13 +113,19 @@
"grpc-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceGrpc.java",
"java.header",
"license-checks.xml",
+ "proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Common.java",
"proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InstanceName.java",
+ "proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventories.java",
+ "proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventory.java",
+ "proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InventoryOrBuilder.java",
"proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OsConfigProto.java",
"proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeploymentName.java",
"proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeployments.java",
"proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobName.java",
"proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobs.java",
"proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/ProjectName.java",
+ "proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/inventory.proto",
+ "proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/osconfig_common.proto",
"proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/osconfig_service.proto",
"proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_deployments.proto",
"proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/patch_jobs.proto",