Class ServiceProperties.Builder (0.67.0)

public static final class ServiceProperties.Builder extends GeneratedMessage.Builder<ServiceProperties.Builder> implements ServicePropertiesOrBuilder

Properties of an underlying cloud resource that can comprise a Service.

Protobuf type google.cloud.apphub.v1.ServiceProperties

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ServiceProperties build()
Returns
Type Description
ServiceProperties

buildPartial()

public ServiceProperties buildPartial()
Returns
Type Description
ServiceProperties

clear()

public ServiceProperties.Builder clear()
Returns
Type Description
ServiceProperties.Builder
Overrides

clearExtendedMetadata()

public ServiceProperties.Builder clearExtendedMetadata()
Returns
Type Description
ServiceProperties.Builder

clearFunctionalType()

public ServiceProperties.Builder clearFunctionalType()

Output only. The type of the service.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceProperties.Builder

clearGcpProject()

public ServiceProperties.Builder clearGcpProject()

Output only. The service project identifier that the underlying cloud resource resides in.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

clearIdentity()

public ServiceProperties.Builder clearIdentity()

Output only. The identity associated with the service.

.google.cloud.apphub.v1.Identity identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceProperties.Builder

clearLocation()

public ServiceProperties.Builder clearLocation()

Output only. The location that the underlying resource resides in, for example, us-west1.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

clearRegistrationType()

public ServiceProperties.Builder clearRegistrationType()

Output only. The registration type of the service.

.google.cloud.apphub.v1.RegistrationType registration_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceProperties.Builder

clearZone()

public ServiceProperties.Builder clearZone()

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

containsExtendedMetadata(String key)

public boolean containsExtendedMetadata(String key)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public ServiceProperties getDefaultInstanceForType()
Returns
Type Description
ServiceProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExtendedMetadata() (deprecated)

public Map<String,ExtendedMetadata> getExtendedMetadata()
Returns
Type Description
Map<String,ExtendedMetadata>

getExtendedMetadataCount()

public int getExtendedMetadataCount()

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getExtendedMetadataMap()

public Map<String,ExtendedMetadata> getExtendedMetadataMap()

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,ExtendedMetadata>

getExtendedMetadataOrDefault(String key, ExtendedMetadata defaultValue)

public ExtendedMetadata getExtendedMetadataOrDefault(String key, ExtendedMetadata defaultValue)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue ExtendedMetadata
Returns
Type Description
ExtendedMetadata

getExtendedMetadataOrThrow(String key)

public ExtendedMetadata getExtendedMetadataOrThrow(String key)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ExtendedMetadata

getFunctionalType()

public FunctionalType getFunctionalType()

Output only. The type of the service.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FunctionalType

The functionalType.

getFunctionalTypeBuilder()

public FunctionalType.Builder getFunctionalTypeBuilder()

Output only. The type of the service.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FunctionalType.Builder

getFunctionalTypeOrBuilder()

public FunctionalTypeOrBuilder getFunctionalTypeOrBuilder()

Output only. The type of the service.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FunctionalTypeOrBuilder

getGcpProject()

public String getGcpProject()

Output only. The service project identifier that the underlying cloud resource resides in.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The gcpProject.

getGcpProjectBytes()

public ByteString getGcpProjectBytes()

Output only. The service project identifier that the underlying cloud resource resides in.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for gcpProject.

getIdentity()

public Identity getIdentity()

Output only. The identity associated with the service.

.google.cloud.apphub.v1.Identity identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Identity

The identity.

getIdentityBuilder()

public Identity.Builder getIdentityBuilder()

Output only. The identity associated with the service.

.google.cloud.apphub.v1.Identity identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Identity.Builder

getIdentityOrBuilder()

public IdentityOrBuilder getIdentityOrBuilder()

Output only. The identity associated with the service.

.google.cloud.apphub.v1.Identity identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IdentityOrBuilder

getLocation()

public String getLocation()

Output only. The location that the underlying resource resides in, for example, us-west1.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The location that the underlying resource resides in, for example, us-west1.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for location.

getMutableExtendedMetadata() (deprecated)

public Map<String,ExtendedMetadata> getMutableExtendedMetadata()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ExtendedMetadata>

getRegistrationType()

public RegistrationType getRegistrationType()

Output only. The registration type of the service.

.google.cloud.apphub.v1.RegistrationType registration_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RegistrationType

The registrationType.

getRegistrationTypeBuilder()

public RegistrationType.Builder getRegistrationTypeBuilder()

Output only. The registration type of the service.

.google.cloud.apphub.v1.RegistrationType registration_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RegistrationType.Builder

getRegistrationTypeOrBuilder()

public RegistrationTypeOrBuilder getRegistrationTypeOrBuilder()

Output only. The registration type of the service.

