Class ListPosturesResponse.Builder (0.9.0)

public static final class ListPosturesResponse.Builder extends GeneratedMessageV3.Builder<ListPosturesResponse.Builder> implements ListPosturesResponseOrBuilder

Message for response to listing Postures.

Protobuf type google.cloud.securityposture.v1.ListPosturesResponse

Static Methods

getDescriptor()

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

Methods

addAllPostures(Iterable<? extends Posture> values)

public ListPosturesResponse.Builder addAllPostures(Iterable<? extends Posture> values)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securityposture.v1.Posture>
Returns
Type Description
ListPosturesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListPosturesResponse.Builder addAllUnreachable(Iterable<String> values)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListPosturesResponse.Builder

This builder for chaining.

addPostures(Posture value)

public ListPosturesResponse.Builder addPostures(Posture value)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameter
Name Description
value Posture
Returns
Type Description
ListPosturesResponse.Builder

addPostures(Posture.Builder builderForValue)

public ListPosturesResponse.Builder addPostures(Posture.Builder builderForValue)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameter
Name Description
builderForValue Posture.Builder
Returns
Type Description
ListPosturesResponse.Builder

addPostures(int index, Posture value)

public ListPosturesResponse.Builder addPostures(int index, Posture value)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameters
Name Description
index int
value Posture
Returns
Type Description
ListPosturesResponse.Builder

addPostures(int index, Posture.Builder builderForValue)

public ListPosturesResponse.Builder addPostures(int index, Posture.Builder builderForValue)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameters
Name Description
index int
builderForValue Posture.Builder
Returns
Type Description
ListPosturesResponse.Builder

addPosturesBuilder()

public Posture.Builder addPosturesBuilder()

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Returns
Type Description
Posture.Builder

addPosturesBuilder(int index)

public Posture.Builder addPosturesBuilder(int index)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameter
Name Description
index int
Returns
Type Description
Posture.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListPosturesResponse.Builder addUnreachable(String value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListPosturesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListPosturesResponse.Builder addUnreachableBytes(ByteString value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListPosturesResponse.Builder

This builder for chaining.

build()

public ListPosturesResponse build()
Returns
Type Description
ListPosturesResponse

buildPartial()

public ListPosturesResponse buildPartial()
Returns
Type Description
ListPosturesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPosturesResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListPosturesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostures()

public ListPosturesResponse.Builder clearPostures()

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Returns
Type Description
ListPosturesResponse.Builder

clearUnreachable()

public ListPosturesResponse.Builder clearUnreachable()

Unreachable resources.

repeated string unreachable = 3;

Returns
Type Description
ListPosturesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPosturesResponse getDefaultInstanceForType()
Returns
Type Description
ListPosturesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getPostures(int index)

public Posture getPostures(int index)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameter
Name Description
index int
Returns
Type Description
Posture

getPosturesBuilder(int index)

public Posture.Builder getPosturesBuilder(int index)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameter
Name Description
index int
Returns
Type Description
Posture.Builder

getPosturesBuilderList()

public List<Posture.Builder> getPosturesBuilderList()

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Returns
Type Description
List<Builder>

getPosturesCount()

public int getPosturesCount()

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Returns
Type Description
int

getPosturesList()

public List<Posture> getPosturesList()

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Returns
Type Description
List<Posture>

getPosturesOrBuilder(int index)

public PostureOrBuilder getPosturesOrBuilder(int index)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameter
Name Description
index int
Returns
Type Description
PostureOrBuilder

getPosturesOrBuilderList()

public List<? extends PostureOrBuilder> getPosturesOrBuilderList()

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Returns
Type Description
List<? extends com.google.cloud.securityposture.v1.PostureOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Unreachable resources.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable resources.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListPosturesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePostures(int index)

public ListPosturesResponse.Builder removePostures(int index)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameter
Name Description
index int
Returns
Type Description
ListPosturesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListPosturesResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListPosturesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPosturesResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListPosturesResponse.Builder

This builder for chaining.

setPostures(int index, Posture value)

public ListPosturesResponse.Builder setPostures(int index, Posture value)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameters
Name Description
index int
value Posture
Returns
Type Description
ListPosturesResponse.Builder

setPostures(int index, Posture.Builder builderForValue)

public ListPosturesResponse.Builder setPostures(int index, Posture.Builder builderForValue)

The list of Posture.

repeated .google.cloud.securityposture.v1.Posture postures = 1;

Parameters
Name Description
index int
builderForValue Posture.Builder
Returns
Type Description
ListPosturesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListPosturesResponse.Builder setUnreachable(int index, String value)

Unreachable resources.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListPosturesResponse.Builder

This builder for chaining.