Class BatchCreateUserLinksRequest (0.20.0)

public final class BatchCreateUserLinksRequest extends GeneratedMessageV3 implements BatchCreateUserLinksRequestOrBuilder

Request message for BatchCreateUserLinks RPC.

Protobuf type google.analytics.admin.v1alpha.BatchCreateUserLinksRequest

Static Fields

NOTIFY_NEW_USERS_FIELD_NUMBER

public static final int NOTIFY_NEW_USERS_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

REQUESTS_FIELD_NUMBER

public static final int REQUESTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchCreateUserLinksRequest getDefaultInstance()
Returns
TypeDescription
BatchCreateUserLinksRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static BatchCreateUserLinksRequest.Builder newBuilder()
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

newBuilder(BatchCreateUserLinksRequest prototype)

public static BatchCreateUserLinksRequest.Builder newBuilder(BatchCreateUserLinksRequest prototype)
Parameter
NameDescription
prototypeBatchCreateUserLinksRequest
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

parseDelimitedFrom(InputStream input)

public static BatchCreateUserLinksRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateUserLinksRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BatchCreateUserLinksRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateUserLinksRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchCreateUserLinksRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateUserLinksRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchCreateUserLinksRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateUserLinksRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BatchCreateUserLinksRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateUserLinksRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BatchCreateUserLinksRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateUserLinksRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateUserLinksRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BatchCreateUserLinksRequest> parser()
Returns
TypeDescription
Parser<BatchCreateUserLinksRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public BatchCreateUserLinksRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateUserLinksRequest

getNotifyNewUsers()

public boolean getNotifyNewUsers()

Optional. If set, then email the new users notifying them that they've been granted permissions to the resource. Regardless of whether this is set or not, notify_new_user field inside each individual request is ignored.

bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The notifyNewUsers.

getParent()

public String getParent()

Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<BatchCreateUserLinksRequest> getParserForType()
Returns
TypeDescription
Parser<BatchCreateUserLinksRequest>
Overrides

getRequests(int index)

public CreateUserLinkRequest getRequests(int index)

Required. The requests specifying the user links to create. A maximum of 1000 user links can be created in a batch.

repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
CreateUserLinkRequest

getRequestsCount()

public int getRequestsCount()

Required. The requests specifying the user links to create. A maximum of 1000 user links can be created in a batch.

repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getRequestsList()

public List<CreateUserLinkRequest> getRequestsList()

Required. The requests specifying the user links to create. A maximum of 1000 user links can be created in a batch.

repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<CreateUserLinkRequest>

getRequestsOrBuilder(int index)

public CreateUserLinkRequestOrBuilder getRequestsOrBuilder(int index)

Required. The requests specifying the user links to create. A maximum of 1000 user links can be created in a batch.

repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
CreateUserLinkRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateUserLinkRequestOrBuilder> getRequestsOrBuilderList()

Required. The requests specifying the user links to create. A maximum of 1000 user links can be created in a batch.

repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BatchCreateUserLinksRequest.Builder newBuilderForType()
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchCreateUserLinksRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BatchCreateUserLinksRequest.Builder toBuilder()
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException