Class BatchCreateUserLinksRequest.Builder (0.30.0)

public static final class BatchCreateUserLinksRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateUserLinksRequest.Builder> implements BatchCreateUserLinksRequestOrBuilder

Request message for BatchCreateUserLinks RPC.

Protobuf type google.analytics.admin.v1alpha.BatchCreateUserLinksRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreateUserLinkRequest> values)

public BatchCreateUserLinksRequest.Builder addAllRequests(Iterable<? extends CreateUserLinkRequest> values)

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
valuesIterable<? extends com.google.analytics.admin.v1alpha.CreateUserLinkRequest>
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateUserLinksRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

addRequests(CreateUserLinkRequest value)

public BatchCreateUserLinksRequest.Builder addRequests(CreateUserLinkRequest value)

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
valueCreateUserLinkRequest
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

addRequests(CreateUserLinkRequest.Builder builderForValue)

public BatchCreateUserLinksRequest.Builder addRequests(CreateUserLinkRequest.Builder builderForValue)

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
builderForValueCreateUserLinkRequest.Builder
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

addRequests(int index, CreateUserLinkRequest value)

public BatchCreateUserLinksRequest.Builder addRequests(int index, CreateUserLinkRequest value)

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];

Parameters
NameDescription
indexint
valueCreateUserLinkRequest
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

addRequests(int index, CreateUserLinkRequest.Builder builderForValue)

public BatchCreateUserLinksRequest.Builder addRequests(int index, CreateUserLinkRequest.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueCreateUserLinkRequest.Builder
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

addRequestsBuilder()

public CreateUserLinkRequest.Builder addRequestsBuilder()

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
CreateUserLinkRequest.Builder

addRequestsBuilder(int index)

public CreateUserLinkRequest.Builder addRequestsBuilder(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.Builder

build()

public BatchCreateUserLinksRequest build()
Returns
TypeDescription
BatchCreateUserLinksRequest

buildPartial()

public BatchCreateUserLinksRequest buildPartial()
Returns
TypeDescription
BatchCreateUserLinksRequest

clear()

public BatchCreateUserLinksRequest.Builder clear()
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateUserLinksRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

clearNotifyNewUsers()

public BatchCreateUserLinksRequest.Builder clearNotifyNewUsers()

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
BatchCreateUserLinksRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateUserLinksRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

clearParent()

public BatchCreateUserLinksRequest.Builder clearParent()

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
BatchCreateUserLinksRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateUserLinksRequest.Builder clearRequests()

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
BatchCreateUserLinksRequest.Builder

clone()

public BatchCreateUserLinksRequest.Builder clone()
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchCreateUserLinksRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateUserLinksRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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

getRequestsBuilder(int index)

public CreateUserLinkRequest.Builder getRequestsBuilder(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.Builder

getRequestsBuilderList()

public List<CreateUserLinkRequest.Builder> getRequestsBuilderList()

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<Builder>

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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchCreateUserLinksRequest other)

public BatchCreateUserLinksRequest.Builder mergeFrom(BatchCreateUserLinksRequest other)
Parameter
NameDescription
otherBatchCreateUserLinksRequest
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateUserLinksRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchCreateUserLinksRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateUserLinksRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

removeRequests(int index)

public BatchCreateUserLinksRequest.Builder removeRequests(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
BatchCreateUserLinksRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateUserLinksRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

setNotifyNewUsers(boolean value)

public BatchCreateUserLinksRequest.Builder setNotifyNewUsers(boolean value)

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];

Parameter
NameDescription
valueboolean

The notifyNewUsers to set.

Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

This builder for chaining.

setParent(String value)

public BatchCreateUserLinksRequest.Builder setParent(String value)

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) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateUserLinksRequest.Builder setParentBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchCreateUserLinksRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides

setRequests(int index, CreateUserLinkRequest value)

public BatchCreateUserLinksRequest.Builder setRequests(int index, CreateUserLinkRequest value)

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];

Parameters
NameDescription
indexint
valueCreateUserLinkRequest
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

setRequests(int index, CreateUserLinkRequest.Builder builderForValue)

public BatchCreateUserLinksRequest.Builder setRequests(int index, CreateUserLinkRequest.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueCreateUserLinkRequest.Builder
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateUserLinksRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateUserLinksRequest.Builder
Overrides