Class ReportConfig.Builder (0.5.0)

public static final class ReportConfig.Builder extends GeneratedMessageV3.Builder<ReportConfig.Builder> implements ReportConfigOrBuilder

The groups and associated preference sets on which we can generate reports.

Protobuf type google.cloud.migrationcenter.v1.ReportConfig

Static Methods

getDescriptor()

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

Methods

addAllGroupPreferencesetAssignments(Iterable<? extends ReportConfig.GroupPreferenceSetAssignment> values)

public ReportConfig.Builder addAllGroupPreferencesetAssignments(Iterable<? extends ReportConfig.GroupPreferenceSetAssignment> values)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment>
Returns
TypeDescription
ReportConfig.Builder

addGroupPreferencesetAssignments(ReportConfig.GroupPreferenceSetAssignment value)

public ReportConfig.Builder addGroupPreferencesetAssignments(ReportConfig.GroupPreferenceSetAssignment value)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueReportConfig.GroupPreferenceSetAssignment
Returns
TypeDescription
ReportConfig.Builder

addGroupPreferencesetAssignments(ReportConfig.GroupPreferenceSetAssignment.Builder builderForValue)

public ReportConfig.Builder addGroupPreferencesetAssignments(ReportConfig.GroupPreferenceSetAssignment.Builder builderForValue)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueReportConfig.GroupPreferenceSetAssignment.Builder
Returns
TypeDescription
ReportConfig.Builder

addGroupPreferencesetAssignments(int index, ReportConfig.GroupPreferenceSetAssignment value)

public ReportConfig.Builder addGroupPreferencesetAssignments(int index, ReportConfig.GroupPreferenceSetAssignment value)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueReportConfig.GroupPreferenceSetAssignment
Returns
TypeDescription
ReportConfig.Builder

addGroupPreferencesetAssignments(int index, ReportConfig.GroupPreferenceSetAssignment.Builder builderForValue)

public ReportConfig.Builder addGroupPreferencesetAssignments(int index, ReportConfig.GroupPreferenceSetAssignment.Builder builderForValue)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueReportConfig.GroupPreferenceSetAssignment.Builder
Returns
TypeDescription
ReportConfig.Builder

addGroupPreferencesetAssignmentsBuilder()

public ReportConfig.GroupPreferenceSetAssignment.Builder addGroupPreferencesetAssignmentsBuilder()

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReportConfig.GroupPreferenceSetAssignment.Builder

addGroupPreferencesetAssignmentsBuilder(int index)

public ReportConfig.GroupPreferenceSetAssignment.Builder addGroupPreferencesetAssignmentsBuilder(int index)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReportConfig.GroupPreferenceSetAssignment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReportConfig build()
Returns
TypeDescription
ReportConfig

buildPartial()

public ReportConfig buildPartial()
Returns
TypeDescription
ReportConfig

clear()

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

clearCreateTime()

public ReportConfig.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ReportConfig.Builder

clearDescription()

public ReportConfig.Builder clearDescription()

Free-text description.

string description = 5;

Returns
TypeDescription
ReportConfig.Builder

This builder for chaining.

clearDisplayName()

public ReportConfig.Builder clearDisplayName()

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Returns
TypeDescription
ReportConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGroupPreferencesetAssignments()

public ReportConfig.Builder clearGroupPreferencesetAssignments()

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ReportConfig.Builder

clearName()

public ReportConfig.Builder clearName()

Output only. Name of resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ReportConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public ReportConfig.Builder clearUpdateTime()

Output only. The timestamp when the resource was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ReportConfig.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ReportConfig getDefaultInstanceForType()
Returns
TypeDescription
ReportConfig

getDescription()

public String getDescription()

Free-text description.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Free-text description.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Returns
TypeDescription
ByteString

The bytes for displayName.

getGroupPreferencesetAssignments(int index)

public ReportConfig.GroupPreferenceSetAssignment getGroupPreferencesetAssignments(int index)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReportConfig.GroupPreferenceSetAssignment

getGroupPreferencesetAssignmentsBuilder(int index)

public ReportConfig.GroupPreferenceSetAssignment.Builder getGroupPreferencesetAssignmentsBuilder(int index)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReportConfig.GroupPreferenceSetAssignment.Builder

getGroupPreferencesetAssignmentsBuilderList()

public List<ReportConfig.GroupPreferenceSetAssignment.Builder> getGroupPreferencesetAssignmentsBuilderList()

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getGroupPreferencesetAssignmentsCount()

public int getGroupPreferencesetAssignmentsCount()

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getGroupPreferencesetAssignmentsList()

public List<ReportConfig.GroupPreferenceSetAssignment> getGroupPreferencesetAssignmentsList()

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<GroupPreferenceSetAssignment>

getGroupPreferencesetAssignmentsOrBuilder(int index)

public ReportConfig.GroupPreferenceSetAssignmentOrBuilder getGroupPreferencesetAssignmentsOrBuilder(int index)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReportConfig.GroupPreferenceSetAssignmentOrBuilder

getGroupPreferencesetAssignmentsOrBuilderList()

public List<? extends ReportConfig.GroupPreferenceSetAssignmentOrBuilder> getGroupPreferencesetAssignmentsOrBuilderList()

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignmentOrBuilder>

getName()

public String getName()

Output only. Name of resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the resource was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public ReportConfig.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ReportConfig.Builder

mergeFrom(ReportConfig other)

public ReportConfig.Builder mergeFrom(ReportConfig other)
Parameter
NameDescription
otherReportConfig
Returns
TypeDescription
ReportConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public ReportConfig.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ReportConfig.Builder

removeGroupPreferencesetAssignments(int index)

public ReportConfig.Builder removeGroupPreferencesetAssignments(int index)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReportConfig.Builder

setCreateTime(Timestamp value)

public ReportConfig.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ReportConfig.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ReportConfig.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ReportConfig.Builder

setDescription(String value)

public ReportConfig.Builder setDescription(String value)

Free-text description.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ReportConfig.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ReportConfig.Builder setDescriptionBytes(ByteString value)

Free-text description.

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ReportConfig.Builder

This builder for chaining.

setDisplayName(String value)

public ReportConfig.Builder setDisplayName(String value)

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
ReportConfig.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ReportConfig.Builder setDisplayNameBytes(ByteString value)

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ReportConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGroupPreferencesetAssignments(int index, ReportConfig.GroupPreferenceSetAssignment value)

public ReportConfig.Builder setGroupPreferencesetAssignments(int index, ReportConfig.GroupPreferenceSetAssignment value)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueReportConfig.GroupPreferenceSetAssignment
Returns
TypeDescription
ReportConfig.Builder

setGroupPreferencesetAssignments(int index, ReportConfig.GroupPreferenceSetAssignment.Builder builderForValue)

public ReportConfig.Builder setGroupPreferencesetAssignments(int index, ReportConfig.GroupPreferenceSetAssignment.Builder builderForValue)

Required. Collection of combinations of groups and preference sets.

repeated .google.cloud.migrationcenter.v1.ReportConfig.GroupPreferenceSetAssignment group_preferenceset_assignments = 6 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueReportConfig.GroupPreferenceSetAssignment.Builder
Returns
TypeDescription
ReportConfig.Builder

setName(String value)

public ReportConfig.Builder setName(String value)

Output only. Name of resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ReportConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReportConfig.Builder setNameBytes(ByteString value)

Output only. Name of resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ReportConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ReportConfig.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ReportConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ReportConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ReportConfig.Builder