Class CreateViewRequest.Builder (3.20.2)

public static final class CreateViewRequest.Builder extends GeneratedMessageV3.Builder<CreateViewRequest.Builder> implements CreateViewRequestOrBuilder

The parameters to CreateView.

Protobuf type google.logging.v2.CreateViewRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateViewRequest build()
Returns
Type Description
CreateViewRequest

buildPartial()

public CreateViewRequest buildPartial()
Returns
Type Description
CreateViewRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateViewRequest.Builder clearParent()

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Returns
Type Description
CreateViewRequest.Builder

This builder for chaining.

clearView()

public CreateViewRequest.Builder clearView()

Required. The new view.

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

Returns
Type Description
CreateViewRequest.Builder

clearViewId()

public CreateViewRequest.Builder clearViewId()

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Returns
Type Description
CreateViewRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateViewRequest getDefaultInstanceForType()
Returns
Type Description
CreateViewRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Returns
Type Description
ByteString

The bytes for parent.

getView()

public LogView getView()

Required. The new view.

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

Returns
Type Description
LogView

The view.

getViewBuilder()

public LogView.Builder getViewBuilder()

Required. The new view.

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

Returns
Type Description
LogView.Builder

getViewId()

public String getViewId()

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Returns
Type Description
String

The viewId.

getViewIdBytes()

public ByteString getViewIdBytes()

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Returns
Type Description
ByteString

The bytes for viewId.

getViewOrBuilder()

public LogViewOrBuilder getViewOrBuilder()

Required. The new view.

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

Returns
Type Description
LogViewOrBuilder

hasView()

public boolean hasView()

Required. The new view.

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

Returns
Type Description
boolean

Whether the view field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateViewRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeView(LogView value)

public CreateViewRequest.Builder mergeView(LogView value)

Required. The new view.

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

Parameter
Name Description
value LogView
Returns
Type Description
CreateViewRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateViewRequest.Builder setParent(String value)

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateViewRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateViewRequest.Builder setParentBytes(ByteString value)

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateViewRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setView(LogView value)

public CreateViewRequest.Builder setView(LogView value)

Required. The new view.

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

Parameter
Name Description
value LogView
Returns
Type Description
CreateViewRequest.Builder

setView(LogView.Builder builderForValue)

public CreateViewRequest.Builder setView(LogView.Builder builderForValue)

Required. The new view.

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

Parameter
Name Description
builderForValue LogView.Builder
Returns
Type Description
CreateViewRequest.Builder

setViewId(String value)

public CreateViewRequest.Builder setViewId(String value)

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Parameter
Name Description
value String

The viewId to set.

Returns
Type Description
CreateViewRequest.Builder

This builder for chaining.

setViewIdBytes(ByteString value)

public CreateViewRequest.Builder setViewIdBytes(ByteString value)

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Parameter
Name Description
value ByteString

The bytes for viewId to set.

Returns
Type Description
CreateViewRequest.Builder

This builder for chaining.