public class SharingPolicy
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SharingPolicy.Builder
Builder for
SharingPolicy . |
Modifier and Type | Field and Description |
---|---|
protected SharingPublicPolicyType |
publicSharingPolicy |
protected SharingTeamPolicyType |
teamSharingPolicy |
Constructor and Description |
---|
SharingPolicy()
Sharing policy of Paper doc.
|
SharingPolicy(SharingPublicPolicyType publicSharingPolicy,
SharingTeamPolicyType teamSharingPolicy)
Sharing policy of Paper doc.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
SharingPublicPolicyType |
getPublicSharingPolicy()
This value applies to the non-team members.
|
SharingTeamPolicyType |
getTeamSharingPolicy()
This value applies to the team members only.
|
int |
hashCode() |
static SharingPolicy.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final SharingPublicPolicyType publicSharingPolicy
protected final SharingTeamPolicyType teamSharingPolicy
public SharingPolicy(SharingPublicPolicyType publicSharingPolicy, SharingTeamPolicyType teamSharingPolicy)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
publicSharingPolicy
- This value applies to the non-team members.teamSharingPolicy
- This value applies to the team members only.
The value is null for all personal accounts.public SharingPolicy()
The default values for unset fields will be used.
public SharingPublicPolicyType getPublicSharingPolicy()
null
if not present.public SharingTeamPolicyType getTeamSharingPolicy()
null
if not present.public static SharingPolicy.Builder newBuilder()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.