Class UpdateViewRequest.Builder (3.13.7)

public static final class UpdateViewRequest.Builder extends GeneratedMessageV3.Builder<UpdateViewRequest.Builder> implements UpdateViewRequestOrBuilder

The parameters to UpdateView.

Protobuf type google.logging.v2.UpdateViewRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateViewRequest build()
Returns
TypeDescription
UpdateViewRequest

buildPartial()

public UpdateViewRequest buildPartial()
Returns
TypeDescription
UpdateViewRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public UpdateViewRequest.Builder clearName()

Required. The full resource name of the view to update "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example: "projects/my-project/locations/global/buckets/my-bucket/views/my-view"

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

Returns
TypeDescription
UpdateViewRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateViewRequest.Builder clearUpdateMask()

Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated. For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask For example: updateMask=filter

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpdateViewRequest.Builder

clearView()

public UpdateViewRequest.Builder clearView()

Required. The updated view.

.google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateViewRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateViewRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateViewRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The full resource name of the view to update "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example: "projects/my-project/locations/global/buckets/my-bucket/views/my-view"

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The full resource name of the view to update "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example: "projects/my-project/locations/global/buckets/my-bucket/views/my-view"

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

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated. For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask For example: updateMask=filter

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated. For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask For example: updateMask=filter

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated. For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask For example: updateMask=filter

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMaskOrBuilder

getView()

public LogView getView()

Required. The updated view.

.google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogView

The view.

getViewBuilder()

public LogView.Builder getViewBuilder()

Required. The updated view.

.google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogView.Builder

getViewOrBuilder()

public LogViewOrBuilder getViewOrBuilder()

Required. The updated view.

.google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogViewOrBuilder

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated. For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask For example: updateMask=filter

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

hasView()

public boolean hasView()

Required. The updated view.

.google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the view field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateViewRequest other)

public UpdateViewRequest.Builder mergeFrom(UpdateViewRequest other)
Parameter
NameDescription
otherUpdateViewRequest
Returns
TypeDescription
UpdateViewRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateViewRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated. For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask For example: updateMask=filter

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateViewRequest.Builder

mergeView(LogView value)

public UpdateViewRequest.Builder mergeView(LogView value)

Required. The updated view.

.google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLogView
Returns
TypeDescription
UpdateViewRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public UpdateViewRequest.Builder setName(String value)

Required. The full resource name of the view to update "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example: "projects/my-project/locations/global/buckets/my-bucket/views/my-view"

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UpdateViewRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateViewRequest.Builder setNameBytes(ByteString value)

Required. The full resource name of the view to update "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example: "projects/my-project/locations/global/buckets/my-bucket/views/my-view"

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateViewRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateViewRequest.Builder setUpdateMask(FieldMask value)

Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated. For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask For example: updateMask=filter

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateViewRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateViewRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated. For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask For example: updateMask=filter

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateViewRequest.Builder

setView(LogView value)

public UpdateViewRequest.Builder setView(LogView value)

Required. The updated view.

.google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLogView
Returns
TypeDescription
UpdateViewRequest.Builder

setView(LogView.Builder builderForValue)

public UpdateViewRequest.Builder setView(LogView.Builder builderForValue)

Required. The updated view.

.google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueLogView.Builder
Returns
TypeDescription
UpdateViewRequest.Builder