Class DiscoveredService.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DiscoveredService.Builder>
com.google.cloud.apphub.v1.DiscoveredService.Builder
All Implemented Interfaces:
DiscoveredServiceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DiscoveredService

public static final class DiscoveredService.Builder extends com.google.protobuf.GeneratedMessage.Builder<DiscoveredService.Builder> implements DiscoveredServiceOrBuilder
 DiscoveredService 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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DiscoveredService.Builder>
    • clear

      public DiscoveredService.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DiscoveredService.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DiscoveredService.Builder>
    • getDefaultInstanceForType

      public DiscoveredService getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DiscoveredService build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DiscoveredService buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DiscoveredService.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveredService.Builder>
    • mergeFrom

      public DiscoveredService.Builder mergeFrom(DiscoveredService other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DiscoveredService.Builder>
    • mergeFrom

      public DiscoveredService.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveredService.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface DiscoveredServiceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface DiscoveredServiceOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public DiscoveredService.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasServiceReference in interface DiscoveredServiceOrBuilder
      Returns:
      Whether the serviceReference field is set.
    • 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];
      Specified by:
      getServiceReference in interface DiscoveredServiceOrBuilder
      Returns:
      The serviceReference.
    • setServiceReference

      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

      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];
    • mergeServiceReference

      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];
    • 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];
    • 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];
      Specified by:
      getServiceReferenceOrBuilder in interface DiscoveredServiceOrBuilder
    • 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];
      Specified by:
      hasServiceProperties in interface DiscoveredServiceOrBuilder
      Returns:
      Whether the serviceProperties field is set.
    • 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];
      Specified by:
      getServiceProperties in interface DiscoveredServiceOrBuilder
      Returns:
      The serviceProperties.
    • setServiceProperties

      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

      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];
    • mergeServiceProperties

      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];
    • 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];
    • 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];
      Specified by:
      getServicePropertiesOrBuilder in interface DiscoveredServiceOrBuilder