Package com.google.cloud.asset.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The detail of the relationship, e.g.The source asset type.The target asset type.The unique identifier of the relationship type.The detail of the relationship, e.g.com.google.protobuf.ByteStringThe detail of the relationship, e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe source asset type.com.google.protobuf.ByteStringThe source asset type.The target asset type.com.google.protobuf.ByteStringThe target asset type.getType()The unique identifier of the relationship type.com.google.protobuf.ByteStringThe unique identifier of the relationship type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RelationshipAttributes other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The detail of the relationship, e.g.setActionBytes(com.google.protobuf.ByteString value) The detail of the relationship, e.g.setSourceResourceType(String value) The source asset type.setSourceResourceTypeBytes(com.google.protobuf.ByteString value) The source asset type.setTargetResourceType(String value) The target asset type.setTargetResourceTypeBytes(com.google.protobuf.ByteString value) The target asset type.The unique identifier of the relationship type.setTypeBytes(com.google.protobuf.ByteString value) The unique identifier of the relationship type.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RelationshipAttributes.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RelationshipAttributes.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RelationshipAttributes.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RelationshipAttributes.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RelationshipAttributes.Builder>- Throws:
IOException
-
getType
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string type = 4;- Specified by:
getTypein interfaceRelationshipAttributesOrBuilder- 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:
getTypeBytesin interfaceRelationshipAttributesOrBuilder- Returns:
- The bytes for type.
-
setType
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
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string type = 4;- Returns:
- This builder for chaining.
-
setTypeBytes
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
The source asset type. Example: `compute.googleapis.com/Instance`
string source_resource_type = 1;- Specified by:
getSourceResourceTypein interfaceRelationshipAttributesOrBuilder- 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:
getSourceResourceTypeBytesin interfaceRelationshipAttributesOrBuilder- Returns:
- The bytes for sourceResourceType.
-
setSourceResourceType
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
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
The target asset type. Example: `compute.googleapis.com/Disk`
string target_resource_type = 2;- Specified by:
getTargetResourceTypein interfaceRelationshipAttributesOrBuilder- 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:
getTargetResourceTypeBytesin interfaceRelationshipAttributesOrBuilder- Returns:
- The bytes for targetResourceType.
-
setTargetResourceType
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
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
The detail of the relationship, e.g. `contains`, `attaches`
string action = 3;- Specified by:
getActionin interfaceRelationshipAttributesOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()The detail of the relationship, e.g. `contains`, `attaches`
string action = 3;- Specified by:
getActionBytesin interfaceRelationshipAttributesOrBuilder- Returns:
- The bytes for action.
-
setAction
The detail of the relationship, e.g. `contains`, `attaches`
string action = 3;- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
The detail of the relationship, e.g. `contains`, `attaches`
string action = 3;- Returns:
- This builder for chaining.
-
setActionBytes
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.
-