Class ListPostureTemplatesResponse.Builder (0.14.0)

public static final class ListPostureTemplatesResponse.Builder extends GeneratedMessageV3.Builder<ListPostureTemplatesResponse.Builder> implements ListPostureTemplatesResponseOrBuilder

Message for response to listing PostureTemplates.

Protobuf type google.cloud.securityposture.v1.ListPostureTemplatesResponse

Static Methods

getDescriptor()

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

Methods

addAllPostureTemplates(Iterable<? extends PostureTemplate> values)

public ListPostureTemplatesResponse.Builder addAllPostureTemplates(Iterable<? extends PostureTemplate> values)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

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

addPostureTemplates(PostureTemplate value)

public ListPostureTemplatesResponse.Builder addPostureTemplates(PostureTemplate value)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameter
Name Description
value PostureTemplate
Returns
Type Description
ListPostureTemplatesResponse.Builder

addPostureTemplates(PostureTemplate.Builder builderForValue)

public ListPostureTemplatesResponse.Builder addPostureTemplates(PostureTemplate.Builder builderForValue)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameter
Name Description
builderForValue PostureTemplate.Builder
Returns
Type Description
ListPostureTemplatesResponse.Builder

addPostureTemplates(int index, PostureTemplate value)

public ListPostureTemplatesResponse.Builder addPostureTemplates(int index, PostureTemplate value)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameters
Name Description
index int
value PostureTemplate
Returns
Type Description
ListPostureTemplatesResponse.Builder

addPostureTemplates(int index, PostureTemplate.Builder builderForValue)

public ListPostureTemplatesResponse.Builder addPostureTemplates(int index, PostureTemplate.Builder builderForValue)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameters
Name Description
index int
builderForValue PostureTemplate.Builder
Returns
Type Description
ListPostureTemplatesResponse.Builder

addPostureTemplatesBuilder()

public PostureTemplate.Builder addPostureTemplatesBuilder()

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Returns
Type Description
PostureTemplate.Builder

addPostureTemplatesBuilder(int index)

public PostureTemplate.Builder addPostureTemplatesBuilder(int index)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
PostureTemplate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPostureTemplatesResponse build()
Returns
Type Description
ListPostureTemplatesResponse

buildPartial()

public ListPostureTemplatesResponse buildPartial()
Returns
Type Description
ListPostureTemplatesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPostureTemplatesResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListPostureTemplatesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostureTemplates()

public ListPostureTemplatesResponse.Builder clearPostureTemplates()

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Returns
Type Description
ListPostureTemplatesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListPostureTemplatesResponse getDefaultInstanceForType()
Returns
Type Description
ListPostureTemplatesResponse

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.

getPostureTemplates(int index)

public PostureTemplate getPostureTemplates(int index)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
PostureTemplate

getPostureTemplatesBuilder(int index)

public PostureTemplate.Builder getPostureTemplatesBuilder(int index)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
PostureTemplate.Builder

getPostureTemplatesBuilderList()

public List<PostureTemplate.Builder> getPostureTemplatesBuilderList()

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Returns
Type Description
List<Builder>

getPostureTemplatesCount()

public int getPostureTemplatesCount()

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Returns
Type Description
int

getPostureTemplatesList()

public List<PostureTemplate> getPostureTemplatesList()

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Returns
Type Description
List<PostureTemplate>

getPostureTemplatesOrBuilder(int index)

public PostureTemplateOrBuilder getPostureTemplatesOrBuilder(int index)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
PostureTemplateOrBuilder

getPostureTemplatesOrBuilderList()

public List<? extends PostureTemplateOrBuilder> getPostureTemplatesOrBuilderList()

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListPostureTemplatesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePostureTemplates(int index)

public ListPostureTemplatesResponse.Builder removePostureTemplates(int index)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
ListPostureTemplatesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setPostureTemplates(int index, PostureTemplate value)

public ListPostureTemplatesResponse.Builder setPostureTemplates(int index, PostureTemplate value)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameters
Name Description
index int
value PostureTemplate
Returns
Type Description
ListPostureTemplatesResponse.Builder

setPostureTemplates(int index, PostureTemplate.Builder builderForValue)

public ListPostureTemplatesResponse.Builder setPostureTemplates(int index, PostureTemplate.Builder builderForValue)

The list of PostureTemplate.

repeated .google.cloud.securityposture.v1.PostureTemplate posture_templates = 1;

Parameters
Name Description
index int
builderForValue PostureTemplate.Builder
Returns
Type Description
ListPostureTemplatesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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