public static final class ListSourcesResponse.Builder extends GeneratedMessageV3.Builder<ListSourcesResponse.Builder> implements ListSourcesResponseOrBuilder
Response message for listing sources.
Protobuf type google.cloud.securitycenter.v2.ListSourcesResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllSources(Iterable<? extends Source> values)
public ListSourcesResponse.Builder addAllSources(Iterable<? extends Source> values)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.securitycenter.v2.Source>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSources(Source value)
public ListSourcesResponse.Builder addSources(Source value)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Parameter |
Name |
Description |
value |
Source
|
addSources(Source.Builder builderForValue)
public ListSourcesResponse.Builder addSources(Source.Builder builderForValue)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
addSources(int index, Source value)
public ListSourcesResponse.Builder addSources(int index, Source value)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Source
|
addSources(int index, Source.Builder builderForValue)
public ListSourcesResponse.Builder addSources(int index, Source.Builder builderForValue)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
addSourcesBuilder()
public Source.Builder addSourcesBuilder()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
addSourcesBuilder(int index)
public Source.Builder addSourcesBuilder(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Parameter |
Name |
Description |
index |
int
|
build()
public ListSourcesResponse build()
buildPartial()
public ListSourcesResponse buildPartial()
clear()
public ListSourcesResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListSourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNextPageToken()
public ListSourcesResponse.Builder clearNextPageToken()
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSources()
public ListSourcesResponse.Builder clearSources()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
clone()
public ListSourcesResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListSourcesResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNextPageToken()
public String getNextPageToken()
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
Returns |
Type |
Description |
String |
The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
Returns |
Type |
Description |
ByteString |
The bytes for nextPageToken.
|
getSources(int index)
public Source getSources(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Source |
|
getSourcesBuilder(int index)
public Source.Builder getSourcesBuilder(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Parameter |
Name |
Description |
index |
int
|
getSourcesBuilderList()
public List<Source.Builder> getSourcesBuilderList()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
getSourcesCount()
public int getSourcesCount()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Returns |
Type |
Description |
int |
|
getSourcesList()
public List<Source> getSourcesList()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
getSourcesOrBuilder(int index)
public SourceOrBuilder getSourcesOrBuilder(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Parameter |
Name |
Description |
index |
int
|
getSourcesOrBuilderList()
public List<? extends SourceOrBuilder> getSourcesOrBuilderList()
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.securitycenter.v2.SourceOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListSourcesResponse other)
public ListSourcesResponse.Builder mergeFrom(ListSourcesResponse other)
public ListSourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListSourcesResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeSources(int index)
public ListSourcesResponse.Builder removeSources(int index)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListSourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNextPageToken(String value)
public ListSourcesResponse.Builder setNextPageToken(String value)
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
Parameter |
Name |
Description |
value |
String
The nextPageToken to set.
|
setNextPageTokenBytes(ByteString value)
public ListSourcesResponse.Builder setNextPageTokenBytes(ByteString value)
Token to retrieve the next page of results, or empty if there are no more
results.
string next_page_token = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for nextPageToken to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListSourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSources(int index, Source value)
public ListSourcesResponse.Builder setSources(int index, Source value)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Source
|
setSources(int index, Source.Builder builderForValue)
public ListSourcesResponse.Builder setSources(int index, Source.Builder builderForValue)
Sources belonging to the requested parent.
repeated .google.cloud.securitycenter.v2.Source sources = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides