Class PanelInfo.Builder (0.47.0)

public static final class PanelInfo.Builder extends GeneratedMessageV3.Builder<PanelInfo.Builder> implements PanelInfoOrBuilder

Detailed panel information associated with a user event.

Protobuf type google.cloud.discoveryengine.v1beta.PanelInfo

Implements

PanelInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PanelInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PanelInfo.Builder
Overrides

build()

public PanelInfo build()
Returns
Type Description
PanelInfo

buildPartial()

public PanelInfo buildPartial()
Returns
Type Description
PanelInfo

clear()

public PanelInfo.Builder clear()
Returns
Type Description
PanelInfo.Builder
Overrides

clearDisplayName()

public PanelInfo.Builder clearDisplayName()

The display name of the panel.

string display_name = 3;

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PanelInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PanelInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PanelInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PanelInfo.Builder
Overrides

clearPanelId()

public PanelInfo.Builder clearPanelId()

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

clearPanelPosition()

public PanelInfo.Builder clearPanelPosition()

The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set.

optional int32 panel_position = 4;

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

clearTotalPanels()

public PanelInfo.Builder clearTotalPanels()

The total number of panels, including this one, shown to the user. Must be set if panel_position is set.

optional int32 total_panels = 5;

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

clone()

public PanelInfo.Builder clone()
Returns
Type Description
PanelInfo.Builder
Overrides

getDefaultInstanceForType()

public PanelInfo getDefaultInstanceForType()
Returns
Type Description
PanelInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the panel.

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the panel.

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getPanelId()

public String getPanelId()

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The panelId.

getPanelIdBytes()

public ByteString getPanelIdBytes()

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for panelId.

getPanelPosition()

public int getPanelPosition()

The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set.

optional int32 panel_position = 4;

Returns
Type Description
int

The panelPosition.

getTotalPanels()

public int getTotalPanels()

The total number of panels, including this one, shown to the user. Must be set if panel_position is set.

optional int32 total_panels = 5;

Returns
Type Description
int

The totalPanels.

hasPanelPosition()

public boolean hasPanelPosition()

The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set.

optional int32 panel_position = 4;

Returns
Type Description
boolean

Whether the panelPosition field is set.

hasTotalPanels()

public boolean hasTotalPanels()

The total number of panels, including this one, shown to the user. Must be set if panel_position is set.

optional int32 total_panels = 5;

Returns
Type Description
boolean

Whether the totalPanels field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PanelInfo other)

public PanelInfo.Builder mergeFrom(PanelInfo other)
Parameter
Name Description
other PanelInfo
Returns
Type Description
PanelInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PanelInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PanelInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PanelInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PanelInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PanelInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PanelInfo.Builder
Overrides

setDisplayName(String value)

public PanelInfo.Builder setDisplayName(String value)

The display name of the panel.

string display_name = 3;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PanelInfo.Builder setDisplayNameBytes(ByteString value)

The display name of the panel.

string display_name = 3;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PanelInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PanelInfo.Builder
Overrides

setPanelId(String value)

public PanelInfo.Builder setPanelId(String value)

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The panelId to set.

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

setPanelIdBytes(ByteString value)

public PanelInfo.Builder setPanelIdBytes(ByteString value)

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for panelId to set.

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

setPanelPosition(int value)

public PanelInfo.Builder setPanelPosition(int value)

The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set.

optional int32 panel_position = 4;

Parameter
Name Description
value int

The panelPosition to set.

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

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

public PanelInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PanelInfo.Builder
Overrides

setTotalPanels(int value)

public PanelInfo.Builder setTotalPanels(int value)

The total number of panels, including this one, shown to the user. Must be set if panel_position is set.

optional int32 total_panels = 5;

Parameter
Name Description
value int

The totalPanels to set.

Returns
Type Description
PanelInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PanelInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PanelInfo.Builder
Overrides