Send feedback
Class CreateViewRequest.Builder (3.14.9)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.14.9 keyboard_arrow_down
public static final class CreateViewRequest . Builder extends GeneratedMessageV3 . Builder<CreateViewRequest . Builder > implements CreateViewRequestOrBuilder
The parameters to CreateView
.
Protobuf type google.logging.v2.CreateViewRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateViewRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public CreateViewRequest build ()
buildPartial()
public CreateViewRequest buildPartial ()
clear()
public CreateViewRequest . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateViewRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateViewRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearParent()
public CreateViewRequest . Builder clearParent ()
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
For example:
"projects/my-project/locations/global/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
clearView()
public CreateViewRequest . Builder clearView ()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
clearViewId()
public CreateViewRequest . Builder clearViewId ()
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public CreateViewRequest . Builder clone ()
Overrides
getDefaultInstanceForType()
public CreateViewRequest getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getParent()
public String getParent ()
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
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
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
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()
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];
getViewId()
public String getViewId ()
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The viewId.
getViewIdBytes()
public ByteString getViewIdBytes ()
Required. The id to use for this view.
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];
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(CreateViewRequest other)
public CreateViewRequest . Builder mergeFrom ( CreateViewRequest other )
public CreateViewRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public CreateViewRequest . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateViewRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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
setField(Descriptors.FieldDescriptor field, Object value)
public CreateViewRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setParent(String value)
public CreateViewRequest . Builder setParent ( String value )
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
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.
setParentBytes(ByteString value)
public CreateViewRequest . Builder setParentBytes ( ByteString value )
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateViewRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateViewRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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
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];
setViewId(String value)
public CreateViewRequest . Builder setViewId ( String value )
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The viewId to set.
setViewIdBytes(ByteString value)
public CreateViewRequest . Builder setViewIdBytes ( ByteString value )
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for viewId to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]