Class DiscoveredService.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveredService build()
Returns
TypeDescription
DiscoveredService

buildPartial()

public DiscoveredService buildPartial()
Returns
TypeDescription
DiscoveredService

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DiscoveredService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DiscoveredService.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveredService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DiscoveredService.Builder

clone()

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

getDefaultInstanceForType()

public DiscoveredService getDefaultInstanceForType()
Returns
TypeDescription
DiscoveredService

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the serviceReference field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiscoveredService other)

public DiscoveredService.Builder mergeFrom(DiscoveredService other)
Parameter
NameDescription
otherDiscoveredService
Returns
TypeDescription
DiscoveredService.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DiscoveredService.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueServiceProperties
Returns
TypeDescription
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
NameDescription
valueServiceReference
Returns
TypeDescription
DiscoveredService.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveredService.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueServiceProperties
Returns
TypeDescription
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
NameDescription
builderForValueServiceProperties.Builder
Returns
TypeDescription
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
NameDescription
valueServiceReference
Returns
TypeDescription
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
NameDescription
builderForValueServiceReference.Builder
Returns
TypeDescription
DiscoveredService.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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