Class ListDetectorsResponse.Builder (0.45.0)

public static final class ListDetectorsResponse.Builder extends GeneratedMessageV3.Builder<ListDetectorsResponse.Builder> implements ListDetectorsResponseOrBuilder

Response message for ListDetectors.

Protobuf type google.cloud.securitycenter.settings.v1beta1.ListDetectorsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDetectors(Iterable<? extends Detector> values)

public ListDetectorsResponse.Builder addAllDetectors(Iterable<? extends Detector> values)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.settings.v1beta1.Detector>
Returns
Type Description
ListDetectorsResponse.Builder

addDetectors(Detector value)

public ListDetectorsResponse.Builder addDetectors(Detector value)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameter
Name Description
value Detector
Returns
Type Description
ListDetectorsResponse.Builder

addDetectors(Detector.Builder builderForValue)

public ListDetectorsResponse.Builder addDetectors(Detector.Builder builderForValue)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameter
Name Description
builderForValue Detector.Builder
Returns
Type Description
ListDetectorsResponse.Builder

addDetectors(int index, Detector value)

public ListDetectorsResponse.Builder addDetectors(int index, Detector value)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameters
Name Description
index int
value Detector
Returns
Type Description
ListDetectorsResponse.Builder

addDetectors(int index, Detector.Builder builderForValue)

public ListDetectorsResponse.Builder addDetectors(int index, Detector.Builder builderForValue)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameters
Name Description
index int
builderForValue Detector.Builder
Returns
Type Description
ListDetectorsResponse.Builder

addDetectorsBuilder()

public Detector.Builder addDetectorsBuilder()

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Returns
Type Description
Detector.Builder

addDetectorsBuilder(int index)

public Detector.Builder addDetectorsBuilder(int index)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameter
Name Description
index int
Returns
Type Description
Detector.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListDetectorsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDetectorsResponse.Builder
Overrides

build()

public ListDetectorsResponse build()
Returns
Type Description
ListDetectorsResponse

buildPartial()

public ListDetectorsResponse buildPartial()
Returns
Type Description
ListDetectorsResponse

clear()

public ListDetectorsResponse.Builder clear()
Returns
Type Description
ListDetectorsResponse.Builder
Overrides

clearDetectors()

public ListDetectorsResponse.Builder clearDetectors()

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Returns
Type Description
ListDetectorsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListDetectorsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListDetectorsResponse.Builder
Overrides

clearNextPageToken()

public ListDetectorsResponse.Builder clearNextPageToken()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListDetectorsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListDetectorsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListDetectorsResponse.Builder
Overrides

clone()

public ListDetectorsResponse.Builder clone()
Returns
Type Description
ListDetectorsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListDetectorsResponse getDefaultInstanceForType()
Returns
Type Description
ListDetectorsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDetectors(int index)

public Detector getDetectors(int index)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameter
Name Description
index int
Returns
Type Description
Detector

getDetectorsBuilder(int index)

public Detector.Builder getDetectorsBuilder(int index)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameter
Name Description
index int
Returns
Type Description
Detector.Builder

getDetectorsBuilderList()

public List<Detector.Builder> getDetectorsBuilderList()

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Returns
Type Description
List<Builder>

getDetectorsCount()

public int getDetectorsCount()

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Returns
Type Description
int

getDetectorsList()

public List<Detector> getDetectorsList()

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Returns
Type Description
List<Detector>

getDetectorsOrBuilder(int index)

public DetectorOrBuilder getDetectorsOrBuilder(int index)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameter
Name Description
index int
Returns
Type Description
DetectorOrBuilder

getDetectorsOrBuilderList()

public List<? extends DetectorOrBuilder> getDetectorsOrBuilderList()

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.settings.v1beta1.DetectorOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListDetectorsResponse other)

public ListDetectorsResponse.Builder mergeFrom(ListDetectorsResponse other)
Parameter
Name Description
other ListDetectorsResponse
Returns
Type Description
ListDetectorsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListDetectorsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListDetectorsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListDetectorsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListDetectorsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDetectorsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDetectorsResponse.Builder
Overrides

removeDetectors(int index)

public ListDetectorsResponse.Builder removeDetectors(int index)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDetectorsResponse.Builder

setDetectors(int index, Detector value)

public ListDetectorsResponse.Builder setDetectors(int index, Detector value)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameters
Name Description
index int
value Detector
Returns
Type Description
ListDetectorsResponse.Builder

setDetectors(int index, Detector.Builder builderForValue)

public ListDetectorsResponse.Builder setDetectors(int index, Detector.Builder builderForValue)

The detectors from the specified organization.

repeated .google.cloud.securitycenter.settings.v1beta1.Detector detectors = 1;

Parameters
Name Description
index int
builderForValue Detector.Builder
Returns
Type Description
ListDetectorsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListDetectorsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDetectorsResponse.Builder
Overrides

setNextPageToken(String value)

public ListDetectorsResponse.Builder setNextPageToken(String value)

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListDetectorsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDetectorsResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListDetectorsResponse.Builder

This builder for chaining.

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

public ListDetectorsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListDetectorsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListDetectorsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDetectorsResponse.Builder
Overrides