public static final class DiscoveredService.Builder extends GeneratedMessage.Builder<DiscoveredService.Builder> implements DiscoveredServiceOrBuilderDiscoveredService is a network or 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DiscoveredService.BuilderImplements
DiscoveredServiceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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 |
|
getDefaultInstanceForType()
public DiscoveredService getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DiscoveredService |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DiscoveredService.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DiscoveredService.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DiscoveredService.Builder |
This builder for chaining. |
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 |
|