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

com.google.cloud.securitycenter.v1.ListFindingsResponse 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/v1/securitycenter_service.proto

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

/**
 *
 *
 * 
 * Response message for listing findings.
 * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse} */ public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse) ListFindingsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFindingsResponse() { listFindingsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); } public interface ListFindingsResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) com.google.protobuf.MessageOrBuilder { /** * * *
     * Finding matching the search request.
     * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; * * @return Whether the finding field is set. */ boolean hasFinding(); /** * * *
     * Finding matching the search request.
     * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; * * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** * * *
     * Finding matching the search request.
     * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; */ com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); /** * * *
     * State change of the finding between the points in time.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * * * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** * * *
     * State change of the finding between the points in time.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * * * @return The stateChange. */ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange(); /** * * *
     * Output only. Resource that is associated with this finding.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the resource field is set. */ boolean hasResource(); /** * * *
     * Output only. Resource that is associated with this finding.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The resource. */ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource(); /** * * *
     * Output only. Resource that is associated with this finding.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder(); } /** * * *
   * Result containing the Finding and its StateChange.
   * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult} */ public static final class ListFindingsResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) ListFindingsResultOrBuilder { private static final long serialVersionUID = 0L; // Use ListFindingsResult.newBuilder() to construct. private ListFindingsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFindingsResult() { stateChange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder .class); } /** * * *
     * The change in state of the finding.
     *
     * When querying across two points in time this describes
     * the change in the finding between the two points: CHANGED, UNCHANGED,
     * ADDED, or REMOVED. Findings can not be deleted, so REMOVED implies that
     * the finding at timestamp does not match the filter specified, but it did
     * at timestamp - compare_duration. If there was no compare_duration
     * supplied in the request the state change will be: UNUSED
     * 
* * Protobuf enum {@code * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange} */ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * State change is unused, this is the canonical default for this enum.
       * 
* * UNUSED = 0; */ UNUSED(0), /** * * *
       * The finding has changed state in some way between the points in time
       * and existed at both points.
       * 
* * CHANGED = 1; */ CHANGED(1), /** * * *
       * The finding has not changed state between the points in time and
       * existed at both points.
       * 
* * UNCHANGED = 2; */ UNCHANGED(2), /** * * *
       * The finding was created between the points in time.
       * 
* * ADDED = 3; */ ADDED(3), /** * * *
       * The finding at timestamp does not match the filter specified, but it
       * did at timestamp - compare_duration.
       * 
* * REMOVED = 4; */ REMOVED(4), UNRECOGNIZED(-1), ; /** * * *
       * State change is unused, this is the canonical default for this enum.
       * 
* * UNUSED = 0; */ public static final int UNUSED_VALUE = 0; /** * * *
       * The finding has changed state in some way between the points in time
       * and existed at both points.
       * 
* * CHANGED = 1; */ public static final int CHANGED_VALUE = 1; /** * * *
       * The finding has not changed state between the points in time and
       * existed at both points.
       * 
* * UNCHANGED = 2; */ public static final int UNCHANGED_VALUE = 2; /** * * *
       * The finding was created between the points in time.
       * 
* * ADDED = 3; */ public static final int ADDED_VALUE = 3; /** * * *
       * The finding at timestamp does not match the filter specified, but it
       * did at timestamp - compare_duration.
       * 
* * REMOVED = 4; */ public static final int REMOVED_VALUE = 4; 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 StateChange 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 StateChange forNumber(int value) { switch (value) { case 0: return UNUSED; case 1: return CHANGED; case 2: return UNCHANGED; case 3: return ADDED; case 4: return REMOVED; 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 StateChange findValueByNumber(int number) { return StateChange.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.securitycenter.v1.ListFindingsResponse.ListFindingsResult .getDescriptor() .getEnumTypes() .get(0); } private static final StateChange[] VALUES = values(); public static StateChange 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 StateChange(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange) } public interface ResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) com.google.protobuf.MessageOrBuilder { /** * * *
       * The full resource name of the resource. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string name = 1; * * @return The name. */ java.lang.String getName(); /** * * *
       * The full resource name of the resource. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string name = 1; * * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * * *
       * The human readable name of the resource.
       * 
* * string display_name = 8; * * @return The displayName. */ java.lang.String getDisplayName(); /** * * *
       * The human readable name of the resource.
       * 
* * string display_name = 8; * * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); /** * * *
       * The full resource type of the resource.
       * 
* * string type = 6; * * @return The type. */ java.lang.String getType(); /** * * *
       * The full resource type of the resource.
       * 
* * string type = 6; * * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
       * The full resource name of project that the resource belongs to.
       * 
* * string project_name = 2; * * @return The projectName. */ java.lang.String getProjectName(); /** * * *
       * The full resource name of project that the resource belongs to.
       * 
* * string project_name = 2; * * @return The bytes for projectName. */ com.google.protobuf.ByteString getProjectNameBytes(); /** * * *
       * The project ID that the resource belongs to.
       * 
* * string project_display_name = 3; * * @return The projectDisplayName. */ java.lang.String getProjectDisplayName(); /** * * *
       * The project ID that the resource belongs to.
       * 
* * string project_display_name = 3; * * @return The bytes for projectDisplayName. */ com.google.protobuf.ByteString getProjectDisplayNameBytes(); /** * * *
       * The full resource name of resource's parent.
       * 
* * string parent_name = 4; * * @return The parentName. */ java.lang.String getParentName(); /** * * *
       * The full resource name of resource's parent.
       * 
* * string parent_name = 4; * * @return The bytes for parentName. */ com.google.protobuf.ByteString getParentNameBytes(); /** * * *
       * The human readable name of resource's parent.
       * 
* * string parent_display_name = 5; * * @return The parentDisplayName. */ java.lang.String getParentDisplayName(); /** * * *
       * The human readable name of resource's parent.
       * 
* * string parent_display_name = 5; * * @return The bytes for parentDisplayName. */ com.google.protobuf.ByteString getParentDisplayNameBytes(); /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ java.util.List getFoldersList(); /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ com.google.cloud.securitycenter.v1.Folder getFolders(int index); /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ int getFoldersCount(); /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ java.util.List getFoldersOrBuilderList(); /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index); } /** * * *
     * Information related to the Google Cloud resource that is
     * associated with this finding.
     * 
* * Protobuf type {@code * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} */ public static final class Resource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) ResourceOrBuilder { private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Resource() { name_ = ""; displayName_ = ""; type_ = ""; projectName_ = ""; projectDisplayName_ = ""; parentName_ = ""; parentDisplayName_ = ""; folders_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
       * The full resource name of the resource. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string name = 1; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
       * The full resource name of the resource. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string name = 1; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
       * The human readable name of the resource.
       * 
* * string display_name = 8; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** * * *
       * The human readable name of the resource.
       * 
* * string display_name = 8; * * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** * * *
       * The full resource type of the resource.
       * 
* * string type = 6; * * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** * * *
       * The full resource type of the resource.
       * 
* * string type = 6; * * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object projectName_ = ""; /** * * *
       * The full resource name of project that the resource belongs to.
       * 
* * string project_name = 2; * * @return The projectName. */ @java.lang.Override public java.lang.String getProjectName() { java.lang.Object ref = projectName_; 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(); projectName_ = s; return s; } } /** * * *
       * The full resource name of project that the resource belongs to.
       * 
* * string project_name = 2; * * @return The bytes for projectName. */ @java.lang.Override public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object projectDisplayName_ = ""; /** * * *
       * The project ID that the resource belongs to.
       * 
* * string project_display_name = 3; * * @return The projectDisplayName. */ @java.lang.Override public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; 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(); projectDisplayName_ = s; return s; } } /** * * *
       * The project ID that the resource belongs to.
       * 
* * string project_display_name = 3; * * @return The bytes for projectDisplayName. */ @java.lang.Override public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARENT_NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object parentName_ = ""; /** * * *
       * The full resource name of resource's parent.
       * 
* * string parent_name = 4; * * @return The parentName. */ @java.lang.Override public java.lang.String getParentName() { java.lang.Object ref = parentName_; 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(); parentName_ = s; return s; } } /** * * *
       * The full resource name of resource's parent.
       * 
* * string parent_name = 4; * * @return The bytes for parentName. */ @java.lang.Override public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object parentDisplayName_ = ""; /** * * *
       * The human readable name of resource's parent.
       * 
* * string parent_display_name = 5; * * @return The parentDisplayName. */ @java.lang.Override public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; 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(); parentDisplayName_ = s; return s; } } /** * * *
       * The human readable name of resource's parent.
       * 
* * string parent_display_name = 5; * * @return The bytes for parentDisplayName. */ @java.lang.Override public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDERS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List folders_; /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ @java.lang.Override public java.util.List getFoldersList() { return folders_; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ @java.lang.Override public java.util.List getFoldersOrBuilderList() { return folders_; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ @java.lang.Override public int getFoldersCount() { return folders_.size(); } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ @java.lang.Override public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { return folders_.get(index); } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is
       * the folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ @java.lang.Override public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) { return folders_.get(index); } 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(projectName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parentDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, type_); } for (int i = 0; i < folders_.size(); i++) { output.writeMessage(7, folders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, displayName_); } 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(projectName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parentName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_); } for (int i = 0; i < folders_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, folders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_); } 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.v1.ListFindingsResponse.ListFindingsResult.Resource)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource other = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) obj; if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getType().equals(other.getType())) return false; if (!getProjectName().equals(other.getProjectName())) return false; if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false; if (!getParentName().equals(other.getParentName())) return false; if (!getParentDisplayName().equals(other.getParentDisplayName())) return false; if (!getFoldersList().equals(other.getFoldersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + PROJECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getProjectName().hashCode(); hash = (37 * hash) + PROJECT_DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getProjectDisplayName().hashCode(); hash = (37 * hash) + PARENT_NAME_FIELD_NUMBER; hash = (53 * hash) + getParentName().hashCode(); hash = (37 * hash) + PARENT_DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getParentDisplayName().hashCode(); if (getFoldersCount() > 0) { hash = (37 * hash) + FOLDERS_FIELD_NUMBER; hash = (53 * hash) + getFoldersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource 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.v1.ListFindingsResponse.ListFindingsResult .Resource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource 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.v1.ListFindingsResponse.ListFindingsResult .Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource 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.v1.ListFindingsResponse.ListFindingsResult .Resource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource 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.v1.ListFindingsResponse.ListFindingsResult .Resource parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource 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.v1.ListFindingsResponse.ListFindingsResult.Resource 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 Google Cloud resource that is
       * associated with this finding.
       * 
* * Protobuf type {@code * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .ResourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource.Builder.class); } // Construct using // com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; displayName_ = ""; type_ = ""; projectName_ = ""; projectDisplayName_ = ""; parentName_ = ""; parentDisplayName_ = ""; if (foldersBuilder_ == null) { folders_ = java.util.Collections.emptyList(); } else { folders_ = null; foldersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource build() { com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource buildPartial() { com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource result = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource result) { if (foldersBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); bitField0_ = (bitField0_ & ~0x00000080); } result.folders_ = folders_; } else { result.folders_ = foldersBuilder_.build(); } } private void buildPartial0( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.projectName_ = projectName_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.projectDisplayName_ = projectDisplayName_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.parentName_ = parentName_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.parentDisplayName_ = parentDisplayName_; } } @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.v1.ListFindingsResponse.ListFindingsResult.Resource) { return mergeFrom( (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource other) { if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getProjectName().isEmpty()) { projectName_ = other.projectName_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getProjectDisplayName().isEmpty()) { projectDisplayName_ = other.projectDisplayName_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getParentName().isEmpty()) { parentName_ = other.parentName_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getParentDisplayName().isEmpty()) { parentDisplayName_ = other.parentDisplayName_; bitField0_ |= 0x00000040; onChanged(); } if (foldersBuilder_ == null) { if (!other.folders_.isEmpty()) { if (folders_.isEmpty()) { folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureFoldersIsMutable(); folders_.addAll(other.folders_); } onChanged(); } } else { if (!other.folders_.isEmpty()) { if (foldersBuilder_.isEmpty()) { foldersBuilder_.dispose(); foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000080); foldersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFoldersFieldBuilder() : null; } else { foldersBuilder_.addAllMessages(other.folders_); } } } 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: { projectName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 18 case 26: { projectDisplayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 26 case 34: { parentName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 34 case 42: { parentDisplayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 42 case 50: { type_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 50 case 58: { com.google.cloud.securitycenter.v1.Folder m = input.readMessage( com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry); if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(m); } else { foldersBuilder_.addMessage(m); } break; } // case 58 case 66: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 66 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_ = ""; /** * * *
         * The full resource name of the resource. See:
         * https://cloud.google.com/apis/design/resource_names#full_resource_name
         * 
* * string name = 1; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * The full resource name of the resource. See:
         * https://cloud.google.com/apis/design/resource_names#full_resource_name
         * 
* * string name = 1; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * The full resource name of the resource. See:
         * https://cloud.google.com/apis/design/resource_names#full_resource_name
         * 
* * string name = 1; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * The full resource name of the resource. See:
         * https://cloud.google.com/apis/design/resource_names#full_resource_name
         * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
         * The full resource name of the resource. See:
         * https://cloud.google.com/apis/design/resource_names#full_resource_name
         * 
* * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
         * The human readable name of the resource.
         * 
* * string display_name = 8; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * The human readable name of the resource.
         * 
* * string display_name = 8; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * The human readable name of the resource.
         * 
* * string display_name = 8; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * The human readable name of the resource.
         * 
* * string display_name = 8; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
         * The human readable name of the resource.
         * 
* * string display_name = 8; * * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object type_ = ""; /** * * *
         * The full resource type of the resource.
         * 
* * string type = 6; * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * The full resource type of the resource.
         * 
* * string type = 6; * * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * The full resource type of the resource.
         * 
* * string type = 6; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * The full resource type of the resource.
         * 
* * string type = 6; * * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
         * The full resource type of the resource.
         * 
* * string type = 6; * * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object projectName_ = ""; /** * * *
         * The full resource name of project that the resource belongs to.
         * 
* * string project_name = 2; * * @return The projectName. */ public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * The full resource name of project that the resource belongs to.
         * 
* * string project_name = 2; * * @return The bytes for projectName. */ public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * The full resource name of project that the resource belongs to.
         * 
* * string project_name = 2; * * @param value The projectName to set. * @return This builder for chaining. */ public Builder setProjectName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
         * The full resource name of project that the resource belongs to.
         * 
* * string project_name = 2; * * @return This builder for chaining. */ public Builder clearProjectName() { projectName_ = getDefaultInstance().getProjectName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
         * The full resource name of project that the resource belongs to.
         * 
* * string project_name = 2; * * @param value The bytes for projectName to set. * @return This builder for chaining. */ public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object projectDisplayName_ = ""; /** * * *
         * The project ID that the resource belongs to.
         * 
* * string project_display_name = 3; * * @return The projectDisplayName. */ public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * The project ID that the resource belongs to.
         * 
* * string project_display_name = 3; * * @return The bytes for projectDisplayName. */ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * The project ID that the resource belongs to.
         * 
* * string project_display_name = 3; * * @param value The projectDisplayName to set. * @return This builder for chaining. */ public Builder setProjectDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectDisplayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
         * The project ID that the resource belongs to.
         * 
* * string project_display_name = 3; * * @return This builder for chaining. */ public Builder clearProjectDisplayName() { projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
         * The project ID that the resource belongs to.
         * 
* * string project_display_name = 3; * * @param value The bytes for projectDisplayName to set. * @return This builder for chaining. */ public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectDisplayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object parentName_ = ""; /** * * *
         * The full resource name of resource's parent.
         * 
* * string parent_name = 4; * * @return The parentName. */ public java.lang.String getParentName() { java.lang.Object ref = parentName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * The full resource name of resource's parent.
         * 
* * string parent_name = 4; * * @return The bytes for parentName. */ public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * The full resource name of resource's parent.
         * 
* * string parent_name = 4; * * @param value The parentName to set. * @return This builder for chaining. */ public Builder setParentName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } parentName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
         * The full resource name of resource's parent.
         * 
* * string parent_name = 4; * * @return This builder for chaining. */ public Builder clearParentName() { parentName_ = getDefaultInstance().getParentName(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
         * The full resource name of resource's parent.
         * 
* * string parent_name = 4; * * @param value The bytes for parentName to set. * @return This builder for chaining. */ public Builder setParentNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object parentDisplayName_ = ""; /** * * *
         * The human readable name of resource's parent.
         * 
* * string parent_display_name = 5; * * @return The parentDisplayName. */ public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * The human readable name of resource's parent.
         * 
* * string parent_display_name = 5; * * @return The bytes for parentDisplayName. */ public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * The human readable name of resource's parent.
         * 
* * string parent_display_name = 5; * * @param value The parentDisplayName to set. * @return This builder for chaining. */ public Builder setParentDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } parentDisplayName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
         * The human readable name of resource's parent.
         * 
* * string parent_display_name = 5; * * @return This builder for chaining. */ public Builder clearParentDisplayName() { parentDisplayName_ = getDefaultInstance().getParentDisplayName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
         * The human readable name of resource's parent.
         * 
* * string parent_display_name = 5; * * @param value The bytes for parentDisplayName to set. * @return This builder for chaining. */ public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentDisplayName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.util.List folders_ = java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> foldersBuilder_; /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public java.util.List getFoldersList() { if (foldersBuilder_ == null) { return java.util.Collections.unmodifiableList(folders_); } else { return foldersBuilder_.getMessageList(); } } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public int getFoldersCount() { if (foldersBuilder_ == null) { return folders_.size(); } else { return foldersBuilder_.getCount(); } } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { if (foldersBuilder_ == null) { return folders_.get(index); } else { return foldersBuilder_.getMessage(index); } } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.set(index, value); onChanged(); } else { foldersBuilder_.setMessage(index, value); } return this; } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public Builder setFolders( int index, com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.set(index, builderForValue.build()); onChanged(); } else { foldersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.add(value); onChanged(); } else { foldersBuilder_.addMessage(value); } return this; } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.add(index, value); onChanged(); } else { foldersBuilder_.addMessage(index, value); } return this; } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public Builder addFolders( com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(builderForValue.build()); onChanged(); } else { foldersBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public Builder addFolders( int index, com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(index, builderForValue.build()); onChanged(); } else { foldersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); } return this; } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public Builder clearFolders() { if (foldersBuilder_ == null) { folders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { foldersBuilder_.clear(); } return this; } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public Builder removeFolders(int index) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.remove(index); onChanged(); } else { foldersBuilder_.remove(index); } return this; } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int index) { return getFoldersFieldBuilder().getBuilder(index); } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) { if (foldersBuilder_ == null) { return folders_.get(index); } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public java.util.List getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(folders_); } } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() { return getFoldersFieldBuilder() .addBuilder(com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int index) { return getFoldersFieldBuilder() .addBuilder(index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); } /** * * *
         * Contains a Folder message for each folder in the assets ancestry.
         * The first folder is the deepest nested folder, and the last folder is
         * the folder directly under the Organization.
         * 
* * repeated .google.cloud.securitycenter.v1.Folder folders = 7; */ public java.util.List getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder>( folders_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); folders_ = null; } return foldersBuilder_; } @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.v1.ListFindingsResponse.ListFindingsResult.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) private static final com.google.cloud.securitycenter.v1.ListFindingsResponse .ListFindingsResult.Resource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource(); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Resource 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.v1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int FINDING_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.Finding finding_; /** * * *
     * Finding matching the search request.
     * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; * * @return Whether the finding field is set. */ @java.lang.Override public boolean hasFinding() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Finding matching the search request.
     * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } /** * * *
     * Finding matching the search request.
     * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; */ @java.lang.Override public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } public static final int STATE_CHANGE_FIELD_NUMBER = 2; private int stateChange_ = 0; /** * * *
     * State change of the finding between the points in time.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * * * @return The enum numeric value on the wire for stateChange. */ @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** * * *
     * State change of the finding between the points in time.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * * * @return The stateChange. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange .forNumber(stateChange_); return result == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange .UNRECOGNIZED : result; } public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource_; /** * * *
     * Output only. Resource that is associated with this finding.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the resource field is set. */ @java.lang.Override public boolean hasResource() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Output only. Resource that is associated with this finding.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The resource. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource() { return resource_ == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .getDefaultInstance() : resource_; } /** * * *
     * Output only. Resource that is associated with this finding.
     * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .ResourceOrBuilder getResourceOrBuilder() { return resource_ == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .getDefaultInstance() : resource_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getFinding()); } if (stateChange_ != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange .UNUSED .getNumber()) { output.writeEnum(2, stateChange_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getResource()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding()); } if (stateChange_ != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange .UNUSED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } 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.v1.ListFindingsResponse.ListFindingsResult)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) obj; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { if (!getFinding().equals(other.getFinding())) return false; } if (stateChange_ != other.stateChange_) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { if (!getResource().equals(other.getResource())) 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(); if (hasFinding()) { hash = (37 * hash) + FINDING_FIELD_NUMBER; hash = (53 * hash) + getFinding().hashCode(); } hash = (37 * hash) + STATE_CHANGE_FIELD_NUMBER; hash = (53 * hash) + stateChange_; if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult 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.v1.ListFindingsResponse.ListFindingsResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult 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.v1.ListFindingsResponse.ListFindingsResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult 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.v1.ListFindingsResponse.ListFindingsResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult 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.v1.ListFindingsResponse.ListFindingsResult parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult 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.v1.ListFindingsResponse.ListFindingsResult 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; } /** * * *
     * Result containing the Finding and its StateChange.
     * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder .class); } // Construct using // com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFindingFieldBuilder(); getResourceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; finding_ = null; if (findingBuilder_ != null) { findingBuilder_.dispose(); findingBuilder_ = null; } stateChange_ = 0; resource_ = null; if (resourceBuilder_ != null) { resourceBuilder_.dispose(); resourceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult build() { com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult buildPartial() { com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.finding_ = findingBuilder_ == null ? finding_ : findingBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.stateChange_ = stateChange_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.v1.ListFindingsResponse.ListFindingsResult) { return mergeFrom( (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other) { if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .getDefaultInstance()) return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } if (other.stateChange_ != 0) { setStateChangeValue(other.getStateChangeValue()); } if (other.hasResource()) { mergeResource(other.getResource()); } 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: { input.readMessage(getFindingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { stateChange_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 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 com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> findingBuilder_; /** * * *
       * Finding matching the search request.
       * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; * * @return Whether the finding field is set. */ public boolean hasFinding() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Finding matching the search request.
       * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; * * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } else { return findingBuilder_.getMessage(); } } /** * * *
       * Finding matching the search request.
       * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; */ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } finding_ = value; } else { findingBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Finding matching the search request.
       * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; */ public Builder setFinding( com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { if (findingBuilder_ == null) { finding_ = builderForValue.build(); } else { findingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Finding matching the search request.
       * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; */ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && finding_ != null && finding_ != com.google.cloud.securitycenter.v1.Finding.getDefaultInstance()) { getFindingBuilder().mergeFrom(value); } else { finding_ = value; } } else { findingBuilder_.mergeFrom(value); } if (finding_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * Finding matching the search request.
       * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; */ public Builder clearFinding() { bitField0_ = (bitField0_ & ~0x00000001); finding_ = null; if (findingBuilder_ != null) { findingBuilder_.dispose(); findingBuilder_ = null; } onChanged(); return this; } /** * * *
       * Finding matching the search request.
       * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; */ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFindingFieldBuilder().getBuilder(); } /** * * *
       * Finding matching the search request.
       * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; */ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } } /** * * *
       * Finding matching the search request.
       * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder>( getFinding(), getParentForChildren(), isClean()); finding_ = null; } return findingBuilder_; } private int stateChange_ = 0; /** * * *
       * State change of the finding between the points in time.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * * * @return The enum numeric value on the wire for stateChange. */ @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** * * *
       * State change of the finding between the points in time.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * * * @param value The enum numeric value on the wire for stateChange to set. * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { stateChange_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * State change of the finding between the points in time.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * * * @return The stateChange. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .StateChange.forNumber(stateChange_); return result == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange .UNRECOGNIZED : result; } /** * * *
       * State change of the finding between the points in time.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * * * @param value The stateChange to set. * @return This builder for chaining. */ public Builder setStateChange( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; stateChange_ = value.getNumber(); onChanged(); return this; } /** * * *
       * State change of the finding between the points in time.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * * * @return This builder for chaining. */ public Builder clearStateChange() { bitField0_ = (bitField0_ & ~0x00000002); stateChange_ = 0; onChanged(); return this; } private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .ResourceOrBuilder> resourceBuilder_; /** * * *
       * Output only. Resource that is associated with this finding.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
       * Output only. Resource that is associated with this finding.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The resource. */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource() { if (resourceBuilder_ == null) { return resource_ == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** * * *
       * Output only. Resource that is associated with this finding.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setResource( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource value) { if (resourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resource_ = value; } else { resourceBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Output only. Resource that is associated with this finding.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setResource( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { resourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Output only. Resource that is associated with this finding.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeResource( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource value) { if (resourceBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && resource_ != null && resource_ != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; } } else { resourceBuilder_.mergeFrom(value); } if (resource_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
       * Output only. Resource that is associated with this finding.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000004); resource_ = null; if (resourceBuilder_ != null) { resourceBuilder_.dispose(); resourceBuilder_ = null; } onChanged(); return this; } /** * * *
       * Output only. Resource that is associated with this finding.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .Builder getResourceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResourceFieldBuilder().getBuilder(); } /** * * *
       * Output only. Resource that is associated with this finding.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .ResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { return resource_ == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .getDefaultInstance() : resource_; } } /** * * *
       * Output only. Resource that is associated with this finding.
       * 
* * * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource .Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .Resource.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .ResourceOrBuilder>(getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } @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.v1.ListFindingsResponse.ListFindingsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) private static final com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFindingsResult 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.v1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int LIST_FINDINGS_RESULTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List listFindingsResults_; /** * * *
   * Findings matching the list request.
   * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ @java.lang.Override public java.util.List getListFindingsResultsList() { return listFindingsResults_; } /** * * *
   * Findings matching the list request.
   * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsOrBuilderList() { return listFindingsResults_; } /** * * *
   * Findings matching the list request.
   * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ @java.lang.Override public int getListFindingsResultsCount() { return listFindingsResults_.size(); } /** * * *
   * Findings matching the list request.
   * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { return listFindingsResults_.get(index); } /** * * *
   * Findings matching the list request.
   * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder(int index) { return listFindingsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** * * *
   * Time used for executing the list request.
   * 
* * .google.protobuf.Timestamp read_time = 2; * * @return Whether the readTime field is set. */ @java.lang.Override public boolean hasReadTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Time used for executing the list request.
   * 
* * .google.protobuf.Timestamp read_time = 2; * * @return The readTime. */ @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** * * *
   * Time used for executing the list request.
   * 
* * .google.protobuf.Timestamp read_time = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** * * *
   * Token to retrieve the next page of results, or empty if there are no more
   * results.
   * 
* * string next_page_token = 3; * * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** * * *
   * Token to retrieve the next page of results, or empty if there are no more
   * results.
   * 
* * string next_page_token = 3; * * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_ = 0; /** * * *
   * The total number of findings matching the query.
   * 
* * int32 total_size = 4; * * @return The totalSize. */ @java.lang.Override public int getTotalSize() { return totalSize_; } 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 { for (int i = 0; i < listFindingsResults_.size(); i++) { output.writeMessage(1, listFindingsResults_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); } if (totalSize_ != 0) { output.writeInt32(4, totalSize_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < listFindingsResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listFindingsResults_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } 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.v1.ListFindingsResponse)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.ListFindingsResponse other = (com.google.cloud.securitycenter.v1.ListFindingsResponse) obj; if (!getListFindingsResultsList().equals(other.getListFindingsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { if (!getReadTime().equals(other.getReadTime())) return false; } if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (getTotalSize() != other.getTotalSize()) 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(); if (getListFindingsResultsCount() > 0) { hash = (37 * hash) + LIST_FINDINGS_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getListFindingsResultsList().hashCode(); } if (hasReadTime()) { hash = (37 * hash) + READ_TIME_FIELD_NUMBER; hash = (53 * hash) + getReadTime().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; hash = (53 * hash) + getTotalSize(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse 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.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse 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.v1.ListFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse 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.v1.ListFindingsResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse 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.v1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse 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.v1.ListFindingsResponse 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; } /** * * *
   * Response message for listing findings.
   * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse) com.google.cloud.securitycenter.v1.ListFindingsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListFindingsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getListFindingsResultsFieldBuilder(); getReadTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (listFindingsResultsBuilder_ == null) { listFindingsResults_ = java.util.Collections.emptyList(); } else { listFindingsResults_ = null; listFindingsResultsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); readTime_ = null; if (readTimeBuilder_ != null) { readTimeBuilder_.dispose(); readTimeBuilder_ = null; } nextPageToken_ = ""; totalSize_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v1.SecuritycenterService .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse build() { com.google.cloud.securitycenter.v1.ListFindingsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { com.google.cloud.securitycenter.v1.ListFindingsResponse result = new com.google.cloud.securitycenter.v1.ListFindingsResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.securitycenter.v1.ListFindingsResponse result) { if (listFindingsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); bitField0_ = (bitField0_ & ~0x00000001); } result.listFindingsResults_ = listFindingsResults_; } else { result.listFindingsResults_ = listFindingsResultsBuilder_.build(); } } private void buildPartial0(com.google.cloud.securitycenter.v1.ListFindingsResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.readTime_ = readTimeBuilder_ == null ? readTime_ : readTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nextPageToken_ = nextPageToken_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.totalSize_ = totalSize_; } 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.v1.ListFindingsResponse) { return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse other) { if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance()) return this; if (listFindingsResultsBuilder_ == null) { if (!other.listFindingsResults_.isEmpty()) { if (listFindingsResults_.isEmpty()) { listFindingsResults_ = other.listFindingsResults_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureListFindingsResultsIsMutable(); listFindingsResults_.addAll(other.listFindingsResults_); } onChanged(); } } else { if (!other.listFindingsResults_.isEmpty()) { if (listFindingsResultsBuilder_.isEmpty()) { listFindingsResultsBuilder_.dispose(); listFindingsResultsBuilder_ = null; listFindingsResults_ = other.listFindingsResults_; bitField0_ = (bitField0_ & ~0x00000001); listFindingsResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getListFindingsResultsFieldBuilder() : null; } else { listFindingsResultsBuilder_.addAllMessages(other.listFindingsResults_); } } } if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; bitField0_ |= 0x00000004; onChanged(); } if (other.getTotalSize() != 0) { setTotalSize(other.getTotalSize()); } 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: { com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult m = input.readMessage( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .parser(), extensionRegistry); if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(m); } else { listFindingsResultsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { nextPageToken_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { totalSize_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 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.util.List< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> listFindingsResults_ = java.util.Collections.emptyList(); private void ensureListFindingsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = new java.util.ArrayList< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult>( listFindingsResults_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> listFindingsResultsBuilder_; /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public java.util.List< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> getListFindingsResultsList() { if (listFindingsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listFindingsResults_); } else { return listFindingsResultsBuilder_.getMessageList(); } } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public int getListFindingsResultsCount() { if (listFindingsResultsBuilder_ == null) { return listFindingsResults_.size(); } else { return listFindingsResultsBuilder_.getCount(); } } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { return listFindingsResults_.get(index); } else { return listFindingsResultsBuilder_.getMessage(index); } } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public Builder setListFindingsResults( int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureListFindingsResultsIsMutable(); listFindingsResults_.set(index, value); onChanged(); } else { listFindingsResultsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public Builder setListFindingsResults( int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.set(index, builderForValue.build()); onChanged(); } else { listFindingsResultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public Builder addListFindingsResults( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureListFindingsResultsIsMutable(); listFindingsResults_.add(value); onChanged(); } else { listFindingsResultsBuilder_.addMessage(value); } return this; } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public Builder addListFindingsResults( int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureListFindingsResultsIsMutable(); listFindingsResults_.add(index, value); onChanged(); } else { listFindingsResultsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public Builder addListFindingsResults( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(builderForValue.build()); onChanged(); } else { listFindingsResultsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public Builder addListFindingsResults( int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(index, builderForValue.build()); onChanged(); } else { listFindingsResultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public Builder addAllListFindingsResults( java.lang.Iterable< ? extends com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> values) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listFindingsResults_); onChanged(); } else { listFindingsResultsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public Builder clearListFindingsResults() { if (listFindingsResultsBuilder_ == null) { listFindingsResults_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { listFindingsResultsBuilder_.clear(); } return this; } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public Builder removeListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.remove(index); onChanged(); } else { listFindingsResultsBuilder_.remove(index); } return this; } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder getListFindingsResultsBuilder(int index) { return getListFindingsResultsFieldBuilder().getBuilder(index); } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder(int index) { if (listFindingsResultsBuilder_ == null) { return listFindingsResults_.get(index); } else { return listFindingsResultsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public java.util.List< ? extends com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsOrBuilderList() { if (listFindingsResultsBuilder_ != null) { return listFindingsResultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(listFindingsResults_); } } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder() { return getListFindingsResultsFieldBuilder() .addBuilder( com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .getDefaultInstance()); } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder(int index) { return getListFindingsResultsFieldBuilder() .addBuilder( index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult .getDefaultInstance()); } /** * * *
     * Findings matching the list request.
     * 
* * * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; * */ public java.util.List< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder> getListFindingsResultsBuilderList() { return getListFindingsResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsFieldBuilder() { if (listFindingsResultsBuilder_ == null) { listFindingsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse .ListFindingsResultOrBuilder>( listFindingsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); listFindingsResults_ = null; } return listFindingsResultsBuilder_; } private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** * * *
     * Time used for executing the list request.
     * 
* * .google.protobuf.Timestamp read_time = 2; * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Time used for executing the list request.
     * 
* * .google.protobuf.Timestamp read_time = 2; * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { if (readTimeBuilder_ == null) { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } else { return readTimeBuilder_.getMessage(); } } /** * * *
     * Time used for executing the list request.
     * 
* * .google.protobuf.Timestamp read_time = 2; */ public Builder setReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readTime_ = value; } else { readTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Time used for executing the list request.
     * 
* * .google.protobuf.Timestamp read_time = 2; */ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); } else { readTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Time used for executing the list request.
     * 
* * .google.protobuf.Timestamp read_time = 2; */ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && readTime_ != null && readTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getReadTimeBuilder().mergeFrom(value); } else { readTime_ = value; } } else { readTimeBuilder_.mergeFrom(value); } if (readTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Time used for executing the list request.
     * 
* * .google.protobuf.Timestamp read_time = 2; */ public Builder clearReadTime() { bitField0_ = (bitField0_ & ~0x00000002); readTime_ = null; if (readTimeBuilder_ != null) { readTimeBuilder_.dispose(); readTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Time used for executing the list request.
     * 
* * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** * * *
     * Time used for executing the list request.
     * 
* * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** * * *
     * Time used for executing the list request.
     * 
* * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; } private java.lang.Object nextPageToken_ = ""; /** * * *
     * Token to retrieve the next page of results, or empty if there are no more
     * results.
     * 
* * string next_page_token = 3; * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Token to retrieve the next page of results, or empty if there are no more
     * results.
     * 
* * string next_page_token = 3; * * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Token to retrieve the next page of results, or empty if there are no more
     * results.
     * 
* * string next_page_token = 3; * * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Token to retrieve the next page of results, or empty if there are no more
     * results.
     * 
* * string next_page_token = 3; * * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Token to retrieve the next page of results, or empty if there are no more
     * results.
     * 
* * string next_page_token = 3; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int totalSize_; /** * * *
     * The total number of findings matching the query.
     * 
* * int32 total_size = 4; * * @return The totalSize. */ @java.lang.Override public int getTotalSize() { return totalSize_; } /** * * *
     * The total number of findings matching the query.
     * 
* * int32 total_size = 4; * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { totalSize_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * The total number of findings matching the query.
     * 
* * int32 total_size = 4; * * @return This builder for chaining. */ public Builder clearTotalSize() { bitField0_ = (bitField0_ & ~0x00000008); totalSize_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse) private static final com.google.cloud.securitycenter.v1.ListFindingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse(); } public static com.google.cloud.securitycenter.v1.ListFindingsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFindingsResponse 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.v1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy