Class ListPostureTemplatesResponse.Builder (0.2.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.securityposture.v1.PostureTemplate>
Returns
TypeDescription
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
NameDescription
valuePostureTemplate
Returns
TypeDescription
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
NameDescription
builderForValuePostureTemplate.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePostureTemplate
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePostureTemplate.Builder
Returns
TypeDescription
ListPostureTemplatesResponse.Builder

addPostureTemplatesBuilder()

public PostureTemplate.Builder addPostureTemplatesBuilder()

The list of PostureTemplate.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PostureTemplate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPostureTemplatesResponse build()
Returns
TypeDescription
ListPostureTemplatesResponse

buildPartial()

public ListPostureTemplatesResponse buildPartial()
Returns
TypeDescription
ListPostureTemplatesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostureTemplates()

public ListPostureTemplatesResponse.Builder clearPostureTemplates()

The list of PostureTemplate.

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

Returns
TypeDescription
ListPostureTemplatesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListPostureTemplatesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPostureTemplatesResponse

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.

getPostureTemplates(int index)

public PostureTemplate getPostureTemplates(int index)

The list of PostureTemplate.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PostureTemplate

getPostureTemplatesBuilder(int index)

public PostureTemplate.Builder getPostureTemplatesBuilder(int index)

The list of PostureTemplate.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PostureTemplate.Builder

getPostureTemplatesBuilderList()

public List<PostureTemplate.Builder> getPostureTemplatesBuilderList()

The list of PostureTemplate.

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

Returns
TypeDescription
List<Builder>

getPostureTemplatesCount()

public int getPostureTemplatesCount()

The list of PostureTemplate.

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

Returns
TypeDescription
int

getPostureTemplatesList()

public List<PostureTemplate> getPostureTemplatesList()

The list of PostureTemplate.

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

Returns
TypeDescription
List<PostureTemplate>

getPostureTemplatesOrBuilder(int index)

public PostureTemplateOrBuilder getPostureTemplatesOrBuilder(int index)

The list of PostureTemplate.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PostureTemplateOrBuilder

getPostureTemplatesOrBuilderList()

public List<? extends PostureTemplateOrBuilder> getPostureTemplatesOrBuilderList()

The list of PostureTemplate.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPostureTemplatesResponse other)

public ListPostureTemplatesResponse.Builder mergeFrom(ListPostureTemplatesResponse other)
Parameter
NameDescription
otherListPostureTemplatesResponse
Returns
TypeDescription
ListPostureTemplatesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePostureTemplate
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePostureTemplate.Builder
Returns
TypeDescription
ListPostureTemplatesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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