Class ListCertificateTemplatesResponse.Builder (2.17.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.security.privateca.v1.CertificateTemplate>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueCertificateTemplate
Returns
TypeDescription
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
NameDescription
builderForValueCertificateTemplate.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCertificateTemplate
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCertificateTemplate.Builder
Returns
TypeDescription
ListCertificateTemplatesResponse.Builder

addCertificateTemplatesBuilder()

public CertificateTemplate.Builder addCertificateTemplatesBuilder()

The list of CertificateTemplates.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListCertificateTemplatesResponse.Builder

This builder for chaining.

build()

public ListCertificateTemplatesResponse build()
Returns
TypeDescription
ListCertificateTemplatesResponse

buildPartial()

public ListCertificateTemplatesResponse buildPartial()
Returns
TypeDescription
ListCertificateTemplatesResponse

clear()

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

clearCertificateTemplates()

public ListCertificateTemplatesResponse.Builder clearCertificateTemplates()

The list of CertificateTemplates.

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

Returns
TypeDescription
ListCertificateTemplatesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListCertificateTemplatesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListCertificateTemplatesResponse.Builder

This builder for chaining.

clone()

public ListCertificateTemplatesResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CertificateTemplate.Builder

getCertificateTemplatesBuilderList()

public List<CertificateTemplate.Builder> getCertificateTemplatesBuilderList()

The list of CertificateTemplates.

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

Returns
TypeDescription
List<Builder>

getCertificateTemplatesCount()

public int getCertificateTemplatesCount()

The list of CertificateTemplates.

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

Returns
TypeDescription
int

getCertificateTemplatesList()

public List<CertificateTemplate> getCertificateTemplatesList()

The list of CertificateTemplates.

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

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

getCertificateTemplatesOrBuilderList()

public List<? extends CertificateTemplateOrBuilder> getCertificateTemplatesOrBuilderList()

The list of CertificateTemplates.

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

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

getDefaultInstanceForType()

public ListCertificateTemplatesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCertificateTemplatesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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)

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

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

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

repeated string unreachable = 3;

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

public ListCertificateTemplatesResponse.Builder mergeFrom(ListCertificateTemplatesResponse other)
Parameter
NameDescription
otherListCertificateTemplatesResponse
Returns
TypeDescription
ListCertificateTemplatesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListCertificateTemplatesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListCertificateTemplatesResponse.Builder

This builder for chaining.