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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DiscoveredService.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DiscoveredService build()
buildPartial()
public DiscoveredService buildPartial()
clear()
public DiscoveredService.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public DiscoveredService.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public DiscoveredService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
clone()
public DiscoveredService.Builder clone()
Overrides
getDefaultInstanceForType()
public DiscoveredService getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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];
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];
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];
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DiscoveredService other)
public DiscoveredService.Builder mergeFrom(DiscoveredService other)
public DiscoveredService.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DiscoveredService.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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];
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DiscoveredService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public DiscoveredService.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DiscoveredService.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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];
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final DiscoveredService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides