target.apidocs.com.google.api.services.drive.model.Comment.Context.html Maven / Gradle / Ivy
Comment.Context (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive.model
Class Comment.Context
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.Comment.Context
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Context()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Comment.Context
clone()
String
getType()
The MIME type of the context snippet.
String
getValue()
Data representation of the segment of the file being commented on.
Comment.Context
set(String fieldName,
Object value)
Comment.Context
setType(String type)
The MIME type of the context snippet.
Comment.Context
setValue(String value)
Data representation of the segment of the file being commented on.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getType
public String getType()
The MIME type of the context snippet.
- Returns:
- value or
null
for none
-
setType
public Comment.Context setType(String type)
The MIME type of the context snippet.
- Parameters:
type
- type or null
for none
-
getValue
public String getValue()
Data representation of the segment of the file being commented on. In the case of a text file
for example, this would be the actual text that the comment is about.
- Returns:
- value or
null
for none
-
setValue
public Comment.Context setValue(String value)
Data representation of the segment of the file being commented on. In the case of a text file
for example, this would be the actual text that the comment is about.
- Parameters:
value
- value or null
for none
-
set
public Comment.Context set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Comment.Context clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2018 Google. All rights reserved.