Class GroupResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GroupResult.Builder>
com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder
All Implemented Interfaces:
GroupResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GroupResult

public static final class GroupResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroupResult.Builder> implements GroupResultOrBuilder
 Result containing the properties and count of a groupBy request.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.GroupResult
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Total count of resources for the given properties.
     
    boolean
    Properties matching the groupBy fields in the request.
    long
    Total count of resources for the given properties.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Map<String,com.google.protobuf.Value>
    Deprecated.
    Map<String,com.google.protobuf.Value>
    Deprecated.
    int
    Properties matching the groupBy fields in the request.
    Map<String,com.google.protobuf.Value>
    Properties matching the groupBy fields in the request.
    com.google.protobuf.Value
    getPropertiesOrDefault(String key, com.google.protobuf.Value defaultValue)
    Properties matching the groupBy fields in the request.
    com.google.protobuf.Value
    Properties matching the groupBy fields in the request.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    putAllProperties(Map<String,com.google.protobuf.Value> values)
    Properties matching the groupBy fields in the request.
    putProperties(String key, com.google.protobuf.Value value)
    Properties matching the groupBy fields in the request.
    com.google.protobuf.Value.Builder
    Properties matching the groupBy fields in the request.
    Properties matching the groupBy fields in the request.
    setCount(long value)
    Total count of resources for the given properties.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GroupResult.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GroupResult.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GroupResult.Builder>
    • clear

      public GroupResult.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GroupResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GroupResult.Builder>
    • getDefaultInstanceForType

      public GroupResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GroupResult build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GroupResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GroupResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroupResult.Builder>
    • mergeFrom

      public GroupResult.Builder mergeFrom(GroupResult other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GroupResult.Builder>
    • mergeFrom

      public GroupResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroupResult.Builder>
      Throws:
      IOException
    • getPropertiesCount

      public int getPropertiesCount()
      Description copied from interface: GroupResultOrBuilder
       Properties matching the groupBy fields in the request.
       
      map<string, .google.protobuf.Value> properties = 1;
      Specified by:
      getPropertiesCount in interface GroupResultOrBuilder
    • containsProperties

      public boolean containsProperties(String key)
       Properties matching the groupBy fields in the request.
       
      map<string, .google.protobuf.Value> properties = 1;
      Specified by:
      containsProperties in interface GroupResultOrBuilder
    • getProperties

      @Deprecated public Map<String,com.google.protobuf.Value> getProperties()
      Deprecated.
      Use getPropertiesMap() instead.
      Specified by:
      getProperties in interface GroupResultOrBuilder
    • getPropertiesMap

      public Map<String,com.google.protobuf.Value> getPropertiesMap()
       Properties matching the groupBy fields in the request.
       
      map<string, .google.protobuf.Value> properties = 1;
      Specified by:
      getPropertiesMap in interface GroupResultOrBuilder
    • getPropertiesOrDefault

      public com.google.protobuf.Value getPropertiesOrDefault(String key, com.google.protobuf.Value defaultValue)
       Properties matching the groupBy fields in the request.
       
      map<string, .google.protobuf.Value> properties = 1;
      Specified by:
      getPropertiesOrDefault in interface GroupResultOrBuilder
    • getPropertiesOrThrow

      public com.google.protobuf.Value getPropertiesOrThrow(String key)
       Properties matching the groupBy fields in the request.
       
      map<string, .google.protobuf.Value> properties = 1;
      Specified by:
      getPropertiesOrThrow in interface GroupResultOrBuilder
    • clearProperties

      public GroupResult.Builder clearProperties()
    • removeProperties

      public GroupResult.Builder removeProperties(String key)
       Properties matching the groupBy fields in the request.
       
      map<string, .google.protobuf.Value> properties = 1;
    • getMutableProperties

      @Deprecated public Map<String,com.google.protobuf.Value> getMutableProperties()
      Deprecated.
      Use alternate mutation accessors instead.
    • putProperties

      public GroupResult.Builder putProperties(String key, com.google.protobuf.Value value)
       Properties matching the groupBy fields in the request.
       
      map<string, .google.protobuf.Value> properties = 1;
    • putAllProperties

      public GroupResult.Builder putAllProperties(Map<String,com.google.protobuf.Value> values)
       Properties matching the groupBy fields in the request.
       
      map<string, .google.protobuf.Value> properties = 1;
    • putPropertiesBuilderIfAbsent

      public com.google.protobuf.Value.Builder putPropertiesBuilderIfAbsent(String key)
       Properties matching the groupBy fields in the request.
       
      map<string, .google.protobuf.Value> properties = 1;
    • getCount

      public long getCount()
       Total count of resources for the given properties.
       
      int64 count = 2;
      Specified by:
      getCount in interface GroupResultOrBuilder
      Returns:
      The count.
    • setCount

      public GroupResult.Builder setCount(long value)
       Total count of resources for the given properties.
       
      int64 count = 2;
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

      public GroupResult.Builder clearCount()
       Total count of resources for the given properties.
       
      int64 count = 2;
      Returns:
      This builder for chaining.