Class RelationshipAttributes.Builder

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

public static final class RelationshipAttributes.Builder extends com.google.protobuf.GeneratedMessage.Builder<RelationshipAttributes.Builder> implements RelationshipAttributesOrBuilder
 DEPRECATED. This message only presents for the purpose of
 backward-compatibility. The server will never populate this message in
 responses.
 The relationship attributes which include  `type`, `source_resource_type`,
 `target_resource_type` and `action`.
 
Protobuf type google.cloud.asset.v1.RelationshipAttributes
  • 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<RelationshipAttributes.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<RelationshipAttributes.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<RelationshipAttributes.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public RelationshipAttributes.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<RelationshipAttributes.Builder>
      Throws:
      IOException
    • getType

      public String getType()
       The unique identifier of the relationship type. Example:
       `INSTANCE_TO_INSTANCEGROUP`
       
      string type = 4;
      Specified by:
      getType in interface RelationshipAttributesOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The unique identifier of the relationship type. Example:
       `INSTANCE_TO_INSTANCEGROUP`
       
      string type = 4;
      Specified by:
      getTypeBytes in interface RelationshipAttributesOrBuilder
      Returns:
      The bytes for type.
    • setType

      public RelationshipAttributes.Builder setType(String value)
       The unique identifier of the relationship type. Example:
       `INSTANCE_TO_INSTANCEGROUP`
       
      string type = 4;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public RelationshipAttributes.Builder clearType()
       The unique identifier of the relationship type. Example:
       `INSTANCE_TO_INSTANCEGROUP`
       
      string type = 4;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public RelationshipAttributes.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The unique identifier of the relationship type. Example:
       `INSTANCE_TO_INSTANCEGROUP`
       
      string type = 4;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getSourceResourceType

      public String getSourceResourceType()
       The source asset type. Example: `compute.googleapis.com/Instance`
       
      string source_resource_type = 1;
      Specified by:
      getSourceResourceType in interface RelationshipAttributesOrBuilder
      Returns:
      The sourceResourceType.
    • getSourceResourceTypeBytes

      public com.google.protobuf.ByteString getSourceResourceTypeBytes()
       The source asset type. Example: `compute.googleapis.com/Instance`
       
      string source_resource_type = 1;
      Specified by:
      getSourceResourceTypeBytes in interface RelationshipAttributesOrBuilder
      Returns:
      The bytes for sourceResourceType.
    • setSourceResourceType

      public RelationshipAttributes.Builder setSourceResourceType(String value)
       The source asset type. Example: `compute.googleapis.com/Instance`
       
      string source_resource_type = 1;
      Parameters:
      value - The sourceResourceType to set.
      Returns:
      This builder for chaining.
    • clearSourceResourceType

      public RelationshipAttributes.Builder clearSourceResourceType()
       The source asset type. Example: `compute.googleapis.com/Instance`
       
      string source_resource_type = 1;
      Returns:
      This builder for chaining.
    • setSourceResourceTypeBytes

      public RelationshipAttributes.Builder setSourceResourceTypeBytes(com.google.protobuf.ByteString value)
       The source asset type. Example: `compute.googleapis.com/Instance`
       
      string source_resource_type = 1;
      Parameters:
      value - The bytes for sourceResourceType to set.
      Returns:
      This builder for chaining.
    • getTargetResourceType

      public String getTargetResourceType()
       The target asset type. Example: `compute.googleapis.com/Disk`
       
      string target_resource_type = 2;
      Specified by:
      getTargetResourceType in interface RelationshipAttributesOrBuilder
      Returns:
      The targetResourceType.
    • getTargetResourceTypeBytes

      public com.google.protobuf.ByteString getTargetResourceTypeBytes()
       The target asset type. Example: `compute.googleapis.com/Disk`
       
      string target_resource_type = 2;
      Specified by:
      getTargetResourceTypeBytes in interface RelationshipAttributesOrBuilder
      Returns:
      The bytes for targetResourceType.
    • setTargetResourceType

      public RelationshipAttributes.Builder setTargetResourceType(String value)
       The target asset type. Example: `compute.googleapis.com/Disk`
       
      string target_resource_type = 2;
      Parameters:
      value - The targetResourceType to set.
      Returns:
      This builder for chaining.
    • clearTargetResourceType

      public RelationshipAttributes.Builder clearTargetResourceType()
       The target asset type. Example: `compute.googleapis.com/Disk`
       
      string target_resource_type = 2;
      Returns:
      This builder for chaining.
    • setTargetResourceTypeBytes

      public RelationshipAttributes.Builder setTargetResourceTypeBytes(com.google.protobuf.ByteString value)
       The target asset type. Example: `compute.googleapis.com/Disk`
       
      string target_resource_type = 2;
      Parameters:
      value - The bytes for targetResourceType to set.
      Returns:
      This builder for chaining.
    • getAction

      public String getAction()
       The detail of the relationship, e.g. `contains`, `attaches`
       
      string action = 3;
      Specified by:
      getAction in interface RelationshipAttributesOrBuilder
      Returns:
      The action.
    • getActionBytes

      public com.google.protobuf.ByteString getActionBytes()
       The detail of the relationship, e.g. `contains`, `attaches`
       
      string action = 3;
      Specified by:
      getActionBytes in interface RelationshipAttributesOrBuilder
      Returns:
      The bytes for action.
    • setAction

      public RelationshipAttributes.Builder setAction(String value)
       The detail of the relationship, e.g. `contains`, `attaches`
       
      string action = 3;
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • clearAction

      public RelationshipAttributes.Builder clearAction()
       The detail of the relationship, e.g. `contains`, `attaches`
       
      string action = 3;
      Returns:
      This builder for chaining.
    • setActionBytes

      public RelationshipAttributes.Builder setActionBytes(com.google.protobuf.ByteString value)
       The detail of the relationship, e.g. `contains`, `attaches`
       
      string action = 3;
      Parameters:
      value - The bytes for action to set.
      Returns:
      This builder for chaining.