.google.cloud.apphub.v1.RegistrationType registration_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RegistrationTypeOrBuilder

getZone()

public String getZone()

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for zone.

hasFunctionalType()

public boolean hasFunctionalType()

Output only. The type of the service.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the functionalType field is set.

hasIdentity()

public boolean hasIdentity()

Output only. The identity associated with the service.

.google.cloud.apphub.v1.Identity identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the identity field is set.

hasRegistrationType()

public boolean hasRegistrationType()

Output only. The registration type of the service.

.google.cloud.apphub.v1.RegistrationType registration_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the registrationType field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFunctionalType(FunctionalType value)

public ServiceProperties.Builder mergeFunctionalType(FunctionalType value)

Output only. The type of the service.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FunctionalType
Returns
Type Description
ServiceProperties.Builder

mergeIdentity(Identity value)

public ServiceProperties.Builder mergeIdentity(Identity value)

Output only. The identity associated with the service.

.google.cloud.apphub.v1.Identity identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Identity
Returns
Type Description
ServiceProperties.Builder

mergeRegistrationType(RegistrationType value)

public ServiceProperties.Builder mergeRegistrationType(RegistrationType value)

Output only. The registration type of the service.

.google.cloud.apphub.v1.RegistrationType registration_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value RegistrationType
Returns
Type Description
ServiceProperties.Builder

putAllExtendedMetadata(Map<String,ExtendedMetadata> values)

public ServiceProperties.Builder putAllExtendedMetadata(Map<String,ExtendedMetadata> values)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,ExtendedMetadata>
Returns
Type Description
ServiceProperties.Builder

putExtendedMetadata(String key, ExtendedMetadata value)

public ServiceProperties.Builder putExtendedMetadata(String key, ExtendedMetadata value)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value ExtendedMetadata
Returns
Type Description
ServiceProperties.Builder

putExtendedMetadataBuilderIfAbsent(String key)

public ExtendedMetadata.Builder putExtendedMetadataBuilderIfAbsent(String key)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ExtendedMetadata.Builder

removeExtendedMetadata(String key)

public ServiceProperties.Builder removeExtendedMetadata(String key)

Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: apphub.googleapis.com/{metadataType}

map<string, .google.cloud.apphub.v1.ExtendedMetadata> extended_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ServiceProperties.Builder

setFunctionalType(FunctionalType value)

public ServiceProperties.Builder setFunctionalType(FunctionalType value)

Output only. The type of the service.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FunctionalType
Returns
Type Description
ServiceProperties.Builder

setFunctionalType(FunctionalType.Builder builderForValue)

public ServiceProperties.Builder setFunctionalType(FunctionalType.Builder builderForValue)

Output only. The type of the service.

.google.cloud.apphub.v1.FunctionalType functional_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue FunctionalType.Builder
Returns
Type Description
ServiceProperties.Builder

setGcpProject(String value)

public ServiceProperties.Builder setGcpProject(String value)

Output only. The service project identifier that the underlying cloud resource resides in.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The gcpProject to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

setGcpProjectBytes(ByteString value)

public ServiceProperties.Builder setGcpProjectBytes(ByteString value)

Output only. The service project identifier that the underlying cloud resource resides in.

string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for gcpProject to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

setIdentity(Identity value)

public ServiceProperties.Builder setIdentity(Identity value)

Output only. The identity associated with the service.

.google.cloud.apphub.v1.Identity identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Identity
Returns
Type Description
ServiceProperties.Builder

setIdentity(Identity.Builder builderForValue)

public ServiceProperties.Builder setIdentity(Identity.Builder builderForValue)

Output only. The identity associated with the service.

.google.cloud.apphub.v1.Identity identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Identity.Builder
Returns
Type Description
ServiceProperties.Builder

setLocation(String value)

public ServiceProperties.Builder setLocation(String value)

Output only. The location that the underlying resource resides in, for example, us-west1.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public ServiceProperties.Builder setLocationBytes(ByteString value)

Output only. The location that the underlying resource resides in, for example, us-west1.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

setRegistrationType(RegistrationType value)

public ServiceProperties.Builder setRegistrationType(RegistrationType value)

Output only. The registration type of the service.

.google.cloud.apphub.v1.RegistrationType registration_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value RegistrationType
Returns
Type Description
ServiceProperties.Builder

setRegistrationType(RegistrationType.Builder builderForValue)

public ServiceProperties.Builder setRegistrationType(RegistrationType.Builder builderForValue)

Output only. The registration type of the service.

.google.cloud.apphub.v1.RegistrationType registration_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue RegistrationType.Builder
Returns
Type Description
ServiceProperties.Builder

setZone(String value)

public ServiceProperties.Builder setZone(String value)

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public ServiceProperties.Builder setZoneBytes(ByteString value)

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.