Class GroupResult (2.5.6)

public final class GroupResult extends GeneratedMessageV3 implements GroupResultOrBuilder

Result containing the properties and count of a groupBy request.

Protobuf type google.cloud.securitycenter.v1beta1.GroupResult

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

PROPERTIES_FIELD_NUMBER

public static final int PROPERTIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GroupResult getDefaultInstance()
Returns
TypeDescription
GroupResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static GroupResult.Builder newBuilder()
Returns
TypeDescription
GroupResult.Builder

newBuilder(GroupResult prototype)

public static GroupResult.Builder newBuilder(GroupResult prototype)
Parameter
NameDescription
prototypeGroupResult
Returns
TypeDescription
GroupResult.Builder

parseDelimitedFrom(InputStream input)

public static GroupResult parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GroupResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GroupResult parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GroupResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GroupResult parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GroupResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GroupResult parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GroupResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GroupResult parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GroupResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GroupResult parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GroupResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GroupResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GroupResult> parser()
Returns
TypeDescription
Parser<GroupResult>

Methods

containsProperties(String key)

public boolean containsProperties(String key)

Properties matching the groupBy fields in the request.

map<string, .google.protobuf.Value> properties = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCount()

public long getCount()

Total count of resources for the given properties.

int64 count = 2;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public GroupResult getDefaultInstanceForType()
Returns
TypeDescription
GroupResult

getParserForType()

public Parser<GroupResult> getParserForType()
Returns
TypeDescription
Parser<GroupResult>
Overrides

getProperties()

public Map<String,Value> getProperties()

Use #getPropertiesMap() instead.

Returns
TypeDescription
Map<String,Value>

getPropertiesCount()

public int getPropertiesCount()

Properties matching the groupBy fields in the request.

map<string, .google.protobuf.Value> properties = 1;

Returns
TypeDescription
int

getPropertiesMap()

public Map<String,Value> getPropertiesMap()

Properties matching the groupBy fields in the request.

map<string, .google.protobuf.Value> properties = 1;

Returns
TypeDescription
Map<String,Value>

getPropertiesOrDefault(String key, Value defaultValue)

public Value getPropertiesOrDefault(String key, Value defaultValue)

Properties matching the groupBy fields in the request.

map<string, .google.protobuf.Value> properties = 1;

Parameters
NameDescription
keyString
defaultValueValue
Returns
TypeDescription
Value

getPropertiesOrThrow(String key)

public Value getPropertiesOrThrow(String key)

Properties matching the groupBy fields in the request.

map<string, .google.protobuf.Value> properties = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
Value

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GroupResult.Builder newBuilderForType()
Returns
TypeDescription
GroupResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GroupResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GroupResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GroupResult.Builder toBuilder()
Returns
TypeDescription
GroupResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException