Class ListPostureRevisionsResponse.Builder (0.2.0)

public static final class ListPostureRevisionsResponse.Builder extends GeneratedMessageV3.Builder<ListPostureRevisionsResponse.Builder> implements ListPostureRevisionsResponseOrBuilder

Message for response to listing PostureRevisions.

Protobuf type google.cloud.securityposture.v1.ListPostureRevisionsResponse

Static Methods

getDescriptor()

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

Methods

addAllRevisions(Iterable<? extends Posture> values)

public ListPostureRevisionsResponse.Builder addAllRevisions(Iterable<? extends Posture> values)

The list of Posture revisions.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securityposture.v1.Posture>
Returns
TypeDescription
ListPostureRevisionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRevisions(Posture value)

public ListPostureRevisionsResponse.Builder addRevisions(Posture value)

The list of Posture revisions.

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

Parameter
NameDescription
valuePosture
Returns
TypeDescription
ListPostureRevisionsResponse.Builder

addRevisions(Posture.Builder builderForValue)

public ListPostureRevisionsResponse.Builder addRevisions(Posture.Builder builderForValue)

The list of Posture revisions.

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

Parameter
NameDescription
builderForValuePosture.Builder
Returns
TypeDescription
ListPostureRevisionsResponse.Builder

addRevisions(int index, Posture value)

public ListPostureRevisionsResponse.Builder addRevisions(int index, Posture value)

The list of Posture revisions.

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

Parameters
NameDescription
indexint
valuePosture
Returns
TypeDescription
ListPostureRevisionsResponse.Builder

addRevisions(int index, Posture.Builder builderForValue)

public ListPostureRevisionsResponse.Builder addRevisions(int index, Posture.Builder builderForValue)

The list of Posture revisions.

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

Parameters
NameDescription
indexint
builderForValuePosture.Builder
Returns
TypeDescription
ListPostureRevisionsResponse.Builder

addRevisionsBuilder()

public Posture.Builder addRevisionsBuilder()

The list of Posture revisions.

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

Returns
TypeDescription
Posture.Builder

addRevisionsBuilder(int index)

public Posture.Builder addRevisionsBuilder(int index)

The list of Posture revisions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Posture.Builder

build()

public ListPostureRevisionsResponse build()
Returns
TypeDescription
ListPostureRevisionsResponse

buildPartial()

public ListPostureRevisionsResponse buildPartial()
Returns
TypeDescription
ListPostureRevisionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPostureRevisionsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
ListPostureRevisionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRevisions()

public ListPostureRevisionsResponse.Builder clearRevisions()

The list of Posture revisions.

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

Returns
TypeDescription
ListPostureRevisionsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListPostureRevisionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPostureRevisionsResponse

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.

getRevisions(int index)

public Posture getRevisions(int index)

The list of Posture revisions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Posture

getRevisionsBuilder(int index)

public Posture.Builder getRevisionsBuilder(int index)

The list of Posture revisions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Posture.Builder

getRevisionsBuilderList()

public List<Posture.Builder> getRevisionsBuilderList()

The list of Posture revisions.

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

Returns
TypeDescription
List<Builder>

getRevisionsCount()

public int getRevisionsCount()

The list of Posture revisions.

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

Returns
TypeDescription
int

getRevisionsList()

public List<Posture> getRevisionsList()

The list of Posture revisions.

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

Returns
TypeDescription
List<Posture>

getRevisionsOrBuilder(int index)

public PostureOrBuilder getRevisionsOrBuilder(int index)

The list of Posture revisions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PostureOrBuilder

getRevisionsOrBuilderList()

public List<? extends PostureOrBuilder> getRevisionsOrBuilderList()

The list of Posture revisions.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPostureRevisionsResponse other)

public ListPostureRevisionsResponse.Builder mergeFrom(ListPostureRevisionsResponse other)
Parameter
NameDescription
otherListPostureRevisionsResponse
Returns
TypeDescription
ListPostureRevisionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRevisions(int index)

public ListPostureRevisionsResponse.Builder removeRevisions(int index)

The list of Posture revisions.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListPostureRevisionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListPostureRevisionsResponse.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
ListPostureRevisionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPostureRevisionsResponse.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
ListPostureRevisionsResponse.Builder

This builder for chaining.

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

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

setRevisions(int index, Posture value)

public ListPostureRevisionsResponse.Builder setRevisions(int index, Posture value)

The list of Posture revisions.

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

Parameters
NameDescription
indexint
valuePosture
Returns
TypeDescription
ListPostureRevisionsResponse.Builder

setRevisions(int index, Posture.Builder builderForValue)

public ListPostureRevisionsResponse.Builder setRevisions(int index, Posture.Builder builderForValue)

The list of Posture revisions.

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

Parameters
NameDescription
indexint
builderForValuePosture.Builder
Returns
TypeDescription
ListPostureRevisionsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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