Class CertificateMapEntry.Builder (0.15.0)

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
Type Description
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
Name Description
values Iterable<String>

The certificates to add.

Returns
Type Description
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
Name Description
value String

The certificates to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the certificates to add.

Returns
Type Description
CertificateMapEntry.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CertificateMapEntry build()
Returns
Type Description
CertificateMapEntry

buildPartial()

public CertificateMapEntry buildPartial()
Returns
Type Description
CertificateMapEntry

clear()

public CertificateMapEntry.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
CertificateMapEntry.Builder

clearDescription()

public CertificateMapEntry.Builder clearDescription()

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

string description = 9;

Returns
Type Description
CertificateMapEntry.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CertificateMapEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
CertificateMapEntry.Builder

This builder for chaining.

clearLabels()

public CertificateMapEntry.Builder clearLabels()
Returns
Type Description
CertificateMapEntry.Builder

clearMatch()

public CertificateMapEntry.Builder clearMatch()
Returns
Type Description
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
Type Description
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
Type Description
CertificateMapEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateMapEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
CertificateMapEntry.Builder

clone()

public CertificateMapEntry.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

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

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CertificateMapEntry getDefaultInstanceForType()
Returns
Type Description
CertificateMapEntry

getDescription()

public String getDescription()

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

string description = 9;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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

string description = 9;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

The bytes for hostname.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Set of labels associated with a Certificate Map Entry.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMatchCase()

public CertificateMapEntry.MatchCase getMatchCase()
Returns
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for matcher.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

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

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
CertificateMapEntry.Builder

mergeFrom(CertificateMapEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateMapEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The certificates to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
CertificateMapEntry.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateMapEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The hostname to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for hostname to set.

Returns
Type Description
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
Name Description
value CertificateMapEntry.Matcher

The matcher to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value ServingState

The state to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
CertificateMapEntry.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateMapEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
CertificateMapEntry.Builder