Class DiscoveredService.Builder (0.9.0)

public static final class DiscoveredService.Builder extends GeneratedMessageV3.Builder<DiscoveredService.Builder> implements DiscoveredServiceOrBuilder

DiscoveredService is a network/api interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.

Protobuf type google.cloud.apphub.v1.DiscoveredService

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveredService build()
Returns
Type Description
DiscoveredService

buildPartial()

public DiscoveredService buildPartial()
Returns
Type Description
DiscoveredService

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DiscoveredService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiscoveredService.Builder
Overrides

clearName()

public DiscoveredService.Builder clearName()

Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}""

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
DiscoveredService.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveredService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiscoveredService.Builder
Overrides

clearServiceProperties()

public DiscoveredService.Builder clearServiceProperties()

Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiscoveredService.Builder

clearServiceReference()

public DiscoveredService.Builder clearServiceReference()

Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiscoveredService.Builder

clone()

public DiscoveredService.Builder clone()
Returns
Type Description
DiscoveredService.Builder
Overrides

getDefaultInstanceForType()

public DiscoveredService getDefaultInstanceForType()
Returns
Type Description
DiscoveredService

getDescriptorForType()

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

getName()

public String getName()

Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}""

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}""

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getServiceProperties()

public ServiceProperties getServiceProperties()

Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceProperties

The serviceProperties.

getServicePropertiesBuilder()

public ServiceProperties.Builder getServicePropertiesBuilder()

Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceProperties.Builder

getServicePropertiesOrBuilder()

public ServicePropertiesOrBuilder getServicePropertiesOrBuilder()

Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServicePropertiesOrBuilder

getServiceReference()

public ServiceReference getServiceReference()

Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceReference

The serviceReference.

getServiceReferenceBuilder()

public ServiceReference.Builder getServiceReferenceBuilder()

Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceReference.Builder

getServiceReferenceOrBuilder()

public ServiceReferenceOrBuilder getServiceReferenceOrBuilder()

Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceReferenceOrBuilder

hasServiceProperties()

public boolean hasServiceProperties()

Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the serviceProperties field is set.

hasServiceReference()

public boolean hasServiceReference()

Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the serviceReference field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiscoveredService other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceProperties(ServiceProperties value)

public DiscoveredService.Builder mergeServiceProperties(ServiceProperties value)

Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ServiceProperties
Returns
Type Description
DiscoveredService.Builder

mergeServiceReference(ServiceReference value)

public DiscoveredService.Builder mergeServiceReference(ServiceReference value)

Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ServiceReference
Returns
Type Description
DiscoveredService.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveredService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveredService.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DiscoveredService.Builder setName(String value)

Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}""

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DiscoveredService.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DiscoveredService.Builder setNameBytes(ByteString value)

Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}""

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DiscoveredService.Builder

This builder for chaining.

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

public DiscoveredService.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiscoveredService.Builder
Overrides

setServiceProperties(ServiceProperties value)

public DiscoveredService.Builder setServiceProperties(ServiceProperties value)

Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ServiceProperties
Returns
Type Description
DiscoveredService.Builder

setServiceProperties(ServiceProperties.Builder builderForValue)

public DiscoveredService.Builder setServiceProperties(ServiceProperties.Builder builderForValue)

Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setServiceReference(ServiceReference value)

public DiscoveredService.Builder setServiceReference(ServiceReference value)

Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ServiceReference
Returns
Type Description
DiscoveredService.Builder

setServiceReference(ServiceReference.Builder builderForValue)

public DiscoveredService.Builder setServiceReference(ServiceReference.Builder builderForValue)

Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.

.google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ServiceReference.Builder
Returns
Type Description
DiscoveredService.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveredService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveredService.Builder
Overrides