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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.asset.v1.RelationshipAttributes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RelationshipAttributes.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RelationshipAttributes
build()
RelationshipAttributes
buildPartial()
RelationshipAttributes.Builder
clear()
RelationshipAttributes.Builder
clearAction()
The detail of the relationship, e.g.RelationshipAttributes.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RelationshipAttributes.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RelationshipAttributes.Builder
clearSourceResourceType()
The source asset type.RelationshipAttributes.Builder
clearTargetResourceType()
The target asset type.RelationshipAttributes.Builder
clearType()
The unique identifier of the relationship type.RelationshipAttributes.Builder
clone()
String
getAction()
The detail of the relationship, e.g.com.google.protobuf.ByteString
getActionBytes()
The detail of the relationship, e.g.RelationshipAttributes
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getSourceResourceType()
The source asset type.com.google.protobuf.ByteString
getSourceResourceTypeBytes()
The source asset type.String
getTargetResourceType()
The target asset type.com.google.protobuf.ByteString
getTargetResourceTypeBytes()
The target asset type.String
getType()
The unique identifier of the relationship type.com.google.protobuf.ByteString
getTypeBytes()
The unique identifier of the relationship type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RelationshipAttributes.Builder
mergeFrom(RelationshipAttributes other)
RelationshipAttributes.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RelationshipAttributes.Builder
mergeFrom(com.google.protobuf.Message other)
RelationshipAttributes.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RelationshipAttributes.Builder
setAction(String value)
The detail of the relationship, e.g.RelationshipAttributes.Builder
setActionBytes(com.google.protobuf.ByteString value)
The detail of the relationship, e.g.RelationshipAttributes.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RelationshipAttributes.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RelationshipAttributes.Builder
setSourceResourceType(String value)
The source asset type.RelationshipAttributes.Builder
setSourceResourceTypeBytes(com.google.protobuf.ByteString value)
The source asset type.RelationshipAttributes.Builder
setTargetResourceType(String value)
The target asset type.RelationshipAttributes.Builder
setTargetResourceTypeBytes(com.google.protobuf.ByteString value)
The target asset type.RelationshipAttributes.Builder
setType(String value)
The unique identifier of the relationship type.RelationshipAttributes.Builder
setTypeBytes(com.google.protobuf.ByteString value)
The unique identifier of the relationship type.RelationshipAttributes.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
clear
public RelationshipAttributes.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
getDefaultInstanceForType
public RelationshipAttributes getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RelationshipAttributes build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RelationshipAttributes buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RelationshipAttributes.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
setField
public RelationshipAttributes.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
clearField
public RelationshipAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
clearOneof
public RelationshipAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
setRepeatedField
public RelationshipAttributes.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
addRepeatedField
public RelationshipAttributes.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
mergeFrom
public RelationshipAttributes.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RelationshipAttributes.Builder>
-
mergeFrom
public RelationshipAttributes.Builder mergeFrom(RelationshipAttributes other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
mergeFrom
public RelationshipAttributes.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 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:
getTypeBytes
in interfaceRelationshipAttributesOrBuilder
- 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 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:
getSourceResourceTypeBytes
in interfaceRelationshipAttributesOrBuilder
- 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 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:
getTargetResourceTypeBytes
in interfaceRelationshipAttributesOrBuilder
- 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 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:
getActionBytes
in interfaceRelationshipAttributesOrBuilder
- 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.
-
setUnknownFields
public final RelationshipAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
mergeUnknownFields
public final RelationshipAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RelationshipAttributes.Builder>
-
-