Class SubordinateConfig.SubordinateConfigChain.Builder (2.15.0)

public static final class SubordinateConfig.SubordinateConfigChain.Builder extends GeneratedMessageV3.Builder<SubordinateConfig.SubordinateConfigChain.Builder> implements SubordinateConfig.SubordinateConfigChainOrBuilder

This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons.

Protobuf type google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain

Static Methods

getDescriptor()

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

Methods

addAllPemCertificates(Iterable<String> values)

public SubordinateConfig.SubordinateConfigChain.Builder addAllPemCertificates(Iterable<String> values)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The pemCertificates to add.

Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.

addPemCertificates(String value)

public SubordinateConfig.SubordinateConfigChain.Builder addPemCertificates(String value)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The pemCertificates to add.

Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.

addPemCertificatesBytes(ByteString value)

public SubordinateConfig.SubordinateConfigChain.Builder addPemCertificatesBytes(ByteString value)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the pemCertificates to add.

Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubordinateConfig.SubordinateConfigChain build()
Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain

buildPartial()

public SubordinateConfig.SubordinateConfigChain buildPartial()
Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain

clear()

public SubordinateConfig.SubordinateConfigChain.Builder clear()
Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPemCertificates()

public SubordinateConfig.SubordinateConfigChain.Builder clearPemCertificates()

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.

clone()

public SubordinateConfig.SubordinateConfigChain.Builder clone()
Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain.Builder
Overrides

getDefaultInstanceForType()

public SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType()
Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPemCertificates(int index)

public String getPemCertificates(int index)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The pemCertificates at the given index.

getPemCertificatesBytes(int index)

public ByteString getPemCertificatesBytes(int index)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the pemCertificates at the given index.

getPemCertificatesCount()

public int getPemCertificatesCount()

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of pemCertificates.

getPemCertificatesList()

public ProtocolStringList getPemCertificatesList()

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the pemCertificates.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SubordinateConfig.SubordinateConfigChain other)

public SubordinateConfig.SubordinateConfigChain.Builder mergeFrom(SubordinateConfig.SubordinateConfigChain other)
Parameter
NameDescription
otherSubordinateConfig.SubordinateConfigChain
Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPemCertificates(int index, String value)

public SubordinateConfig.SubordinateConfigChain.Builder setPemCertificates(int index, String value)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The pemCertificates to set.

Returns
TypeDescription
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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