Class ListCertificateTemplatesResponse.Builder (2.46.0)

public static final class ListCertificateTemplatesResponse.Builder extends GeneratedMessageV3.Builder<ListCertificateTemplatesResponse.Builder> implements ListCertificateTemplatesResponseOrBuilder

Response message for CertificateAuthorityService.ListCertificateTemplates.

Protobuf type google.cloud.security.privateca.v1.ListCertificateTemplatesResponse

Static Methods

getDescriptor()

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

Methods

addAllCertificateTemplates(Iterable<? extends CertificateTemplate> values)

public ListCertificateTemplatesResponse.Builder addAllCertificateTemplates(Iterable<? extends CertificateTemplate> values)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.security.privateca.v1.CertificateTemplate>
Returns
Type Description
ListCertificateTemplatesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

A list of locations (e.g. "us-west1") that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListCertificateTemplatesResponse.Builder

This builder for chaining.

addCertificateTemplates(CertificateTemplate value)

public ListCertificateTemplatesResponse.Builder addCertificateTemplates(CertificateTemplate value)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameter
Name Description
value CertificateTemplate
Returns
Type Description
ListCertificateTemplatesResponse.Builder

addCertificateTemplates(CertificateTemplate.Builder builderForValue)

public ListCertificateTemplatesResponse.Builder addCertificateTemplates(CertificateTemplate.Builder builderForValue)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameter
Name Description
builderForValue CertificateTemplate.Builder
Returns
Type Description
ListCertificateTemplatesResponse.Builder

addCertificateTemplates(int index, CertificateTemplate value)

public ListCertificateTemplatesResponse.Builder addCertificateTemplates(int index, CertificateTemplate value)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameters
Name Description
index int
value CertificateTemplate
Returns
Type Description
ListCertificateTemplatesResponse.Builder

addCertificateTemplates(int index, CertificateTemplate.Builder builderForValue)

public ListCertificateTemplatesResponse.Builder addCertificateTemplates(int index, CertificateTemplate.Builder builderForValue)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameters
Name Description
index int
builderForValue CertificateTemplate.Builder
Returns
Type Description
ListCertificateTemplatesResponse.Builder

addCertificateTemplatesBuilder()

public CertificateTemplate.Builder addCertificateTemplatesBuilder()

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Returns
Type Description
CertificateTemplate.Builder

addCertificateTemplatesBuilder(int index)

public CertificateTemplate.Builder addCertificateTemplatesBuilder(int index)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
CertificateTemplate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListCertificateTemplatesResponse.Builder addUnreachable(String value)

A list of locations (e.g. "us-west1") that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListCertificateTemplatesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListCertificateTemplatesResponse.Builder addUnreachableBytes(ByteString value)

A list of locations (e.g. "us-west1") that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListCertificateTemplatesResponse.Builder

This builder for chaining.

build()

public ListCertificateTemplatesResponse build()
Returns
Type Description
ListCertificateTemplatesResponse

buildPartial()

public ListCertificateTemplatesResponse buildPartial()
Returns
Type Description
ListCertificateTemplatesResponse

clear()

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

clearCertificateTemplates()

public ListCertificateTemplatesResponse.Builder clearCertificateTemplates()

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Returns
Type Description
ListCertificateTemplatesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCertificateTemplatesResponse.Builder clearNextPageToken()

A token to retrieve next page of results. Pass this value in [ListCertificateTemplatesRequest.next_page_token][] to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
ListCertificateTemplatesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListCertificateTemplatesResponse.Builder clearUnreachable()

A list of locations (e.g. "us-west1") that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListCertificateTemplatesResponse.Builder

This builder for chaining.

clone()

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

getCertificateTemplates(int index)

public CertificateTemplate getCertificateTemplates(int index)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
CertificateTemplate

getCertificateTemplatesBuilder(int index)

public CertificateTemplate.Builder getCertificateTemplatesBuilder(int index)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
CertificateTemplate.Builder

getCertificateTemplatesBuilderList()

public List<CertificateTemplate.Builder> getCertificateTemplatesBuilderList()

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Returns
Type Description
List<Builder>

getCertificateTemplatesCount()

public int getCertificateTemplatesCount()

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Returns
Type Description
int

getCertificateTemplatesList()

public List<CertificateTemplate> getCertificateTemplatesList()

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Returns
Type Description
List<CertificateTemplate>

getCertificateTemplatesOrBuilder(int index)

public CertificateTemplateOrBuilder getCertificateTemplatesOrBuilder(int index)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
CertificateTemplateOrBuilder

getCertificateTemplatesOrBuilderList()

public List<? extends CertificateTemplateOrBuilder> getCertificateTemplatesOrBuilderList()

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Returns
Type Description
List<? extends com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>

getDefaultInstanceForType()

public ListCertificateTemplatesResponse getDefaultInstanceForType()
Returns
Type Description
ListCertificateTemplatesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results. Pass this value in [ListCertificateTemplatesRequest.next_page_token][] to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results. Pass this value in [ListCertificateTemplatesRequest.next_page_token][] to retrieve the next page of results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

A list of locations (e.g. "us-west1") that could not be reached.

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)

A list of locations (e.g. "us-west1") that could not be reached.

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()

A list of locations (e.g. "us-west1") that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

A list of locations (e.g. "us-west1") that could not be reached.

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(ListCertificateTemplatesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCertificateTemplates(int index)

public ListCertificateTemplatesResponse.Builder removeCertificateTemplates(int index)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCertificateTemplatesResponse.Builder

setCertificateTemplates(int index, CertificateTemplate value)

public ListCertificateTemplatesResponse.Builder setCertificateTemplates(int index, CertificateTemplate value)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameters
Name Description
index int
value CertificateTemplate
Returns
Type Description
ListCertificateTemplatesResponse.Builder

setCertificateTemplates(int index, CertificateTemplate.Builder builderForValue)

public ListCertificateTemplatesResponse.Builder setCertificateTemplates(int index, CertificateTemplate.Builder builderForValue)

The list of CertificateTemplates.

repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1;

Parameters
Name Description
index int
builderForValue CertificateTemplate.Builder
Returns
Type Description
ListCertificateTemplatesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCertificateTemplatesResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results. Pass this value in [ListCertificateTemplatesRequest.next_page_token][] to retrieve the next page of results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListCertificateTemplatesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCertificateTemplatesResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results. Pass this value in [ListCertificateTemplatesRequest.next_page_token][] to retrieve the next page of results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListCertificateTemplatesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

A list of locations (e.g. "us-west1") that could not be reached.

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
ListCertificateTemplatesResponse.Builder

This builder for chaining.