Class CertificateMapEntry.Builder (0.14.1)

public static final class CertificateMapEntry.Builder extends GeneratedMessageV3.Builder<CertificateMapEntry.Builder> implements CertificateMapEntryOrBuilder

Defines a certificate map entry.

Protobuf type google.events.cloud.certificatemanager.v1.CertificateMapEntry

Static Methods

getDescriptor()

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

Methods

addAllCertificates(Iterable<String> values)

public CertificateMapEntry.Builder addAllCertificates(Iterable<String> values)

A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.

repeated string certificates = 7;

Parameter
NameDescription
valuesIterable<String>

The certificates to add.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

addCertificates(String value)

public CertificateMapEntry.Builder addCertificates(String value)

A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.

repeated string certificates = 7;

Parameter
NameDescription
valueString

The certificates to add.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

addCertificatesBytes(ByteString value)

public CertificateMapEntry.Builder addCertificatesBytes(ByteString value)

A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.

repeated string certificates = 7;

Parameter
NameDescription
valueByteString

The bytes of the certificates to add.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CertificateMapEntry build()
Returns
TypeDescription
CertificateMapEntry

buildPartial()

public CertificateMapEntry buildPartial()
Returns
TypeDescription
CertificateMapEntry

clear()

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

clearCertificates()

public CertificateMapEntry.Builder clearCertificates()

A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.

repeated string certificates = 7;

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

clearCreateTime()

public CertificateMapEntry.Builder clearCreateTime()

Output only. The creation timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
CertificateMapEntry.Builder

clearDescription()

public CertificateMapEntry.Builder clearDescription()

One or more paragraphs of text description of a certificate map entry.

string description = 9;

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHostname()

public CertificateMapEntry.Builder clearHostname()

A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.

string hostname = 5;

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

clearLabels()

public CertificateMapEntry.Builder clearLabels()
Returns
TypeDescription
CertificateMapEntry.Builder

clearMatch()

public CertificateMapEntry.Builder clearMatch()
Returns
TypeDescription
CertificateMapEntry.Builder

clearMatcher()

public CertificateMapEntry.Builder clearMatcher()

A predefined matcher for particular cases, other than SNI selection.

.google.events.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10;

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

clearName()

public CertificateMapEntry.Builder clearName()

