Class GroupResult.Builder (2.23.0)

public static final class GroupResult.Builder extends GeneratedMessageV3.Builder<GroupResult.Builder> implements GroupResultOrBuilder

Result containing the properties and count of a groupBy request.

Protobuf type google.cloud.securitycenter.v1beta1.GroupResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GroupResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GroupResult.Builder
Overrides

build()

public GroupResult build()
Returns
TypeDescription
GroupResult

buildPartial()

public GroupResult buildPartial()
Returns
TypeDescription
GroupResult

clear()

public GroupResult.Builder clear()
Returns
TypeDescription
GroupResult.Builder
Overrides

clearCount()

public GroupResult.Builder clearCount()

Total count of resources for the given properties.

int64 count = 2;

Returns
TypeDescription
GroupResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GroupResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GroupResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GroupResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GroupResult.Builder
Overrides

clearProperties()

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

clone()

public GroupResult.Builder clone()
Returns
TypeDescription
GroupResult.Builder
Overrides

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

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableProperties()

public Map<String,Value> getMutableProperties()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,Value>

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GroupResult other)

public GroupResult.Builder mergeFrom(GroupResult other)
Parameter
NameDescription
otherGroupResult
Returns
TypeDescription
GroupResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GroupResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GroupResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GroupResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GroupResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroupResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GroupResult.Builder
Overrides

putAllProperties(Map<String,Value> values)

public GroupResult.Builder putAllProperties(Map<String,Value> values)

Properties matching the groupBy fields in the request.

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

Parameter
NameDescription
valuesMap<String,Value>
Returns
TypeDescription
GroupResult.Builder

putProperties(String key, Value value)

public GroupResult.Builder putProperties(String key, Value value)

Properties matching the groupBy fields in the request.

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

Parameters
NameDescription
keyString
valueValue
Returns
TypeDescription
GroupResult.Builder

removeProperties(String key)

public GroupResult.Builder removeProperties(String key)

Properties matching the groupBy fields in the request.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
GroupResult.Builder

setCount(long value)

public GroupResult.Builder setCount(long value)

Total count of resources for the given properties.

int64 count = 2;

Parameter
NameDescription
valuelong

The count to set.

Returns
TypeDescription
GroupResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GroupResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GroupResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GroupResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GroupResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GroupResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GroupResult.Builder
Overrides