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

com.google.cloud.securitycenter.v2.Container Maven / Gradle / Ivy

There is a newer version: 2.62.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/securitycenter/v2/container.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.securitycenter.v2;

/**
 *
 *
 * 
 * Container associated with the finding.
 * 
* * Protobuf type {@code google.cloud.securitycenter.v2.Container} */ public final class Container extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.Container) ContainerOrBuilder { private static final long serialVersionUID = 0L; // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Container() { name_ = ""; uri_ = ""; imageId_ = ""; labels_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Container(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v2.ContainerProto .internal_static_google_cloud_securitycenter_v2_Container_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v2.ContainerProto .internal_static_google_cloud_securitycenter_v2_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v2.Container.class, com.google.cloud.securitycenter.v2.Container.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Name of the container.
   * 
* * string name = 1; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * Name of the container.
   * 
* * string name = 1; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URI_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** * * *
   * Container image URI provided when configuring a pod or container. This
   * string can identify a container image version using mutable tags.
   * 
* * string uri = 2; * * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; 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(); uri_ = s; return s; } } /** * * *
   * Container image URI provided when configuring a pod or container. This
   * string can identify a container image version using mutable tags.
   * 
* * string uri = 2; * * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IMAGE_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object imageId_ = ""; /** * * *
   * Optional container image ID, if provided by the container runtime. Uniquely
   * identifies the container image launched using a container image digest.
   * 
* * string image_id = 3; * * @return The imageId. */ @java.lang.Override public java.lang.String getImageId() { java.lang.Object ref = imageId_; 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(); imageId_ = s; return s; } } /** * * *
   * Optional container image ID, if provided by the container runtime. Uniquely
   * identifies the container image launched using a container image digest.
   * 
* * string image_id = 3; * * @return The bytes for imageId. */ @java.lang.Override public com.google.protobuf.ByteString getImageIdBytes() { java.lang.Object ref = imageId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List labels_; /** * * *
   * Container labels, as provided by the container runtime.
   * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ @java.lang.Override public java.util.List getLabelsList() { return labels_; } /** * * *
   * Container labels, as provided by the container runtime.
   * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ @java.lang.Override public java.util.List getLabelsOrBuilderList() { return labels_; } /** * * *
   * Container labels, as provided by the container runtime.
   * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ @java.lang.Override public int getLabelsCount() { return labels_.size(); } /** * * *
   * Container labels, as provided by the container runtime.
   * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ @java.lang.Override public com.google.cloud.securitycenter.v2.Label getLabels(int index) { return labels_.get(index); } /** * * *
   * Container labels, as provided by the container runtime.
   * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ @java.lang.Override public com.google.cloud.securitycenter.v2.LabelOrBuilder getLabelsOrBuilder(int index) { return labels_.get(index); } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** * * *
   * The time that the container was created.
   * 
* * .google.protobuf.Timestamp create_time = 5; * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The time that the container was created.
   * 
* * .google.protobuf.Timestamp create_time = 5; * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * The time that the container was created.
   * 
* * .google.protobuf.Timestamp create_time = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageId_); } for (int i = 0; i < labels_.size(); i++) { output.writeMessage(4, labels_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getCreateTime()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageId_); } for (int i = 0; i < labels_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.securitycenter.v2.Container)) { return super.equals(obj); } com.google.cloud.securitycenter.v2.Container other = (com.google.cloud.securitycenter.v2.Container) obj; if (!getName().equals(other.getName())) return false; if (!getUri().equals(other.getUri())) return false; if (!getImageId().equals(other.getImageId())) return false; if (!getLabelsList().equals(other.getLabelsList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + IMAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getImageId().hashCode(); if (getLabelsCount() > 0) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabelsList().hashCode(); } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v2.Container parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v2.Container 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.securitycenter.v2.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v2.Container 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.securitycenter.v2.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v2.Container parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v2.Container parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v2.Container 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.securitycenter.v2.Container parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v2.Container 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.securitycenter.v2.Container parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v2.Container 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.securitycenter.v2.Container 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; } /** * * *
   * Container associated with the finding.
   * 
* * Protobuf type {@code google.cloud.securitycenter.v2.Container} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.Container) com.google.cloud.securitycenter.v2.ContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v2.ContainerProto .internal_static_google_cloud_securitycenter_v2_Container_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v2.ContainerProto .internal_static_google_cloud_securitycenter_v2_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v2.Container.class, com.google.cloud.securitycenter.v2.Container.Builder.class); } // Construct using com.google.cloud.securitycenter.v2.Container.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLabelsFieldBuilder(); getCreateTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; uri_ = ""; imageId_ = ""; if (labelsBuilder_ == null) { labels_ = java.util.Collections.emptyList(); } else { labels_ = null; labelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v2.ContainerProto .internal_static_google_cloud_securitycenter_v2_Container_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v2.Container getDefaultInstanceForType() { return com.google.cloud.securitycenter.v2.Container.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v2.Container build() { com.google.cloud.securitycenter.v2.Container result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v2.Container buildPartial() { com.google.cloud.securitycenter.v2.Container result = new com.google.cloud.securitycenter.v2.Container(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.Container result) { if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { labels_ = java.util.Collections.unmodifiableList(labels_); bitField0_ = (bitField0_ & ~0x00000008); } result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } } private void buildPartial0(com.google.cloud.securitycenter.v2.Container result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.uri_ = uri_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.imageId_ = imageId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v2.Container) { return mergeFrom((com.google.cloud.securitycenter.v2.Container) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.securitycenter.v2.Container other) { if (other == com.google.cloud.securitycenter.v2.Container.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getImageId().isEmpty()) { imageId_ = other.imageId_; bitField0_ |= 0x00000004; onChanged(); } if (labelsBuilder_ == null) { if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureLabelsIsMutable(); labels_.addAll(other.labels_); } onChanged(); } } else { if (!other.labels_.isEmpty()) { if (labelsBuilder_.isEmpty()) { labelsBuilder_.dispose(); labelsBuilder_ = null; labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000008); labelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLabelsFieldBuilder() : null; } else { labelsBuilder_.addAllMessages(other.labels_); } } } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { imageId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.cloud.securitycenter.v2.Label m = input.readMessage( com.google.cloud.securitycenter.v2.Label.parser(), extensionRegistry); if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.add(m); } else { labelsBuilder_.addMessage(m); } break; } // case 34 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
     * Name of the container.
     * 
* * string name = 1; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Name of the container.
     * 
* * string name = 1; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Name of the container.
     * 
* * string name = 1; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Name of the container.
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Name of the container.
     * 
* * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object uri_ = ""; /** * * *
     * Container image URI provided when configuring a pod or container. This
     * string can identify a container image version using mutable tags.
     * 
* * string uri = 2; * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Container image URI provided when configuring a pod or container. This
     * string can identify a container image version using mutable tags.
     * 
* * string uri = 2; * * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Container image URI provided when configuring a pod or container. This
     * string can identify a container image version using mutable tags.
     * 
* * string uri = 2; * * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Container image URI provided when configuring a pod or container. This
     * string can identify a container image version using mutable tags.
     * 
* * string uri = 2; * * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Container image URI provided when configuring a pod or container. This
     * string can identify a container image version using mutable tags.
     * 
* * string uri = 2; * * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object imageId_ = ""; /** * * *
     * Optional container image ID, if provided by the container runtime. Uniquely
     * identifies the container image launched using a container image digest.
     * 
* * string image_id = 3; * * @return The imageId. */ public java.lang.String getImageId() { java.lang.Object ref = imageId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional container image ID, if provided by the container runtime. Uniquely
     * identifies the container image launched using a container image digest.
     * 
* * string image_id = 3; * * @return The bytes for imageId. */ public com.google.protobuf.ByteString getImageIdBytes() { java.lang.Object ref = imageId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional container image ID, if provided by the container runtime. Uniquely
     * identifies the container image launched using a container image digest.
     * 
* * string image_id = 3; * * @param value The imageId to set. * @return This builder for chaining. */ public Builder setImageId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } imageId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Optional container image ID, if provided by the container runtime. Uniquely
     * identifies the container image launched using a container image digest.
     * 
* * string image_id = 3; * * @return This builder for chaining. */ public Builder clearImageId() { imageId_ = getDefaultInstance().getImageId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Optional container image ID, if provided by the container runtime. Uniquely
     * identifies the container image launched using a container image digest.
     * 
* * string image_id = 3; * * @param value The bytes for imageId to set. * @return This builder for chaining. */ public Builder setImageIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); imageId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List labels_ = java.util.Collections.emptyList(); private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { labels_ = new java.util.ArrayList(labels_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v2.Label, com.google.cloud.securitycenter.v2.Label.Builder, com.google.cloud.securitycenter.v2.LabelOrBuilder> labelsBuilder_; /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public java.util.List getLabelsList() { if (labelsBuilder_ == null) { return java.util.Collections.unmodifiableList(labels_); } else { return labelsBuilder_.getMessageList(); } } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public int getLabelsCount() { if (labelsBuilder_ == null) { return labels_.size(); } else { return labelsBuilder_.getCount(); } } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public com.google.cloud.securitycenter.v2.Label getLabels(int index) { if (labelsBuilder_ == null) { return labels_.get(index); } else { return labelsBuilder_.getMessage(index); } } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public Builder setLabels(int index, com.google.cloud.securitycenter.v2.Label value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.set(index, value); onChanged(); } else { labelsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public Builder setLabels( int index, com.google.cloud.securitycenter.v2.Label.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.set(index, builderForValue.build()); onChanged(); } else { labelsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public Builder addLabels(com.google.cloud.securitycenter.v2.Label value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(value); onChanged(); } else { labelsBuilder_.addMessage(value); } return this; } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public Builder addLabels(int index, com.google.cloud.securitycenter.v2.Label value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(index, value); onChanged(); } else { labelsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public Builder addLabels(com.google.cloud.securitycenter.v2.Label.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.add(builderForValue.build()); onChanged(); } else { labelsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public Builder addLabels( int index, com.google.cloud.securitycenter.v2.Label.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.add(index, builderForValue.build()); onChanged(); } else { labelsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public Builder addAllLabels( java.lang.Iterable values) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labels_); onChanged(); } else { labelsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { labelsBuilder_.clear(); } return this; } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public Builder removeLabels(int index) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.remove(index); onChanged(); } else { labelsBuilder_.remove(index); } return this; } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public com.google.cloud.securitycenter.v2.Label.Builder getLabelsBuilder(int index) { return getLabelsFieldBuilder().getBuilder(index); } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public com.google.cloud.securitycenter.v2.LabelOrBuilder getLabelsOrBuilder(int index) { if (labelsBuilder_ == null) { return labels_.get(index); } else { return labelsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public java.util.List getLabelsOrBuilderList() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(labels_); } } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public com.google.cloud.securitycenter.v2.Label.Builder addLabelsBuilder() { return getLabelsFieldBuilder() .addBuilder(com.google.cloud.securitycenter.v2.Label.getDefaultInstance()); } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public com.google.cloud.securitycenter.v2.Label.Builder addLabelsBuilder(int index) { return getLabelsFieldBuilder() .addBuilder(index, com.google.cloud.securitycenter.v2.Label.getDefaultInstance()); } /** * * *
     * Container labels, as provided by the container runtime.
     * 
* * repeated .google.cloud.securitycenter.v2.Label labels = 4; */ public java.util.List getLabelsBuilderList() { return getLabelsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v2.Label, com.google.cloud.securitycenter.v2.Label.Builder, com.google.cloud.securitycenter.v2.LabelOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v2.Label, com.google.cloud.securitycenter.v2.Label.Builder, com.google.cloud.securitycenter.v2.LabelOrBuilder>( labels_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } 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_; /** * * *
     * The time that the container was created.
     * 
* * .google.protobuf.Timestamp create_time = 5; * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * The time that the container was created.
     * 
* * .google.protobuf.Timestamp create_time = 5; * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * The time that the container was created.
     * 
* * .google.protobuf.Timestamp create_time = 5; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The time that the container was created.
     * 
* * .google.protobuf.Timestamp create_time = 5; */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The time that the container was created.
     * 
* * .google.protobuf.Timestamp create_time = 5; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * The time that the container was created.
     * 
* * .google.protobuf.Timestamp create_time = 5; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The time that the container was created.
     * 
* * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * The time that the container was created.
     * 
* * .google.protobuf.Timestamp create_time = 5; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * The time that the container was created.
     * 
* * .google.protobuf.Timestamp create_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } @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.securitycenter.v2.Container) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.Container) private static final com.google.cloud.securitycenter.v2.Container DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.Container(); } public static com.google.cloud.securitycenter.v2.Container getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Container parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.securitycenter.v2.Container getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy