Class Mesh.Builder (0.15.0)

public static final class Mesh.Builder extends GeneratedMessageV3.Builder<Mesh.Builder> implements MeshOrBuilder

Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.

Protobuf type google.events.cloud.networkservices.v1.Mesh

Implements

MeshOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Mesh build()
Returns
TypeDescription
Mesh

buildPartial()

public Mesh buildPartial()
Returns
TypeDescription
Mesh

clear()

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

clearCreateTime()

public Mesh.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Mesh.Builder

clearDescription()

public Mesh.Builder clearDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5;

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInterceptionPort()

public Mesh.Builder clearInterceptionPort()

Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.

int32 interception_port = 8;

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

clearLabels()

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

clearName()

public Mesh.Builder clearName()

Required. Name of the Mesh resource. It matches pattern projects/*/locations/global/meshes/<mesh_name>.

string name = 1;

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

Output only. Server-defined URL of this resource

string self_link = 9;

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

clearUpdateTime()

public Mesh.Builder clearUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Mesh.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Set of label tags associated with the Mesh resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Mesh getDefaultInstanceForType()
Returns
TypeDescription
Mesh

getDescription()

public String getDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInterceptionPort()

public int getInterceptionPort()

Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.

int32 interception_port = 8;

Returns
TypeDescription
int

The interceptionPort.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Set of label tags associated with the Mesh resource.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Set of label tags associated with the Mesh resource.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Set of label tags associated with the Mesh resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Set of label tags associated with the Mesh resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. Name of the Mesh resource. It matches pattern projects/*/locations/global/meshes/<mesh_name>.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the Mesh resource. It matches pattern projects/*/locations/global/meshes/<mesh_name>.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

public String getSelfLink()

Output only. Server-defined URL of this resource

string self_link = 9;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

Output only. Server-defined URL of this resource

string self_link = 9;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the resource was updated.

.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 Mesh.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Mesh.Builder

mergeFrom(Mesh other)

public Mesh.Builder mergeFrom(Mesh other)
Parameter
NameDescription
otherMesh
Returns
TypeDescription
Mesh.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Mesh.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Mesh.Builder

putAllLabels(Map<String,String> values)

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

Optional. Set of label tags associated with the Mesh resource.

map<string, string> labels = 4;

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

putLabels(String key, String value)

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

Optional. Set of label tags associated with the Mesh resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Mesh.Builder

removeLabels(String key)

public Mesh.Builder removeLabels(String key)

Optional. Set of label tags associated with the Mesh resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Mesh.Builder

setCreateTime(Timestamp value)

public Mesh.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Mesh.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Mesh.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Mesh.Builder

setDescription(String value)

public Mesh.Builder setDescription(String value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Mesh.Builder setDescriptionBytes(ByteString value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInterceptionPort(int value)

public Mesh.Builder setInterceptionPort(int value)

Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.

int32 interception_port = 8;

Parameter
NameDescription
valueint

The interceptionPort to set.

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

setName(String value)

public Mesh.Builder setName(String value)

Required. Name of the Mesh resource. It matches pattern projects/*/locations/global/meshes/<mesh_name>.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Mesh.Builder setNameBytes(ByteString value)

Required. Name of the Mesh resource. It matches pattern projects/*/locations/global/meshes/<mesh_name>.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

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

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

Output only. Server-defined URL of this resource

string self_link = 9;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public Mesh.Builder setSelfLinkBytes(ByteString value)

Output only. Server-defined URL of this resource

string self_link = 9;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
Mesh.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Mesh.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Mesh.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Mesh.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Mesh.Builder