Class ListPosturesResponse.Builder (0.2.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.securityposture.v1.Posture>
Returns
TypeDescription
ListPosturesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valuePosture
Returns
TypeDescription
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
NameDescription
builderForValuePosture.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePosture
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePosture.Builder
Returns
TypeDescription
ListPosturesResponse.Builder

addPosturesBuilder()

public Posture.Builder addPosturesBuilder()

The list of Posture.

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

Returns
TypeDescription
Posture.Builder

addPosturesBuilder(int index)

public Posture.Builder addPosturesBuilder(int index)

The list of Posture.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Posture.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListPosturesResponse.Builder addUnreachable(String value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListPosturesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListPosturesResponse.Builder addUnreachableBytes(ByteString value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListPosturesResponse.Builder

This builder for chaining.

build()

public ListPosturesResponse build()
Returns
TypeDescription
ListPosturesResponse

buildPartial()

public ListPosturesResponse buildPartial()
Returns
TypeDescription
ListPosturesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListPosturesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListPosturesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostures()

public ListPosturesResponse.Builder clearPostures()

The list of Posture.

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

Returns
TypeDescription
ListPosturesResponse.Builder

clearUnreachable()

public ListPosturesResponse.Builder clearUnreachable()

Unreachable resources.

repeated string unreachable = 3;

Returns
TypeDescription
ListPosturesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPosturesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPosturesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Posture

getPosturesBuilder(int index)

public Posture.Builder getPosturesBuilder(int index)

The list of Posture.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Posture.Builder

getPosturesBuilderList()

public List<Posture.Builder> getPosturesBuilderList()

The list of Posture.

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

Returns
TypeDescription
List<Builder>

getPosturesCount()

public int getPosturesCount()

The list of Posture.

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

Returns
TypeDescription
int

getPosturesList()

public List<Posture> getPosturesList()

The list of Posture.

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

Returns
TypeDescription
List<Posture>

getPosturesOrBuilder(int index)

public PostureOrBuilder getPosturesOrBuilder(int index)

The list of Posture.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PostureOrBuilder

getPosturesOrBuilderList()

public List<? extends PostureOrBuilder> getPosturesOrBuilderList()

The list of Posture.

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

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

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Unreachable resources.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable resources.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPosturesResponse other)

public ListPosturesResponse.Builder mergeFrom(ListPosturesResponse other)
Parameter
NameDescription
otherListPosturesResponse
Returns
TypeDescription
ListPosturesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPosturesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListPosturesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListPosturesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePosture
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePosture.Builder
Returns
TypeDescription
ListPosturesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Unreachable resources.

repeated string unreachable = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListPosturesResponse.Builder

This builder for chaining.