A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern projects/*/locations/*/certificateMaps/*/certificateMapEntries/*.

string name = 1;

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public CertificateMapEntry.Builder clearState()

Output only. A serving state of this Certificate Map Entry.

.google.events.cloud.certificatemanager.v1.ServingState state = 8;

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

clearUpdateTime()

public CertificateMapEntry.Builder clearUpdateTime()

Output only. The update timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
CertificateMapEntry.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCertificates(int index)

public String getCertificates(int index)

A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.

repeated string certificates = 7;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The certificates at the given index.

getCertificatesBytes(int index)

public ByteString getCertificatesBytes(int index)

A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.

repeated string certificates = 7;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the certificates at the given index.

getCertificatesCount()

public int getCertificatesCount()

A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.

repeated string certificates = 7;

Returns
TypeDescription
int

The count of certificates.

getCertificatesList()

public ProtocolStringList getCertificatesList()

A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.

repeated string certificates = 7;

Returns
TypeDescription
ProtocolStringList

A list containing the certificates.

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public CertificateMapEntry getDefaultInstanceForType()
Returns
TypeDescription
CertificateMapEntry

getDescription()

public String getDescription()

One or more paragraphs of text description of a certificate map entry.

string description = 9;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

One or more paragraphs of text description of a certificate map entry.

string description = 9;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHostname()

public String getHostname()

A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.

string hostname = 5;

Returns
TypeDescription
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.

string hostname = 5;

Returns
TypeDescription
ByteString

The bytes for hostname.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMatchCase()

public CertificateMapEntry.MatchCase getMatchCase()
Returns
TypeDescription
CertificateMapEntry.MatchCase

getMatcher()

public CertificateMapEntry.Matcher getMatcher()

A predefined matcher for particular cases, other than SNI selection.

.google.events.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10;

Returns
TypeDescription
CertificateMapEntry.Matcher

The matcher.

getMatcherValue()

public int getMatcherValue()

A predefined matcher for particular cases, other than SNI selection.

.google.events.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for matcher.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern projects/*/locations/*/certificateMaps/*/certificateMapEntries/*.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern projects/*/locations/*/certificateMaps/*/certificateMapEntries/*.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getState()

public ServingState getState()

Output only. A serving state of this Certificate Map Entry.

.google.events.cloud.certificatemanager.v1.ServingState state = 8;

Returns
TypeDescription
ServingState

The state.

getStateValue()

public int getStateValue()

Output only. A serving state of this Certificate Map Entry.

.google.events.cloud.certificatemanager.v1.ServingState state = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasHostname()

public boolean hasHostname()

A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.

string hostname = 5;

Returns
TypeDescription
boolean

Whether the hostname field is set.

hasMatcher()

public boolean hasMatcher()

A predefined matcher for particular cases, other than SNI selection.

.google.events.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10;

Returns
TypeDescription
boolean

Whether the matcher field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public CertificateMapEntry.Builder mergeCreateTime(Timestamp value)

Output only. The creation timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateMapEntry.Builder

mergeFrom(CertificateMapEntry other)

public CertificateMapEntry.Builder mergeFrom(CertificateMapEntry other)
Parameter
NameDescription
otherCertificateMapEntry
Returns
TypeDescription
CertificateMapEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public CertificateMapEntry.Builder mergeUpdateTime(Timestamp value)

Output only. The update timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateMapEntry.Builder

putAllLabels(Map<String,String> values)

public CertificateMapEntry.Builder putAllLabels(Map<String,String> values)

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
CertificateMapEntry.Builder

putLabels(String key, String value)

public CertificateMapEntry.Builder putLabels(String key, String value)

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
CertificateMapEntry.Builder

removeLabels(String key)

public CertificateMapEntry.Builder removeLabels(String key)

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
CertificateMapEntry.Builder

setCertificates(int index, String value)

public CertificateMapEntry.Builder setCertificates(int index, String value)

A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects/*/locations/*/certificates/*.

repeated string certificates = 7;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The certificates to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public CertificateMapEntry.Builder setCreateTime(Timestamp value)

Output only. The creation timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateMapEntry.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CertificateMapEntry.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CertificateMapEntry.Builder

setDescription(String value)

public CertificateMapEntry.Builder setDescription(String value)

One or more paragraphs of text description of a certificate map entry.

string description = 9;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public CertificateMapEntry.Builder setDescriptionBytes(ByteString value)

One or more paragraphs of text description of a certificate map entry.

string description = 9;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHostname(String value)

public CertificateMapEntry.Builder setHostname(String value)

A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.

string hostname = 5;

Parameter
NameDescription
valueString

The hostname to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public CertificateMapEntry.Builder setHostnameBytes(ByteString value)

A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.

string hostname = 5;

Parameter
NameDescription
valueByteString

The bytes for hostname to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setMatcher(CertificateMapEntry.Matcher value)

public CertificateMapEntry.Builder setMatcher(CertificateMapEntry.Matcher value)

A predefined matcher for particular cases, other than SNI selection.

.google.events.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10;

Parameter
NameDescription
valueCertificateMapEntry.Matcher

The matcher to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setMatcherValue(int value)

public CertificateMapEntry.Builder setMatcherValue(int value)

A predefined matcher for particular cases, other than SNI selection.

.google.events.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10;

Parameter
NameDescription
valueint

The enum numeric value on the wire for matcher to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setName(String value)

public CertificateMapEntry.Builder setName(String value)

A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern projects/*/locations/*/certificateMaps/*/certificateMapEntries/*.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CertificateMapEntry.Builder setNameBytes(ByteString value)

A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern projects/*/locations/*/certificateMaps/*/certificateMapEntries/*.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

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

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

setState(ServingState value)

public CertificateMapEntry.Builder setState(ServingState value)

Output only. A serving state of this Certificate Map Entry.

.google.events.cloud.certificatemanager.v1.ServingState state = 8;

Parameter
NameDescription
valueServingState

The state to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setStateValue(int value)

public CertificateMapEntry.Builder setStateValue(int value)

Output only. A serving state of this Certificate Map Entry.

.google.events.cloud.certificatemanager.v1.ServingState state = 8;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
CertificateMapEntry.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public CertificateMapEntry.Builder setUpdateTime(Timestamp value)

Output only. The update timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CertificateMapEntry.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public CertificateMapEntry.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update timestamp of a Certificate Map Entry.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CertificateMapEntry.Builder