Class Affiliation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Affiliation.Builder>
com.google.cloud.databasecenter.v1beta.Affiliation.Builder
All Implemented Interfaces:
AffiliationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Affiliation

public static final class Affiliation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Affiliation.Builder> implements AffiliationOrBuilder
 Affiliation information of a resource
 
Protobuf type google.cloud.databasecenter.v1beta.Affiliation
  • 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<Affiliation.Builder>
    • clear

      public Affiliation.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<Affiliation.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<Affiliation.Builder>
    • getDefaultInstanceForType

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

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

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

      public Affiliation.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<Affiliation.Builder>
    • mergeFrom

      public Affiliation.Builder mergeFrom(Affiliation other)
    • isInitialized

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

      public Affiliation.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<Affiliation.Builder>
      Throws:
      IOException
    • getResourceId

      public String getResourceId()
       Optional. resource id of affiliated resource
       
      string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceId in interface AffiliationOrBuilder
      Returns:
      The resourceId.
    • getResourceIdBytes

      public com.google.protobuf.ByteString getResourceIdBytes()
       Optional. resource id of affiliated resource
       
      string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceIdBytes in interface AffiliationOrBuilder
      Returns:
      The bytes for resourceId.
    • setResourceId

      public Affiliation.Builder setResourceId(String value)
       Optional. resource id of affiliated resource
       
      string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The resourceId to set.
      Returns:
      This builder for chaining.
    • clearResourceId

      public Affiliation.Builder clearResourceId()
       Optional. resource id of affiliated resource
       
      string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setResourceIdBytes

      public Affiliation.Builder setResourceIdBytes(com.google.protobuf.ByteString value)
       Optional. resource id of affiliated resource
       
      string resource_id = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for resourceId to set.
      Returns:
      This builder for chaining.
    • getFullResourceName

      public String getFullResourceName()
       Optional. Full resource name
       
      string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFullResourceName in interface AffiliationOrBuilder
      Returns:
      The fullResourceName.
    • getFullResourceNameBytes

      public com.google.protobuf.ByteString getFullResourceNameBytes()
       Optional. Full resource name
       
      string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFullResourceNameBytes in interface AffiliationOrBuilder
      Returns:
      The bytes for fullResourceName.
    • setFullResourceName

      public Affiliation.Builder setFullResourceName(String value)
       Optional. Full resource name
       
      string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The fullResourceName to set.
      Returns:
      This builder for chaining.
    • clearFullResourceName

      public Affiliation.Builder clearFullResourceName()
       Optional. Full resource name
       
      string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFullResourceNameBytes

      public Affiliation.Builder setFullResourceNameBytes(com.google.protobuf.ByteString value)
       Optional. Full resource name
       
      string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for fullResourceName to set.
      Returns:
      This builder for chaining.
    • getLineagesList

      public List<Affiliation.Lineage> getLineagesList()
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLineagesList in interface AffiliationOrBuilder
    • getLineagesCount

      public int getLineagesCount()
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLineagesCount in interface AffiliationOrBuilder
    • getLineages

      public Affiliation.Lineage getLineages(int index)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLineages in interface AffiliationOrBuilder
    • setLineages

      public Affiliation.Builder setLineages(int index, Affiliation.Lineage value)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setLineages

      public Affiliation.Builder setLineages(int index, Affiliation.Lineage.Builder builderForValue)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addLineages

      public Affiliation.Builder addLineages(Affiliation.Lineage value)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addLineages

      public Affiliation.Builder addLineages(int index, Affiliation.Lineage value)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addLineages

      public Affiliation.Builder addLineages(Affiliation.Lineage.Builder builderForValue)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addLineages

      public Affiliation.Builder addLineages(int index, Affiliation.Lineage.Builder builderForValue)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllLineages

      public Affiliation.Builder addAllLineages(Iterable<? extends Affiliation.Lineage> values)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearLineages

      public Affiliation.Builder clearLineages()
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • removeLineages

      public Affiliation.Builder removeLineages(int index)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getLineagesBuilder

      public Affiliation.Lineage.Builder getLineagesBuilder(int index)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getLineagesOrBuilder

      public Affiliation.LineageOrBuilder getLineagesOrBuilder(int index)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLineagesOrBuilder in interface AffiliationOrBuilder
    • getLineagesOrBuilderList

      public List<? extends Affiliation.LineageOrBuilder> getLineagesOrBuilderList()
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLineagesOrBuilderList in interface AffiliationOrBuilder
    • addLineagesBuilder

      public Affiliation.Lineage.Builder addLineagesBuilder()
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addLineagesBuilder

      public Affiliation.Lineage.Builder addLineagesBuilder(int index)
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getLineagesBuilderList

      public List<Affiliation.Lineage.Builder> getLineagesBuilderList()
       Optional. Multiple lineages can be created from a resource.
       For example, a resource can be replicated to multiple target resources.
       In this case, there will be multiple lineages for the resource, one for
       each target resource.
       
      repeated .google.cloud.databasecenter.v1beta.Affiliation.Lineage lineages = 3 [(.google.api.field_behavior) = OPTIONAL];