Class Membership (0.16.0)

  public 
  
 final 
  
 class 
 Membership 
  
 extends 
  
 GeneratedMessageV3 
  
 implements 
  
 MembershipOrBuilder 
 

Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.

Protobuf type google.chat.v1.Membership

Implements

MembershipOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CREATE_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

DELETE_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DELETE_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

GROUP_MEMBER_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 GROUP_MEMBER_FIELD_NUMBER 
 
Field Value
Type
Description
int

MEMBER_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 MEMBER_FIELD_NUMBER 
 
Field Value
Type
Description
int

NAME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NAME_FIELD_NUMBER 
 
Field Value
Type
Description
int

ROLE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ROLE_FIELD_NUMBER 
 
Field Value
Type
Description
int

STATE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 STATE_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 Membership 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 Membership 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Membership prototype)

  public 
  
 static 
  
 Membership 
 . 
 Builder 
  
 newBuilder 
 ( 
 Membership 
  
 prototype 
 ) 
 
Parameter
Name
Description
prototype
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 Membership 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Membership 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Membership 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<Membership> 
  
 parser 
 () 
 
Returns
Type
Description

Methods

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
Overrides

getCreateTime()

  public 
  
 Timestamp 
  
 getCreateTime 
 () 
 

Optional. Immutable. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The createTime.

getCreateTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getCreateTimeOrBuilder 
 () 
 

Optional. Immutable. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getDefaultInstanceForType()

  public 
  
 Membership 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDeleteTime()

  public 
  
 Timestamp 
  
 getDeleteTime 
 () 
 

Optional. Immutable. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The deleteTime.

getDeleteTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getDeleteTimeOrBuilder 
 () 
 

Optional. Immutable. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getGroupMember()

  public 
  
 Group 
  
 getGroupMember 
 () 
 

The Google Group the membership corresponds to.

.google.chat.v1.Group group_member = 5;

Returns
Type
Description

The groupMember.

getGroupMemberOrBuilder()

  public 
  
 GroupOrBuilder 
  
 getGroupMemberOrBuilder 
 () 
 

The Google Group the membership corresponds to.

.google.chat.v1.Group group_member = 5;

Returns
Type
Description

getMember()

  public 
  
 User 
  
 getMember 
 () 
 

The Google Chat user or app the membership corresponds to. If your Chat app authenticates as a user , the output populates the user name and type .

.google.chat.v1.User member = 3;

Returns
Type
Description

The member.

getMemberOrBuilder()

  public 
  
 UserOrBuilder 
  
 getMemberOrBuilder 
 () 
 

The Google Chat user or app the membership corresponds to. If your Chat app authenticates as a user , the output populates the user name and type .

.google.chat.v1.User member = 3;

Returns
Type
Description

getMemberTypeCase()

  public 
  
 Membership 
 . 
 MemberTypeCase 
  
 getMemberTypeCase 
 () 
 
Returns
Type
Description

getName()

  public 
  
 String 
  
 getName 
 () 
 

Resource name of the membership, assigned by the server.

Format: spaces/{space}/members/{member}

string name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type
Description

The name.

getNameBytes()

  public 
  
 ByteString 
  
 getNameBytes 
 () 
 

Resource name of the membership, assigned by the server.

Format: spaces/{space}/members/{member}

string name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type
Description

The bytes for name.

getParserForType()

  public 
  
 Parser<Membership> 
  
 getParserForType 
 () 
 
Returns
Type
Description
Overrides

getRole()

  public 
  
 Membership 
 . 
 MembershipRole 
  
 getRole 
 () 
 

Optional. User's role within a Chat space, which determines their permitted actions in the space.

This field can only be used as input in UpdateMembership .

.google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getRoleValue()

  public 
  
 int 
  
 getRoleValue 
 () 
 

Optional. User's role within a Chat space, which determines their permitted actions in the space.

This field can only be used as input in UpdateMembership .

.google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
int

The enum numeric value on the wire for role.

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

getState()

  public 
  
 Membership 
 . 
 MembershipState 
  
 getState 
 () 
 

Output only. State of the membership.

.google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

getStateValue()

  public 
  
 int 
  
 getStateValue 
 () 
 

Output only. State of the membership.

.google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description
int

The enum numeric value on the wire for state.

hasCreateTime()

  public 
  
 boolean 
  
 hasCreateTime 
 () 
 

Optional. Immutable. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the createTime field is set.

hasDeleteTime()

  public 
  
 boolean 
  
 hasDeleteTime 
 () 
 

Optional. Immutable. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the deleteTime field is set.

hasGroupMember()

  public 
  
 boolean 
  
 hasGroupMember 
 () 
 

The Google Group the membership corresponds to.

.google.chat.v1.Group group_member = 5;

Returns
Type
Description

Whether the groupMember field is set.

hasMember()

  public 
  
 boolean 
  
 hasMember 
 () 
 

The Google Chat user or app the membership corresponds to. If your Chat app authenticates as a user , the output populates the user name and type .

.google.chat.v1.User member = 3;

Returns
Type
Description

Whether the member field is set.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Membership 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 Membership 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 Membership 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: