public static final class RelationshipAttributes.Builder extends GeneratedMessageV3.Builder<RelationshipAttributes.Builder> implements RelationshipAttributesOrBuilder
The relationship attributes which include `type`, `source_resource_type`, `target_resource_type` and `action`.Protobuf type
google.cloud.asset.v1p7beta1.RelationshipAttributes
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public RelationshipAttributes build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public RelationshipAttributes buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public RelationshipAttributes.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes.Builder mergeFrom(RelationshipAttributes other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public RelationshipAttributes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<RelationshipAttributes.Builder>
IOException
public String getType()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string type = 4;
getType
in interface RelationshipAttributesOrBuilder
public ByteString getTypeBytes()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string type = 4;
getTypeBytes
in interface RelationshipAttributesOrBuilder
public RelationshipAttributes.Builder setType(String value)
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string type = 4;
value
- The type to set.public RelationshipAttributes.Builder clearType()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string type = 4;
public RelationshipAttributes.Builder setTypeBytes(ByteString value)
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string type = 4;
value
- The bytes for type to set.public String getSourceResourceType()
The source asset type. Example: `compute.googleapis.com/Instance`
string source_resource_type = 1;
getSourceResourceType
in interface RelationshipAttributesOrBuilder
public ByteString getSourceResourceTypeBytes()
The source asset type. Example: `compute.googleapis.com/Instance`
string source_resource_type = 1;
getSourceResourceTypeBytes
in interface RelationshipAttributesOrBuilder
public RelationshipAttributes.Builder setSourceResourceType(String value)
The source asset type. Example: `compute.googleapis.com/Instance`
string source_resource_type = 1;
value
- The sourceResourceType to set.public RelationshipAttributes.Builder clearSourceResourceType()
The source asset type. Example: `compute.googleapis.com/Instance`
string source_resource_type = 1;
public RelationshipAttributes.Builder setSourceResourceTypeBytes(ByteString value)
The source asset type. Example: `compute.googleapis.com/Instance`
string source_resource_type = 1;
value
- The bytes for sourceResourceType to set.public String getTargetResourceType()
The target asset type. Example: `compute.googleapis.com/Disk`
string target_resource_type = 2;
getTargetResourceType
in interface RelationshipAttributesOrBuilder
public ByteString getTargetResourceTypeBytes()
The target asset type. Example: `compute.googleapis.com/Disk`
string target_resource_type = 2;
getTargetResourceTypeBytes
in interface RelationshipAttributesOrBuilder
public RelationshipAttributes.Builder setTargetResourceType(String value)
The target asset type. Example: `compute.googleapis.com/Disk`
string target_resource_type = 2;
value
- The targetResourceType to set.public RelationshipAttributes.Builder clearTargetResourceType()
The target asset type. Example: `compute.googleapis.com/Disk`
string target_resource_type = 2;
public RelationshipAttributes.Builder setTargetResourceTypeBytes(ByteString value)
The target asset type. Example: `compute.googleapis.com/Disk`
string target_resource_type = 2;
value
- The bytes for targetResourceType to set.public String getAction()
The detail of the relationship, e.g. `contains`, `attaches`
string action = 3;
getAction
in interface RelationshipAttributesOrBuilder
public ByteString getActionBytes()
The detail of the relationship, e.g. `contains`, `attaches`
string action = 3;
getActionBytes
in interface RelationshipAttributesOrBuilder
public RelationshipAttributes.Builder setAction(String value)
The detail of the relationship, e.g. `contains`, `attaches`
string action = 3;
value
- The action to set.public RelationshipAttributes.Builder clearAction()
The detail of the relationship, e.g. `contains`, `attaches`
string action = 3;
public RelationshipAttributes.Builder setActionBytes(ByteString value)
The detail of the relationship, e.g. `contains`, `attaches`
string action = 3;
value
- The bytes for action to set.public final RelationshipAttributes.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
public final RelationshipAttributes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
Copyright © 2022 Google LLC. All rights reserved.